gcc-3.4.2 failed to be built on Solaris 10/x86

Lingtao Zeng a12zengl@yahoo.com
Fri Oct 8 23:06:00 GMT 2004


Hello,

I was trying to build gcc-3.4.2 on a newly-installed
Solaris 10/x86 machine. The 
configure was no problem, however, when I tried to run
"make bootstrap", it 
generated the following error message:

cc -c -DHAVE_CONFIG_H -g -I. 
-I/export/home/tech/download/sources/gcc-3.4.2/libiberty/../include

/export/home/tech/download/sources/gcc-3.4.2/libiberty/sigsetmask.c
-o 
sigsetmask.o
"/usr/include/sys/feature_tests.h", line 330: #error:
"Compiler or options 
invalid for pre-UNIX 03 X/Open applications and
pre-2001 POSIX applications"
cc: acomp failed for 
/export/home/tech/download/sources/gcc-3.4.2/libiberty/sigsetmask.c
make[1]: *** [sigsetmask.o] Error 2
make[1]: Leaving directory 
`/export/home/tech/download/sources/gcc_build/libiberty'
make: *** [all-libiberty] Error 2


I also tried to run "make CC=cc\ -D_XPG6 bootstrap",
it seemed to fix the above 
error, but ceased after generating the following error
message:


cc -D_XPG6 -c -g -DHAVE_CONFIG_H -I. 
-I/export/home/techdownload/sources/gcc-3.4.2/intl 
/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 37: 
syntax error before or at: .
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 42: 
syntax error before or at: .
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 48: 
warning: syntax error: empty declaration
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 51: 
syntax error before or at: .
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 61: 
warning: syntax error: empty declaration
"/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c",
line 156: 
cannot recover from previous errors
cc: acomp failed for 
/export/home/tech/download/sources/gcc-3.4.2/intl/plural-exp.c
make[1]: *** [plural-exp.o] Error 2
make[1]: Leaving directory 
`/export/home/tech/download/sources/gcc_build/intl'
make: *** [all-intl] Error 2


I was using SunONE compiler (from SunONE Studio 8) and
GNU make (complied 
successfully using the SunONE compiler)

Could anybody give me any help?

taolizhong



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



More information about the Gcc-help mailing list