Problems compiling gcc-3.3.3 on Solaris 8 x86

Richard Sewards richard.sewards@navtelcom.com
Tue Apr 6 13:59:00 GMT 2004


I was able to build gcc 3.3.3 on Intel Solaris 8.  I configured with:

--prefix=/usr/local.share/gnu/3.3.3
--exec-prefix=/usr/local.share/gnu/3.3.3/H-i386-pc-solaris2.8
--srcdir=/usr/local.share/gnu/src/gcc-3.3.3
--enable-languages=c,c++,java --with-cpu=i686 --disable-nls

and compiled with gcc 3.2.2.  I did not encounter any compile errors
like yours.  What arguments to configure did you use?

However, I had to abandon the GNU linker (from binutils 2.14) on Intel
Solaris 8 with gcc 3.3.3, so I added:

--without-gnu-as --with-as=/usr/ccs/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld

I found that the GNU linker would not always find C++ type information
and links failed with undefined symbols.  Using the native linker on the
same object files worked.  This occurred on some but not all of our
larger programs.

I would suggest you use the native Solaris linker and assembler.

--
Richard Sewards


-----Original Message-----
From: Carl B. Constantine [mailto:cconstan@csc.uvic.ca] 
Sent: Monday, April 05, 2004 5:49 PM
To: gcc-help@gcc.gnu.org
Subject: Problems compiling gcc-3.3.3 on Solaris 8 x86

I'm trying to compile gcc 3.3.3 on an Intel Solaris 8 box. gcc 3.1.1
compiled no problems using the same parameters but gcc 3.3.3 is barfing
on the dwarf2asm.c with errors like the following (note: I'm using gcc
3.1.1 to compile with binutils-2.14 for as, ld, et al.

Here are the errors I get, any ideas?:

In file included from ../../gcc-3.3.3/gcc/dwarf2asm.c:29:
../../gcc-3.3.3/gcc/dwarf2asm.h:26: parse error before
"ATTRIBUTE_NULL_PRINTF_3"
../../gcc-3.3.3/gcc/dwarf2asm.h:26: warning: type defaults to `int' in
declaration of `ATTRIBUTE_NULL_PRINTF_3'

[snip]

make[2]: *** [dwarf2asm.o] Error 1
make[2]: Leaving directory `/sw/pgmstore/admpubsw/gcc/obj333/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/sw/pgmstore/admpubsw/gcc/obj333/gcc'
make: *** [bootstrap] Error 



-- 
Carl B. Constantine         University of Victoria
Programmer Analyst          http://www.csc.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
cconstan@csc.uvic.ca        ELW A248, 721-8766



More information about the Gcc-help mailing list