This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross gcc build problem


Hi,

I'm trying to build a gcc cross compiler for arm. I have the
arm-linux-gnu binutils installed as well as the native arm libc and
headers. When I try to make gcc this is what it gives me:

 stage1/xgcc -Bstage1/ -B/usr/arm-linux-gnu/bin/   -g -O2 -DIN_GCC   -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o
build/genmodes \
         build/genmodes.o
build/errors.o ../build-arm-linux-gnu/libiberty/libiberty.a
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
/usr/bin/arm-linux-gnu-ld: ../build-arm-linux-gnu/libiberty/libiberty.a(hashtab.o): Relocations in generic ELF (EM: 3)
../build-arm-linux-gnu/libiberty/libiberty.a: could not read symbols:
File in wrong format
collect2: ld returned 1 exit status

Here's the configure statement I used:
../src/configure -v --enable-languages=c,c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-checking=release arm-linux-gnu

Any hints would be greatly appreciated.

Thanks,
-Laine Walker-Avina


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]