Joe Buck - Re: compiling gcc-4.0.2 on solaris 9 (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing 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] |
- From: Joe Buck
- To: "Douglas B. Jones"
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 18 Nov 2005 11:34:07 -0800
- Subject: Re: compiling gcc-4.0.2 on solaris 9
- References: <PHEKJLKKDLGCAEJLJPHMEELLEEAA.douglas@gpc.edu>
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.
- Follow-Ups:
- Re: compiling gcc-4.0.2 on solaris 9
* From: Eric Botcazou
- Re: compiling gcc-4.0.2 on solaris 9
- References:
- compiling gcc-4.0.2 on solaris 9
* From: Douglas B. Jones
- compiling gcc-4.0.2 on solaris 9
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |