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.
Did you emerge the gcc-4.2 and -4.3 snapshots or did you just use a tarball? Emergeing them should work fine...
4.2 and 4.3 are not supported at the moment so feel free to research the issue yourself and post back