[oe] [PATCH v3] cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Wed Dec 29 19:39:09 UTC 2010


2010/12/29 Frans Meulenbroeks <fransmeulenbroeks at gmail.com>:
> 2010/12/29 Roman I Khimov <roman at khimov.ru>:
>> В сообщении от Среда 29 декабря 2010 10:41:00 автор Roman I Khimov написал:
>>> I've built libdatetime-perl for qemuarm/angstrom-2010.x yesterday with no
>>> problems. Rebuilding perl, perl-native and libdatetime-perl now with fresh
>>> pull from oe.dev and building with sheevaplug/minimal combination in
>>>  parallel. But it might be that clean build results would be different for
>>> sheevaplug/minimal.
>>
>> Both built just fine, commit 45316c97133b75f6b9ceec9667749648c2046d4d,
>> configurations mentioned above.
>>
>
> Tested with todays git head, still no success:
> I did a fresh build:
> bitbake -cclean perl perl-native libdatetime-perl
> libdatetime-perl-native; bitbake libdatetime-perl
>
> I now get:
>
> | arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
> -mthumb-interwork -mthumb -Ic -I/usr/lib/perl/5.10/CORE
> -DXS_VERSION="0.61" -DVERSION="0.61" -fPIC -c
> -isystem/home/frans/oe/tmp_minimal/sysroots/armv5te-oe-linux-gnueabi/usr/include
> -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1
> -DDEBIAN -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -fno-strict-aliasing -pipe -O2 -o lib/DateTime.o lib/DateTime.c
> | lib/DateTime.xs:7:20: fatal error: EXTERN.h: No such file or directory
>
>
> I do have EXTERN.h:
> sysroots/i686-linux/usr/lib/perl/5.10.1/CORE/EXTERN.h
> sysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/5.10.1/CORE/EXTERN.h
>
> What I find worrying (and probably wrong) is:
> -I/usr/lib/perl/5.10/CORE
> I don't expect host dirs in and arm gcc command.
>
> Also note that the host path says perl/5.10 whereas my files live in perl/5.10.1
>
> Roman, can you compare this with your compile log (or can you pastebin
> it or provide a link to tinderbox)?
>
> Thanks, Frans
>
Some further analysis

from ./sysroots/i686-linux/usr/lib/perl/5.10.1/Config_heavy-arm-oe-linux-gnueabi.pl

api_versionstring='5.10.0'        <--- note the .0 here
archlib='/usr/lib/perl/5.10'
archlibexp='/usr/lib/perl/5.10'
privlib='/usr/share/perl/5.10'
privlibexp='/usr/share/perl/5.10'
sitearch='/usr/local/lib/perl/5.10.1'
sitearchexp='/usr/local/lib/perl/5.10.1'
sitelib='/usr/local/share/perl/5.10.1'
sitelibexp='/usr/local/share/perl/5.10.1'

and as comparison fro
./sysroots/i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl ::

api_versionstring='5.10.0'
archlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
archlibexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
ccdlflags='-Wl,-E
-Wl,-rpath,/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1/CORE'
installarchlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
installprivlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
installsitearch='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
installsitelib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
installvendorarch='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
installvendorlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
privlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
privlibexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
sitearch='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
sitearchexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
sitelib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
sitelibexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
vendorarch='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
vendorarchexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
vendorlib='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'
vendorlibexp='/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib/perl/5.10.1'

Btw my host (opensuse 11.3) has perl 5.12.1.
Roman could it be that it works for you because you also have 5.10.1
on your host?

Frans




More information about the Openembedded-devel mailing list