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: Eric Botcazou
- Cc: gcc at gcc dot gnu dot org, "Douglas B. Jones"
- Date: Fri, 18 Nov 2005 12:24:03 -0800
- Subject: Re: compiling gcc-4.0.2 on solaris 9
- References: <PHEKJLKKDLGCAEJLJPHMEELLEEAA.douglas@gpc.edu> <20051118193407.GR15434@synopsys.com> <200511182117.11759.ebotcazou@libertysurf.fr>
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".
- 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 - Re: compiling gcc-4.0.2 on solaris 9
* From: Joe Buck - Re: compiling gcc-4.0.2 on solaris 9
* From: Eric Botcazou
- 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] |