This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem building GCC 3.4.3 on x86_64 -- bootstrap failure
- From: Hamilton Chris-cham <chris dot hamilton at freescale dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 24 Mar 2005 12:03:49 -0700
- Subject: Problem building GCC 3.4.3 on x86_64 -- bootstrap failure
I'm getting bootstrap failures trying to build on "x86_64-unknown-linux-gnu". The dying gasp of my build attempt looks like this:
-----
stage1/xgcc -Bstage1/ -B/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/x86_64-unknown-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/temp/gccbuild/gcc-3.4.3/gcc -I/temp/gccbuild/gcc-3.4.3/gcc/. -I/temp/gccbuild/gcc-3.4.3/gcc/../include /temp/gccbuild/gcc-3.4.3/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/x86_64-unknown-linux-gnu/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
/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/bin/ld: warning: i386 architecture of input file `../libiberty/libiberty.a(hashtab.o)' is incompatible with i386:x86-64 output
/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/bin/ld: warning: i386 architecture of input file `../libiberty/libiberty.a(xmalloc.o)' is incompatible with i386:x86-64 output
/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/bin/ld: warning: i386 architecture of input file `../libiberty/libiberty.a(xstrdup.o)' is incompatible with i386:x86-64 output
/proj/ppctools/scratch2/_TOOLS_/dist/gnu-gcc-3.4.3-binutils-2.15/x86_64-pc-linux2.4/bin/ld: warning: i386 architecture of input file `../libiberty/libiberty.a(xexit.o)' is incompatible with i386:x86-64 output
./genmodes -h > tmp-modes.h
Memory fault
make[2]: *** [s-modes] Error 139
make[2]: Leaving directory `/temp/gccbuild/gcc-3.4.3/_build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/temp/gccbuild/gcc-3.4.3/_build/gcc'
make: *** [bootstrap] Error 2
-----
I have two questions:
1. The online documentation for building/installing gcc says that the bootstrap compiler must be "link-compatible" with the target compiler. I'm not certain that I've met that requirement, and I'm not sure how to determine that. My bootstrap compiler is also gcc-3.4.3 (also with binutils 2.15), but built on "i386-pc-linux-gnu". Is this a 32-bit vs. 64-bit problem? If so, is there a workaround?
2. Just after the warnings about architecture incompatibility, there's a "Memory fault" error. Is this just a symptom of the previous problem, or is it a different problem I need to be worried about?
Any hints would be appreciated!
Chris