Hello, While trying to cross compile dev-libs/nspr-4.9.2 from an x86_64 machine to target armv6j-hardfloat-linux-gnueabi (for a Raspberry), I always fall on this error : checking whether the C compiler (gcc -Os -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed) works... no configure: error: installation or configuration problem: C compiler cannot create executables. while othe programs compile without problems. Reproducible: Always Steps to Reproduce: 1.Build a cross compilation chain : crossdev --k 3.2.27 --g 4.6.3 -S -v -t armv6j-hardfloat-linux-gnueabi 2.run "armv6j-hardfloat-linux-gnueabi-emerge nspr" Actual Results: Result with this error : * econf: updating nspr-4.9.2/mozilla/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub ../mozilla/nsprpub/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=armv6j-hardfloat-linux-gnueabi --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --enable-optimize --libdir=/usr/lib loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-gnu configure: loading site script /usr/share/crossdev/include/site/arm-linux-gnu configure: loading site script /usr/share/crossdev/include/site/linux-gnueabi configure: loading site script /usr/share/crossdev/include/site/arm-linux-gnueabi creating cache ./config.cache checking host system type... armv6j-hardfloat-linux-gnueabi checking target system type... armv6j-hardfloat-linux-gnueabi checking build system type... x86_64-pc-linux-gnu checking for whoami... /usr/bin/whoami checking for gcc... gcc checking whether the C compiler (gcc -Os -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! Please attach the following file when seeking support: !!! /usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/work/nspr-4.9.2/build/config.log * ERROR: dev-libs/nspr-4.9.2 failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 2965: Called econf '--disable-debug' '--enable-optimize' '--libdir=/usr/lib' * phase-helpers.sh, line 505: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of `emerge --info '=dev-libs/nspr-4.9.2'`, * the complete build log and the output of `emerge -pqv '=dev-libs/nspr-4.9.2'`. * The complete build log is located at '/usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/temp/build.log'. * The ebuild environment file is located at '/usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/temp/environment'. * Working directory: '/usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/work/nspr-4.9.2/build' * S: '/usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/work/nspr-4.9.2' Expected Results: Everything compile fine
Created attachment 332036 [details] build.log
Created attachment 332038 [details] environment
Created attachment 332040 [details] armv6j-hardfloat-linux-gnueabi-emerge --info
checking whether the C compiler (gcc -Os -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! Please attach the following file when seeking support: !!! /usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/work/nspr-4.9.2/build/config.log Yes, please.
Created attachment 332060 [details] The config.log
(In reply to comment #4) > checking whether the C compiler (gcc -Os -pipe -march=armv6j -mfpu=vfp > -mfloat-abi=hard -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed) works... no > configure: error: installation or configuration problem: C compiler cannot > create executables. > > !!! Please attach the following file when seeking support: > !!! > /usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9.2/work/ > nspr-4.9.2/build/config.log > > Yes, please. Here it is. I forgot it
latest version of nss & nspr should cross-compile fine