This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Configuring GCC build: doc patch
I said I would report what happened. I found that having rebuilt
with ksh my compiler still would not build the FOX library, whereas
the Sun Workshop compiler will, and it fails with a segfault. So
reading more about this I find I should really be using -xildoff
-xarch=v9 options for Sparc V9. I try this and the build fails. I
have tried to force the build to use the Sun assembler and linker
rather than the GNU one, because I probably built them with a badly
config'd gcc in the past. My build script now looks like this:
<quote>
#!/bin/ksh
PATH=/bin:/progs/SUNWspro/bin:/usr/sbin:/usr/ccs/bin:/etc:/usr/local/bin:/opt/sfw/bin:/usr/openwin/bin
export PATH
ONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
BUILDINGVER=3.4.1
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"
export CC
MAKE=/usr/local/bin/gmake
export MAKE
ASOPT="--with-as=/usr/ccs/bin/as"
LDOPT="--with-ld=/usr/ccs/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 check
</quote>
and results in
<quote>
echo timestamp > s-check
stage1/xgcc -Bstage1/ -B/usr/local/sparc-sun-solaris2.9/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
ld: warning: file ../libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
xcalloc genmodes.o
htab_hash_string genmodes.o
htab_find genmodes.o
xstrdup genmodes.o
xmalloc genmodes.o
htab_find_slot genmodes.o
htab_create_alloc genmodes.o
ld: fatal: Symbol referencing errors. No output written to genmodes
collect2: ld returned 1 exit status
gmake[2]: *** [genmodes] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory `/export/home/Scratch/hgs/gcc-build/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/export/home/Scratch/hgs/gcc-build/gcc'
gmake: *** [bootstrap-lean] Error 2
brains hgs 37 %>
</quote>
Does anything stick out like a sore thumb?
Thank you,
Hugh