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


On Fri, Nov 18, 2005 at 01:48:57PM -0500, Douglas B. Jones wrote:
> I am on:
> 
> SunOS hostname 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Blade-1500.
> I try to do a bootstrap with the following using gnu make 3.80:
> 
> mkdir objectdir;cd objectdir
> CC="cc -xildoff -xarch=v9"
> export CC

Why are you choosing those flags?

> ../gcc-4.0.2/configure
> gmake bootstrap
> 
> I get the following errors:
> 
> stage1/xgcc -Bstage1/ -B/usr/local/sparc-sun-solaris2.9/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o
> build/genmodes \
>  build/genmodes.o build/errors.o ../build-sparc-sun-solaris2.9/libiberty/libiberty.a
> ld: warning: file ../build-sparc-sun-solaris2.9/libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS64

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.


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