cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation
PATCH v3 1/1 cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation
Without these gcc would be used which resolves to /usr/bin/gcc and one gets an intel exe.
This showed up with libparams-validate-perl and libdatetime-perl The LDFLAGS are added to resolve the GNU_HASH QA error
--- classes/cpan_build.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
classes/cpan_build.bbclass +1 -0
@@ -26,6 +26,7 @@ cpan_build_do_configure () { # build for target . ${STAGING_LIBDIR}/perl/config.sh perl Build.PL --installdirs vendor \ + --config cc="${CC} ${LDFLAGS}" --config ld="${CCLD} ${LDFLAGS}" \ --destdir ${D} \ --install_path lib="${datadir}/perl5" \ --install_path arch="${libdir}/perl5" \
В сообщении от Понедельник 27 декабря 2010 20:11:07 автор Frans Meulenbroeks написал:
Quoted 16 lines
Without these gcc would be used which resolves to
/usr/bin/gccand one gets an intel exe.
This showed up with libparams-validate-perl and libdatetime-perl The LDFLAGS are added to resolve theGNU_HASHQA errorSigned-off-by Frans Meulenbroeks <[email protected]>--- classes/cpan_build.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)classes/cpan_build.bbclass +0
-0
classes/cpan_build.bbclass cpan_build_do_configure () { · line 32
Quoted 7 lines
classes/cpan_build.bbclass +1
-0@@ -26,6 +26,7 @@ cpan_build_do_configure () { # build for target . ${STAGING_LIBDIR}/perl/config.sh perl Build.PL --installdirs vendor \ + --config cc="${CC} ${LDFLAGS}" --config ld="${CCLD} ${LDFLAGS}" \ --destdir ${D} \ --install_path lib="${datadir}/perl5" \ --install_path arch="${libdir}/perl5" \
Seems strange to me. ${STAGING_LIBDIR}/perl/config.sh for example:
rik@kettle:oe-arm$ cat tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib/perl/config.sh | grep -E "^(cc=|ld=|ldflags=)" cc="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ld="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ldflags="-L/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
Same definitions in Config_heavy. It should be working without that. I've just built it here for qemuarm (with Angstrom distro) and seems to be OK:
rik@kettle:oe-arm$ ./tmp/sysroots/x86_64-linux/usr/armv5te/bin/arm-angstrom-linux-gnueabi-objdump -f tmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so
tmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so: file format elf32-littlearm
architecture: arm, flags 0x00000150:HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00000c94
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
2010/12/27 Roman I Khimov <[email protected]>:
Quoted 35 lines
В сообщении от Понедельник 27 декабря 2010 20:11:07 автор Frans Meulenbroeks написал:
Quoted 16 lines
Without these gcc would be used which resolves to
/usr/bin/gccand one gets an intel exe.
This showed up with libparams-validate-perl and libdatetime-perl The LDFLAGS are added to resolve theGNU_HASHQA errorSigned-off-by Frans Meulenbroeks <[email protected]>---
classes/cpan_build.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)classes/cpan_build.bbclass +0
-0@@ -26,6 +26,7 @@ cpan_build_do_configure () { # build for targetQuoted 7 lines
.
${STAGING_LIBDIR}/perl/config.sh
perl Build.PL --installdirs vendor \
+ --config cc="${CC} ${LDFLAGS}" --config ld="${CCLD} ${LDFLAGS}" \ --destdir ${D} \
--install_path lib="${datadir}/perl5" \
--install_path arch="${libdir}/perl5" \Seems strange to me.
${STAGING_LIBDIR}/perl/config.shfor example:rik@kettle:oe-arm$ cat tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib/perl/config.sh | grep -E "^(cc=|ld=|ldflags=)" cc="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ld="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ldflags="-L/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"Same definitions in
Config_heavy. It should be working without that. I've just built it here for qemuarm (with Angstrom distro) and seems to be OK:
Quoted 7 lines
rik@kettle:oe-arm$ ./tmp/sysroots/x86_64-linux/usr/armv5te/bin/arm-angstrom-linux-gnueabi-objdump -f tmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.sotmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so: file format elf32-littlearm
architecture: arm, flags0x00000150:HAS_SYMS, DYNAMIC,D_PAGED
start address0x00000c94
I'll peek into those config files tonight to see what I got (and I'll try to reproduce the problem).
Last weekend I ended up in getting an i686 DateTime.o
my dev sys is opensuse 11.3 on 686, target was sheevaplug, but I seem to recall it also appeared for beagleboard.
distro minimal.
I have only seen the problem with the two recipes I mentioned. Both of these use Build.PL. I have not seen it with packages that have a Makefile.PL (which seems to be the majority), but if it fails again tonight with the patch I'll recheck that too.
Frans.
2010/12/27 Roman I Khimov <[email protected]>:
Quoted 27 lines
В сообщении от Понедельник 27 декабря 2010 20:11:07 автор Frans Meulenbroeks написал:
Quoted 16 lines
Without these gcc would be used which resolves to
/usr/bin/gccand one gets an intel exe.
This showed up with libparams-validate-perl and libdatetime-perl The LDFLAGS are added to resolve theGNU_HASHQA errorSigned-off-by Frans Meulenbroeks <[email protected]>---
classes/cpan_build.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)classes/cpan_build.bbclass +0
-0@@ -26,6 +26,7 @@ cpan_build_do_configure () { # build for targetQuoted 7 lines
.
${STAGING_LIBDIR}/perl/config.sh
perl Build.PL --installdirs vendor \
+ --config cc="${CC} ${LDFLAGS}" --config ld="${CCLD} ${LDFLAGS}" \ --destdir ${D} \
--install_path lib="${datadir}/perl5" \
--install_path arch="${libdir}/perl5" \Seems strange to me.
${STAGING_LIBDIR}/perl/config.shfor example:
Quoted 4 lines
rik@kettle:oe-arm$ cat tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib/perl/config.sh | grep -E "^(cc=|ld=|ldflags=)" cc="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ld="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ldflags="-L/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
Comparing notes: I have:
frans@linux-suse:~/oe> cat tmp_minimal/sysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/config.sh | grep -E "^(cc=|ld=|ldflags=)"
cc="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ld="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ldflags="-Wl,-O1 -Wl,--hash-style=gnu"
Note the different definition of ldflags. (no -L ) and the -mthumb versus -mno-thumb.
Btw I am using libtool 2.4 with systool support (should that matter)
Quoted 2 lines
Same definitions in
Config_heavy. It should be working without that. I've
Should I have this file in sysroots/armv5te.... ?
I only have
frans@linux-suse:~/oe/tmp_minimal/sysroots> find | grep heavy ./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl ./i686-linux/usr/lib/perl/5.10.1/utf8_heavy.pl ./i686-linux/usr/lib/perl/5.10.1/Config_heavy-target.pl ./i686-linux/usr/lib/perl/5.10.1/bytes_heavy.pl ./armv5te-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnf ./armv7a-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnf
And Config_heavy.pl says:
frans@linux-suse:~/oe/tmp_minimal/sysroots> grep -E "^(cc=|ld=|ldflags=)" ./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl cc='gcc '
ld='gcc ' ldflags='-L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/lib -Wl,-O1 -fstack-protector -L/usr/local/lib'
Quoted 9 lines
just built it here for qemuarm (with Angstrom distro) and seems to be OK:
rik@kettle:oe-arm$ ./tmp/sysroots/x86_64-linux/usr/armv5te/bin/arm-angstrom-linux-gnueabi-objdump -f tmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.sotmp/work/armv5te-angstrom-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so: file format elf32-littlearm
architecture: arm, flags0x00000150:HAS_SYMS, DYNAMIC,D_PAGED
start address0x00000c94
Will try a compile test later.
Frans
В сообщении от Вторник 28 декабря 2010 21:23:39 автор Frans Meulenbroeks написал:
Quoted 23 lines
2010/12/27 Roman I Khimov <[email protected]>:
Quoted 10 lines
rik@kettle:oe-arm$ cat tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib/perl/config.sh | grep(quoted diff) +0
-2-E "^(cc=|ld=|ldflags=)" cc="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb"ld="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ldflags="-L/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gn ueabi/usr/lib -Wl,-rpath-link,/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-lin ux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
Comparing notes: I have:
frans@linux-suse:~/oe> cat
tmp_minimal/sysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/config.sh| grep -E "^(cc=|ld=|ldflags=)"
cc="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ld="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ldflags="-Wl,-O1 -Wl,--hash-style=gnu"
Quoted 2 lines
Note the different definition of ldflags. (no -L ) and the -mthumb versus -mno-thumb.
We might have different targets for thumb things (mine is qemuarm), but "-L" difference seems suspicious (my test build is for 'angstrom-2008.1' if that matters).
Quoted 1 line
Btw I am using libtool 2.4 with systool support (should that matter)
Maybe, maybe. I should try some newer distro for my test builds.
Quoted 12 lines
Quoted 1 line
Same definitions in
Config_heavy. It should be working without that. I'veShould I have this file in sysroots/armv5te.... ?
I only have
frans@linux-suse:~/oe/tmp_minimal/sysroots> find | grep heavy./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl./i686-linux/usr/lib/perl/5.10.1/utf8_heavy.pl./i686-linux/usr/lib/perl/5.10.1/Config_heavy-target.pl./i686-linux/usr/lib/perl/5.10.1/bytes_heavy.pl./armv5te-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnf ./armv7a-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnf
Quoted 3 lines
And Config_heavy.pl says:
frans@linux-suse:~/oe/tmp_minimal/sysroots> grep -E "^(cc=|ld=|ldflags=)"./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl
That's the wrong one, you're interested in Config_heavy-target.pl, or Config_heavy-arm-angstrom-linux-gnueabi.pl after my recent patch series (that I'll push today).
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
2010/12/28 Roman I Khimov <[email protected]>:
Quoted 7 lines
Quoted 3 lines
Note the different definition of ldflags. (no -L ) and the -mthumb versus -mno-thumb.
We might have different targets for thumb things (mine is qemuarm), but "-L" difference seems suspicious (my test build is for 'angstrom-2008.1' if that matters).
yes -L can make quite a bit of differences in searching for libraries. The way we specify them for historical reasons
is quite invasive
Quoted 5 lines
Quoted 2 lines
Btw I am using libtool 2.4 with systool support (should that matter)
Maybe, maybe. I should try some newer distro for my test builds.
yes try with angstrom-2010.x or minimal
2010/12/28 Roman I Khimov <[email protected]>:
Quoted 52 lines
В сообщении от Вторник 28 декабря 2010 21:23:39 автор Frans Meulenbroeks написал:
Quoted 23 lines
2010/12/27 Roman I Khimov <[email protected]>:
Quoted 10 lines
rik@kettle:oe-arm$ cat tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib/perl/config.sh | grep(quoted diff) +0
-2-E "^(cc=|ld=|ldflags=)" cc="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb"ld="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb" ldflags="-L/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-linux-gn ueabi/usr/lib -Wl,-rpath-link,/storage/work/oe/oe-arm/tmp/sysroots/armv5te-angstrom-lin ux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
Comparing notes: I have:
frans@linux-suse:~/oe> cat
tmp_minimal/sysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/config.sh| grep -E "^(cc=|ld=|ldflags=)"
cc="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ld="arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb"
ldflags="-Wl,-O1 -Wl,--hash-style=gnu"Quoted 2 lines
Note the different definition of ldflags. (no -L ) and the -mthumb versus -mno-thumb.
We might have different targets for thumb things (mine is qemuarm), but "-L" difference seems suspicious (my test build is for 'angstrom-2008.1' if that matters).
Quoted 1 line
Btw I am using libtool 2.4 with systool support (should that matter)
Maybe, maybe. I should try some newer distro for my test builds.
Quoted 12 lines
Quoted 1 line
Same definitions in
Config_heavy. It should be working without that. I'veShould I have this file in sysroots/armv5te.... ?
I only have
frans@linux-suse:~/oe/tmp_minimal/sysroots> find | grep heavy./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl./i686-linux/usr/lib/perl/5.10.1/utf8_heavy.pl./i686-linux/usr/lib/perl/5.10.1/Config_heavy-target.pl./i686-linux/usr/lib/perl/5.10.1/bytes_heavy.pl./armv5te-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnf ./armv7a-oe-linux-gnueabi/usr/share/mysql/my-innodb-heavy-4G.cnfQuoted 3 lines
And Config_heavy.pl says:
frans@linux-suse:~/oe/tmp_minimal/sysroots> grep -E "^(cc=|ld=|ldflags=)"./i686-linux/usr/lib/perl/5.10.1/Config_heavy.pl
Quoted 5 lines
That's the wrong one, you're interested in Config_heavy-target.pl, or Config_heavy-arm-angstrom-linux-gnueabi.pl after my recent patch series (that I'll push today).
--
Config_heavy-target.pl has the same content as I gave for config.sh.
I did this as a test:
bitbake -cclean perl perl-native libdatetime-perl
libdatetime-perl-native; bitbake libdatetime-perl
results: config.sh and Config_heavy-target.pl are as reported before. Build fails. Info on the file:
frans@linux-suse:~/oe> ./tmp_minimal/sysroots/i686-linux/usr/armv5te/bin/arm-oe-linux-gnueabi-objdump
-f tmp_minimal/work/armv5te-oe-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so
tmp_minimal/work/armv5te-oe-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so:
file format elf32-little
architecture: UNKNOWN!, flags 0x00000150:HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00000e50
frans@linux-suse:~/oe> file tmp_minimal/work/armv5te-oe-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so tmp_minimal/work/armv5te-oe-linux-gnueabi/libdatetime-perl-0.61-r1/image/usr/lib/perl5/auto/DateTime/DateTime.so:
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
dynamically linked, not stripped
Obviously the settings from config.sh are not taken into account.
target sheevaplug (armv5t5) distro minimal, git head of a few days ago. litbool 2.4 with sysroot support.
Roman, can you perhaps retest with qemu-arm and minimal (as Khem suggested in the next message).
Also I'm more than happy to do additional tests and/or compare notes on irc (e.g. tomorrow evening european time)
Frans
One more test result.
After Roman pushed his patches, I tried again.
It seems the proper compiler is invoked, but this time I get a compiler error:
| 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
Too late to investigate this now.
Frans
В сообщении от Среда 29 декабря 2010 01:19:09 автор Frans Meulenbroeks написал:
Quoted 3 lines
After Roman pushed his patches, I tried again.
It seems the proper compiler is invoked
Yep, just wanted to reply to previous mail that 264f7ab1f41cc86d29716619d67506c85223df71 might probably fix it.
Quoted 10 lines
, but this time I get a compiler error:
| arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s(quoted diff) +0
-3-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 -olib/DateTime.olib/DateTime.c
Quoted 3 lines
|
lib/DateTime.xs:7:20: fatal error:EXTERN.h: No such file or directoryToo late to investigate this now.
Well, time to deal with this kind of problem.
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.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
2010/12/29 Roman I Khimov <[email protected]>:
Quoted 25 lines
В сообщении от Среда 29 декабря 2010 01:19:09 автор Frans Meulenbroeks написал:
Quoted 3 lines
After Roman pushed his patches, I tried again.
It seems the proper compiler is invoked
Yep, just wanted to reply to previous mail that
264f7ab1f41cc86d29716619d67506c85223df71might probably fix it.Quoted 10 lines
, but this time I get a compiler error:
| arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s(quoted diff) +0
-3-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.olib/DateTime.cQuoted 3 lines
|
lib/DateTime.xs:7:20: fatal error:EXTERN.h: No such file or directoryToo late to investigate this now.
Well, time to deal with this kind of problem.
Quoted 6 lines
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.
Thanks for your feedback and help.
I'll retry and investigate tonight (in about 8 hrs from now). If you find out anything before, please keep me posted.
Thanks again, Frans.
В сообщении от Среда 29 декабря 2010 10:41:00 автор Roman I Khimov написал:
Quoted 5 lines
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.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
2010/12/29 Roman I Khimov <[email protected]>:
Quoted 10 lines
В сообщении от Среда 29 декабря 2010 10:41:00 автор Roman I Khimov написал:
Quoted 5 lines
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
2010/12/29 Frans Meulenbroeks <[email protected]>:
Quoted 37 lines
2010/12/29 Roman I Khimov <[email protected]>:
Quoted 10 lines
В сообщении от Среда 29 декабря 2010 10:41:00 автор Roman I Khimov написал:
Quoted 5 lines
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-perlI now get:
| arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
(quoted diff) +0
-6-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 directoryI do have
EXTERN.h:sysroots/i686-linux/usr/lib/perl/5.10.1/CORE/EXTERN.hsysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/5.10.1/CORE/EXTERN.hWhat 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.
Quoted 7 lines
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
В сообщении от Среда 29 декабря 2010 22:39:09 автор Frans Meulenbroeks написал:
Quoted 5 lines
from
./sysroots/i686-linux/usr/lib/perl/5.10.1/Config_heavy-arm-oe-linux-gnueab
i.plapi_versionstring='5.10.0' <--- note the .0 here
That is correct.
Quoted 4 lines
archlib='/usr/lib/perl/5.10'
archlibexp='/usr/lib/perl/5.10'
privlib='/usr/share/perl/5.10'
privlibexp='/usr/share/perl/5.10'
I've had an idea of patching ExtUtils::CBuilder directly to use installarchlib instead of archlibexp, but thinking about it more and more it seems that it would be better to directly patch this variables in Config-heavy-..., because that file is only used for cross-compilation and for traditional (Makefile.PL) build system PERL_INC, PERL_LIB and PERL_ARCHLIB are redefined in cpan-base anyway for all build phases. Patching the config file would even allow to kill those redefinitions there some time in future.
Patch will follow.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
PATCH 1/2 perl 5.10.1: fix archlib(exp) and privlib(exp) vars in target configs
These vars can be used to derive build flags for perl modules and thus should point to build-time directories in staged configs.
--- recipes/perl/perl_5.10.1.bb | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
recipes/perl/perl_5.10.1.bb +8 -1
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPLv1+" PRIORITY = "optional" # We need gnugrep (for -I) DEPENDS = "virtual/db perl-native grep-native" -PR = "r18" +PR = "r19" # 5.10.1 has Module::Build built-in PROVIDES += "libmodule-build-perl"
@@ -224,6 +224,13 @@ do_stage() { install config.sh ${STAGING_LIBDIR}/perl/ # target configuration, used by native perl when cross-compiling install lib/Config_heavy.pl ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-${TARGET_SYS}.pl + sed -r -i \ + -e "s,^(archlib=).*$,\1'${STAGING_LIBDIR}/perl/${PV}'," \ + -e "s,^(archlibexp=).*$,\1'${STAGING_LIBDIR}/perl/${PV}'," \ + -e "s,^(privlib=).*$,\1'${STAGING_DATADIR}/perl/${PV}'," \ + -e "s,^(privlibexp=).*$,\1'${STAGING_DATADIR}/perl/${PV}'," \ + ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-${TARGET_SYS}.pl \ + ${STAGING_LIBDIR}/perl/config.sh # target configuration install lib/Config.pm ${STAGING_LIBDIR}/perl/${PV}/ install lib/ExtUtils/typemap ${STAGING_DATADIR}/perl/${PV}/ExtUtils/
Signature · 1 line
1.6.4.2
PATCH 2/2 classes/cpan: fix bin/script/man1/man3 installation dirs
Strange that it wasn't done before, but if some perl module wants to install man pages or some binaries or scripts they all were installed with wrong prefix.
--- classes/cpan.bbclass | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
classes/cpan.bbclass +4 -0
@@ -13,6 +13,10 @@ cpan_do_configure () { -e "s:\(SITEARCHEXP = \).*:\1${sitearchexp}:" \ -e "s:\(INSTALLVENDORLIB = \).*:\1${D}${datadir}/perl5:" \ -e "s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" \ + -e "s:\(INSTALLVENDORMAN1DIR = \).*:\1${D}${man1dir}:" \ + -e "s:\(INSTALLVENDORMAN3DIR = \).*:\1${D}${man1dir}:" \ + -e "s:\(INSTALLVENDORBIN = \).*:\1${D}${bindir}:" \ + -e "s:\(INSTALLVENDORSCRIPT = \).*:\1${D}${bindir}:" \ -e "s:\(LDDLFLAGS.*\)${STAGING_LIBDIR_NATIVE}:\1${STAGING_LIBDIR}:" \ Makefile fi
Signature · 1 line
1.6.4.2
Re: [PATCH 2/2] classes/cpan: fix bin/script/man1/man3 installation dirs
В сообщении от Четверг 30 декабря 2010 01:07:58 автор Roman I Khimov написал:
classes/cpan.bbclass cpan_do_configure () { · line 17
Quoted 2 lines
classes/cpan.bbclass +2
-0+ -e "s:\(INSTALLVENDORMAN1DIR = \).*:\1${D}${man1dir}:" \ + -e "s:\(INSTALLVENDORMAN3DIR = \).*:\1${D}${man1dir}:" \
The latter should be man3dir, obviously.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
Frans Meulenbroeks
Acked-byRe: [PATCH 2/2] classes/cpan: fix bin/script/man1/man3 installation dirs
2010/12/30 Roman I Khimov <[email protected]>:
Quoted 6 lines
В сообщении от Четверг 30 декабря 2010 01:07:58 автор Roman I Khimov написал:
Quoted 2 lines
+ -e "s:\(INSTALLVENDORMAN1DIR = \).*:\1${D}${man1dir}:" \
+ -e "s:\(INSTALLVENDORMAN3DIR = \).*:\1${D}${man1dir}:" \The latter should be man3dir, obviously.
With this patch:
Re: [PATCH 1/2] perl 5.10.1: fix archlib(exp) and privlib(exp) vars in target configs
In reply to Roman I Khimov2010/12/29 Roman I Khimov <[email protected]>:
Quoted 4 lines
These vars can be used to derive build flags for perl modules and thus should point to build-time directories in staged configs.
Signed-off-by Roman I Khimov <[email protected]>
Tested this patch and the next one together. They solve my libdatetime problem. Thanks alot!
Quoted 40 lines
---
recipes/perl/perl_5.10.1.bb | 9 ++++++++-1 files changed, 8 insertions(+), 1 deletions(-)recipes/perl/perl_5.10.1.bb +0
-0@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPLv1+"PRIORITY = "optional"
# We need gnugrep (for -I)
DEPENDS = "virtual/db perl-native grep-native"recipes/perl/perl_5.10.1.bb +1
-1-PR = "r18" +PR = "r19"# 5.10.1 has
Module::Buildbuilt-in
PROVIDES += "libmodule-build-perl"recipes/perl/perl_5.10.1.bb +0
-0@@ -224,6 +224,13 @@ do_stage() {install
config.sh${STAGING_LIBDIR}/perl/# target configuration, used by native perl when cross-compiling install lib/Config_heavy.pl ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-${TARGET_SYS}.pl + sed -r -i \ + -e "s,^(archlib=).*$,\1'${STAGING_LIBDIR}/perl/${PV}'," \ + -e "s,^(archlibexp=).*$,\1'${STAGING_LIBDIR}/perl/${PV}'," \ + -e "s,^(privlib=).*$,\1'${STAGING_DATADIR}/perl/${PV}'," \ + -e "s,^(privlibexp=).*$,\1'${STAGING_DATADIR}/perl/${PV}'," \ + ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-${TARGET_SYS}.pl \ + ${STAGING_LIBDIR}/perl/config.sh # target configuration install lib/Config.pm ${STAGING_LIBDIR}/perl/${PV}/ install lib/ExtUtils/typemap ${STAGING_DATADIR}/perl/${PV}/ExtUtils/ -- 1.6.4.2_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
В сообщении от Среда 29 декабря 2010 21:42:33 автор Frans Meulenbroeks написал:
Quoted 12 lines
I now get:
| arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s(quoted diff) +0
-3-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 -olib/DateTime.olib/DateTime.c|
lib/DateTime.xs:7:20: fatal error:EXTERN.h: No such file or directory
Quoted 7 lines
I do have
EXTERN.h:sysroots/i686-linux/usr/lib/perl/5.10.1/CORE/EXTERN.hsysroots/armv5te-oe-linux-gnueabi/usr/lib/perl/5.10.1/CORE/EXTERN.hWhat 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.
Perl never stops surprising me.
I have exactly the same wrong include but it seems that Debian lenny is exactly old enough for it to work with build includes. Argh. I've found suspicious internal perl incantations and testing the fix currently.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3