This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: compiling gcc-4.0.2 on solaris 9
- From: "Douglas B. Jones" <douglas at gpc dot edu>
- To: <gcc at gcc dot gnu dot org>
- Cc: "'Douglas B. Jones'" <douglas at gpc dot edu>
- Date: Mon, 21 Nov 2005 16:07:22 -0500
- Subject: RE: compiling gcc-4.0.2 on solaris 9
- Reply-to: <douglas at gpc dot edu>
Thanks to everyone for the information below. I have change the
CC to cc only. So, now the script is:
CC=cc
export CC
../gcc-4.0.2/configure
gmake bootstrap
and I get the errors:
checking for sparc-sun-solaris2.9-gcc... no
checking for gcc... no
checking for sparc-sun-solaris2.9-cc... no
checking for cc... cc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking whether cc understands -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... cross-compiling...
unknown
checking to probe for byte ordering... cc: Warning: option -2 passed to ld
"conftest.c", line 4: warning: initializer does not fit or is out of range: 35283
"conftest.c", line 4: warning: initializer does not fit or is out of range: 58339
"conftest.c", line 4: warning: initializer does not fit or is out of range: 34195
"conftest.c", line 4: warning: initializer does not fit or is out of range: 38341
"conftest.c", line 4: warning: initializer does not fit or is out of range: 35268
"conftest.c", line 4: warning: initializer does not fit or is out of range: 38273
"conftest.c", line 5: warning: initializer does not fit or is out of range: 49865
"conftest.c", line 5: warning: initializer does not fit or is out of range: 51077
"conftest.c", line 5: warning: initializer does not fit or is out of range: 38340
"conftest.c", line 5: warning: initializer does not fit or is out of range: 35201
"conftest.c", line 5: warning: initializer does not fit or is out of range: 38370
"conftest.c", line 5: warning: initializer does not fit or is out of range: 43234
guessing bigendian ...
unknown
configure: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/export/home/src/net/gnu/odir'
make: *** [bootstrap] Error 2
This is all somewhat after the line of "Comparing stage2 and stage3 of the compiler".
Also, the ask why I was using the flags I was. The only reference I found to sparc
where the sparcv9-*-solaris2* which sent me to sparc64-*-solaris2* on install/specific.
html. Should I have been looking somewhere else?
Thanks everyone for the help you have given to one who is not too familiar with
compiler work. Thanks!
-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of Eric Botcazou
Sent: Friday, November 18, 2005 6:06 PM
To: Joe Buck
Cc: gcc@gcc.gnu.org; Douglas B. Jones
Subject: Re: compiling gcc-4.0.2 on solaris 9
> Although the compiler's executable is composed of 32-bit code, it can
> generate 32 or 64 bit code, which is what I meant by "both compilers".
Ah! Indeed, but you're going to further confuse the readers. :-)
I think the best terminology is "32-bit multilib compiler" for
sparc-sun-solaris and "64-bit multilib compiler" for sparc64-sun-solaris.
--
Eric Botcazou