Subject: Building gcc-3.4.1 with SunPro / Solaris as
To: None <>
From: Ralf-P. Weinmann <>
List: tech-pkg
Date: 10/25/2004 15:18:18
Hi list!

Last I heard,  gcc + GNU binutils was not supported under pkgsrc/Solaris. So I
built gcc 3.4.1 with the SunPro compiler (Sun ONE Studio 8) and the native
as/ld toolchain and am getting the following error:

stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/sparc-sun-solaris2.8/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H -I/usr/pkg/pkgsrc/lang/gcc34/work/.buildlink/include  -I/usr/pkg/include -I/usr/pkg/include   -I. -I. -I/usr/pkg/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc -I/usr/pkg/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/. -I/usr/pkg/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/../include  /usr/pkg/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/loop.c -o loop.o
/tmp/cc1Z9Haa.s: Assembler messages:
/tmp/cc1Z9Haa.s:16707: Error: bad expression
gmake[2]: *** [loop.o] Error 1
gmake[2]: Leaving directory `/usr/pkg/pkgsrc/lang/gcc34/work/obj/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/usr/pkg/pkgsrc/lang/gcc34/work/obj/gcc'
gmake: *** [bootstrap] Error 2
*** Error code 2

bmake: stopped in /usr/pkg/pkgsrc/lang/gcc34
*** Error code 1

bmake: stopped in /usr/pkg/pkgsrc/lang/gcc34

Has anyone seen this before? It looks to me as if gcc expects a GNU as here.
Is that a bug or a feature?


Ralf-P. Weinmann <>
PGP fingerprint: 1024D/EF114FC02F150EB9D4F275B6159CEBEAEFCD9B06