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

Bug 155995

Summary: gcc-4.2 and gcc-4.3 build fails on AMD64
Product: Gentoo Linux Reporter: D.K. <dkouroun>
Component: [OLD] GCC PortingAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal CC: amd64
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description D.K. 2006-11-22 21:49:01 UTC
I tried to install the latest gcc-4.2 and gcc-4.3 compilers on an AMD64 system
running gentoo AMD64. I installed gentoo there by just using the AMD64 stage-3.
No speciall care taken for profiles e.t.c. Everything default. gcc-4.2 was able
to install only by using the switch --disable-multilib in the configure phase.
Otherwise it fails. The same happens with gcc-4.3. The problem is due to the
directory layout of gentoo. GCC expects the 32bit libraries to reside on /lib
while gentoo places them under /lib32 and uses /lib for the 64bit libraries.
For me this seems the right thing to do since, if somebody doesn't want 32bit
compatibility, then why his libraries on a 64bit system should be under lib64?
GCC has a different viewpoint however and they follow some standard. SuSE for 
AMD64 uses this standard as well, and it places those 32bit libraries under 
/lib while all the 64bit libraries go to /lib64. I had no problems with gcc 
and SuSE. 

Is there any work-around which will allow me to install both 32bit and 64bit 
libraries? Do you consider fixing this layout problem and following the 
standard?

Regards!
D.K.
Comment 1 Michael Weyershäuser 2006-11-23 07:35:28 UTC
Did you emerge the gcc-4.2 and -4.3 snapshots or did you just use a tarball? Emergeing them should work fine...
Comment 2 SpanKY gentoo-dev 2006-11-26 05:24:44 UTC
4.2 and 4.3 are not supported at the moment so feel free to research the issue yourself and post back