Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 421679

Summary: glibc-2.15-r2 can't be compiled when coreutils and/or binutils are compiled with gcc-4.7.1
Product: Gentoo Linux Reporter: David Carlos Manuelda <StormByte>
Component: [OLD] GCC PortingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glibc build log
emerge --info

Description David Carlos Manuelda 2012-06-18 01:41:58 UTC
I am not sure if this is architecture specific or not, but I will provide a way to reproduce at least on amd64:

emerge =gcc-4.7.1
gcc-config x86_64-pc-linux-gnu-4.7.1
source /etc/profile
emerge -1 coreutils binutils
emerge -1 glibc
And this is what I get in configure stage (attached)
Comment 1 David Carlos Manuelda 2012-06-18 01:42:29 UTC
Created attachment 315633 [details]
glibc build log
Comment 2 David Carlos Manuelda 2012-06-18 01:43:00 UTC
Created attachment 315635 [details]
emerge --info
Comment 3 David Carlos Manuelda 2012-06-18 02:32:35 UTC
I solved it by removed CFLAGS_x86, CXXFLAGS_x86 and LDFLAGS_x86 from /etc/make.conf

Can it be actually the problem?
Comment 4 David Carlos Manuelda 2012-06-18 02:32:54 UTC
I solved it by removed CFLAGS_x86, CXXFLAGS_x86 and LDFLAGS_x86 from /etc/make.conf and recompiling binutils.

Can it be actually the problem?
Comment 5 Rafał Mużyło 2012-06-18 07:27:38 UTC
@comment 4:
Hard to say without config.log, but most likely yes.
Probably those LDFLAGS need to be prefixed with '-Wl,'.