Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437496 - sys-devel/gcc-4.7 - .../work/gcc-4.7.2/libquadmath/configure: line 3397: ./a.out: cannot execute binary file
Summary: sys-devel/gcc-4.7 - .../work/gcc-4.7.2/libquadmath/configure: line 3397: ./a....
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 09:06 UTC by Vincent-Xavier JUMEL
Modified: 2013-01-03 20:18 UTC (History)
1 user (show)

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


Attachments
gcc-config-logs.tar.bz2 (gcc-config-logs.tar.bz2,101.08 KB, application/x-bzip)
2012-10-07 09:07 UTC, Vincent-Xavier JUMEL
Details
emerge --info output (emerge.info,20.11 KB, text/plain)
2012-10-07 09:09 UTC, Vincent-Xavier JUMEL
Details
build.log (build.log.bz2,195.71 KB, application/x-bzip)
2012-10-07 18:49 UTC, Vincent-Xavier JUMEL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent-Xavier JUMEL 2012-10-07 09:06:54 UTC
Since a week, gcc compilation crashes with make: *** [bootstrap-lean] Error 2 
The compilation is triggered by broken libs (dev-libs/mpc).


Reproducible: Always

Steps to Reproduce:
1. compile sys-devel/gcc-4.7.2
Actual Results:  
make: *** [bootstrap-lean] Error 2 

Expected Results:  
Package installation
Comment 1 Vincent-Xavier JUMEL 2012-10-07 09:07:45 UTC
Created attachment 325890 [details]
gcc-config-logs.tar.bz2
Comment 2 Vincent-Xavier JUMEL 2012-10-07 09:09:16 UTC
Created attachment 325894 [details]
emerge --info output
Comment 3 Rafał Mużyło 2012-10-07 18:01:55 UTC
(In reply to comment #1)
> Created attachment 325890 [details]
> gcc-build-logs.tar.bz2

What about the build log itself ? The other will be useful only after we know which one of those config.logs should be checked.
Comment 4 Vincent-Xavier JUMEL 2012-10-07 18:49:02 UTC
Created attachment 325938 [details]
build.log
Comment 5 Vincent-Xavier JUMEL 2012-10-07 18:54:43 UTC
$ emerge -pqv =sys-devel/gcc-4.7.2
[ebuild     U ] sys-devel/gcc-4.7.2 [4.7.1] USE="cxx fortran gcj mudflap multilib) nls nptl objc objc++ objc-gc openmp (-altivec) -bootstrap -build -doc (-fixed-point) -go -graphite -gtk (-hardened) (-libssp) -multislot -nocxx -nopie -nossp {-test} -vanilla"
Comment 6 Rafał Mużyło 2012-10-07 21:54:46 UTC
configure:3307: checking for C compiler default output file name
configure:3329: /var/tmp/portage/sys-devel/gcc-4.7.2/work/build/./gcc/xgcc -B/
var/tmp/portage/sys-devel/gcc-4.7.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-g
nu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/incl
ude -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -g -O2 -pipe -ggdb -ma
rch=native   conftest.c  >&5
configure:3333: $? = 0
configure:3370: result: a.out
configure:3386: checking whether the C compiler works
configure:3395: ./a.out
/var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libquadmath/configure: lin
e 3397: ./a.out: cannot execute binary file
configure:3399: $? = 126
configure:3406: error: in `/var/tmp/portage/sys-devel/gcc-4.7.2/work/build/x86
_64-pc-linux-gnu/32/libquadmath':
configure:3410: error: cannot run C compiled programs.


Well, one chance is that '-mmmx -msse -msse2 -msse4a -m3dnow' shouldn't be in your CFLAGS (looks bad regardless), the other - that you've failed to set 32bit emulation (or whatever that option is called) in the kernel.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-08 10:59:22 UTC
checking whether the C compiler works... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.7.2/work/build/x86_64-pc-linux-gnu/32/libquadmath':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
checking for backtrace_symbols... yes
checking for gettimeofday... make[1]: *** [configure-target-libquadmath] Error 1
make[1]: *** Waiting for unfinished jobs....
Comment 8 SpanKY gentoo-dev 2012-10-08 19:48:39 UTC
yes, you need to have x86 support in the kernel in order to build a multilib gcc
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-03 12:33:37 UTC
*** Bug 449980 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2013-01-03 20:18:54 UTC
*** Bug 449980 has been marked as a duplicate of this bug. ***