I've STW for this but can't see others with the same problem. I'm getting:
[...] /bin/bash ./libtool --mode=compile /export/home/Scratch/hgs/gcc-build/gcc/xgcc -B/export/home/Scratch/hgs/gcc-build/gcc/ -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -DGC_SOLARIS_THREADS=1 -DGC_SOLARIS_PTHREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I. -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/include -O2 -mcpu=v9 -fexceptions -I././targ-include -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/./libc/include -O2 -mcpu=v9 -c /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c /export/home/Scratch/hgs/gcc-build/gcc/xgcc -B/export/home/Scratch/hgs/gcc-build/gcc/ -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -DGC_SOLARIS_THREADS=1 -DGC_SOLARIS_PTHREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I. -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/include -O2 -mcpu=v9 -fexceptions -I././targ-include -I/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/./libc/include -O2 -mcpu=v9 -c /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c -fPIC -DPIC -o .libs/dyn_load.o /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c: In function `GC_FirstDLOpenedLinkMap': /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:110: error: syntax error before "_DYNAMIC" /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:111: error: `Elf32_Dyn' undeclared (first use in this function) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:111: error: (Each undeclared identifier is reported only once /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:111: error: for each function it appears in.) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:111: error: `dp' undeclared (first use in this function) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:114: error: syntax error before '*' token /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:127: error: `dynStructureAddr' undeclared (first use in this function) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:127: error: `_DYNAMIC' undeclared (first use in this function) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:135: error: parse error before ')' token /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:136: error: `DT_DEBUG' undeclared (first use in this function) /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:139: error: dereferencing pointer to incomplete type /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c: In function `GC_register_dynamic_libraries': /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:209: error: dereferencing pointer to incomplete type /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:227: error: dereferencing pointer to incomplete type /export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:229: error: dereferencing pointer to incomplete type gmake[3]: *** [dyn_load.lo] Error 1 gmake[3]: Leaving directory `/export/home/Scratch/hgs/gcc-build/sparc-sun-solaris2.9/boehm-gc' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/export/home/Scratch/hgs/gcc-build/sparc-sun-solaris2.9/boehm-gc' gmake[1]: *** [all-target-boehm-gc] Error 2 gmake[1]: Leaving directory `/export/home/Scratch/hgs/gcc-build' gmake: *** [bootstrap-lean] Error 2 You have mail in /var/mail/hgs bash-2.05$
when using
gcc (GCC) 3.4.1 GNU assembler 2.14 20030612 GNU ld version 2.14 20030612 GNU Make 3.80 ltmain.sh (GNU libtool) 1.5.14 (1.1220.2.195 2005/02/12 12:12:33) GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9)
and a build script of <quote> #!/bin/bash -x
PATH=/bin:/usr/sbin:/usr/ccs/bin:/etc:/usr/local/bin:/opt/sfw/bin:/usr/openwin/bin export PATH
CONFIG_SHELL=/bin/bash export CONFIG_SHELL BUILDINGVER=3.4.3 BUILD_DIR=/export/home/Scratch/hgs/gcc-build GCC_SOURCE_DIR=/export/home/Scratch/hgs/gcc-${BUILDINGVER}
# CC="/progs/SUNWspro/bin/cc -xildoff -xarch=v9" options only needed # for 64 bit... # CC="/progs/SUNWspro/bin/cc" CC=gcc export CC
CXX=g++ export CXX
MAKE=/usr/local/bin/gmake export MAKE
ASOPT="--with-as=/usr/local/bin/as" LDOPT="--with-ld=/usr/local/bin/ld" LANGOPT="--enable-languages=c,c++,f77,java,objc"
cd $BUILD_DIR
/bin/rm -rf ./*
${GCC_SOURCE_DIR}/configure $ASOPT $LDOPT $LANGOPTS --disable-nls && \
# gmake --jobs=5 bootstrap-lean && gmake bootstrap-lean && \
gmake check
</quote>
Is there anything I have missed?
Thank you, Hugh