Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446866 - dev-libs/nspr-4.9.2 - 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
Summary: dev-libs/nspr-4.9.2 - checking whether the C compiler (gcc -Os -pipe -march=a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 11:44 UTC by Simon
Modified: 2013-03-19 22:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,4.50 KB, text/plain)
2012-12-11 11:45 UTC, Simon
Details
environment (environment,111.21 KB, text/plain)
2012-12-11 11:46 UTC, Simon
Details
armv6j-hardfloat-linux-gnueabi-emerge --info (emerge_info,4.83 KB, text/plain)
2012-12-11 11:47 UTC, Simon
Details
The config.log (config.log,903 bytes, text/plain)
2012-12-11 18:26 UTC, Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2012-12-11 11:44:46 UTC
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
Comment 1 Simon 2012-12-11 11:45:20 UTC
Created attachment 332036 [details]
build.log
Comment 2 Simon 2012-12-11 11:46:10 UTC
Created attachment 332038 [details]
environment
Comment 3 Simon 2012-12-11 11:47:17 UTC
Created attachment 332040 [details]
armv6j-hardfloat-linux-gnueabi-emerge --info
Comment 4 Jeroen Roovers gentoo-dev 2012-12-11 15:30:26 UTC
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.
Comment 5 Simon 2012-12-11 18:26:34 UTC
Created attachment 332060 [details]
The config.log
Comment 6 Simon 2012-12-11 18:27:02 UTC
(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
Comment 7 SpanKY gentoo-dev 2013-03-19 22:34:59 UTC
latest version of nss & nspr should cross-compile fine