This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiling gcc-4.0.2 on solaris 9


> > 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.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]