Skip to contentSkip to conversation

perl build problem in .dev

DISCUSSION Koen Kooi 3 participants 4 messages May 7, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm unable to build perl_5.8.8.bb:

| ln -s hostperl miniperl
| ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
| ./miniperl: error while loading shared libraries: libperl.so: cannot

open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | make[1]: Entering directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm | ./miniperl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory `/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8'

koen@dominion:/OE/build$ !find
find /OE/angstrom-dev/sysroots/ -name "libperl.so*"
/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE/libperl.so

I tried doing

- -export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/" +export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE/"

which didn't help. Any ideas?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL4914MkyGM64RGpERAteUAKCW8Cf+LkADEX+c2dA1YzfdC46Z1QCePo3v wVqb3heMrT9O+8HZ5qkAJdc=
=jVgC
-----END PGP SIGNATURE-----

#1 lore raw

I see exactly the same issue as below on my build machine!

Graeme

Quoted 51 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm unable to build perl_5.8.8.bb:

| ln -s hostperl miniperl
| ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
| ./miniperl: error while loading shared libraries: libperl.so: cannot

open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | make[1]: Entering directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm | ./miniperl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory `/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8'

koen@dominion:/OE/build$ !find
find /OE/angstrom-dev/sysroots/ -name "libperl.so*"
/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE/libperl.so

I tried doing

- -export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/" +export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE/"

which didn't help. Any ideas?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL4914MkyGM64RGpERAteUAKCW8Cf+LkADEX+c2dA1YzfdC46Z1QCePo3v wVqb3heMrT9O+8HZ5qkAJdc=
=jVgC
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
In reply to Koen Kooi
Quoted 27 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm unable to build perl_5.8.8.bb:

| ln -s hostperl miniperl
| ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
| ./miniperl: error while loading shared libraries: libperl.so: cannot

open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | make[1]: Entering directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm | ./miniperl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory `/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8'

koen@dominion:/OE/build$ !find
find /OE/angstrom-dev/sysroots/ -name "libperl.so*"
/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE/libperl.so
Quoted 6 lines

I tried doing

- -export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/" +export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE/"

which didn't help. Any ideas?

Yeah, when we mangle it for $ORIGIN, we just broke how target perl works
since (expanding
$ORIGIN) /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8/../lib/perl/5.8.8/CORE/libperl.so doesn't exist. Not sure how to solve this with chrpath, but I know when
we link vs $ORIGIN we 'fix' this by still having a path based link left
in (as the more common problem we run into is "build a util that's not
installed, to build the final util that is installed").

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
author
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 35 lines · Tom Rini
Quoted 27 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm unable to build perl_5.8.8.bb:

| ln -s hostperl miniperl
| ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
| ./miniperl: error while loading shared libraries: libperl.so: cannot

open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | make[1]: Entering directory /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8' | ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm | ./miniperl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
| make[1]: *** [lib/Config.pod] Error 127
| make[1]: Leaving directory `/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8'

koen@dominion:/OE/build$ !find
find /OE/angstrom-dev/sysroots/ -name "libperl.so*"
/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE/libperl.so
Quoted 6 lines

I tried doing

- -export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/" +export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE/"

which didn't help. Any ideas?

Quoted 7 lines

Yeah, when we mangle it for $ORIGIN, we just broke how target perl works
since (expanding
$ORIGIN) /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r33/perl-5.8.8/../lib/perl/5.8.8/CORE/libperl.so doesn't exist. Not sure how to solve this with chrpath, but I know when
we link vs $ORIGIN we 'fix' this by still having a path based link left
in (as the more common problem we run into is "build a util that's not
installed, to build the final util that is installed").

Your suggestion on IRC fixed it:

do_configure() {
# Make hostperl in build directory be the native perl
- - cp -f ${HOSTPERL} hostperl
+ ln -sf ${HOSTPERL} hostperl

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL5C4hMkyGM64RGpERAocBAKChtijAAMmmAI9JUSK/xKuC+25B2QCgkujg 2ZR+o433TkKBm6E3NKAs2B0=
=LiKy
-----END PGP SIGNATURE-----