On Fri, Nov 18, 2005 at 09:17:11PM +0100, Eric Botcazou wrote: > > > mkdir objectdir;cd objectdir > > > CC="cc -xildoff -xarch=v9" > > > export CC > > > > Why are you choosing those flags? > > Probably because they are advertised on: > http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 > > > Just do CC=cc, you will get both a 32-bit and a 64-bit compiler. What > > seems to be happening is that the build process assumes that the first > > libiberty you get (the one built with the native compiler) is 32-bit code. > > Douglas has simply mixed 32-bit and 64-bit configuration. > > For the 32-bit compiler (sparc-sun-solaris2.9), CC=cc is fine. > For the 64-bit compiler (sparc64-sun-solaris2.9), CC="cc -xarch=v9" is fine.
This seems error-prone; maybe more warnings need to be added to the installation note. Also, sparc-sun-solaris2.9 doesn't mean "32-bit compiler", it means "build both compilers, defaulting to 32 bits".