[oe] perl build problem in .dev
Tom Rini
tom_rini at mentor.com
Fri May 7 14:03:53 UTC 2010
On Fri, 2010-05-07 at 11:29 +0200, Koen Kooi wrote:
> -----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 at 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?
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").
--
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation
More information about the Openembedded-devel
mailing list