problems building ARM compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to build a native ARM compiler from an x86 machine.  I
get "/usr/lib/crt1.o: could not read symbols: File in wrong format"
while configuring the stage2 compiler.  What should I set to get
it to not use the host's libraries?  (Shouldn't the stage2 compiler
be using $PREFIX/lib/crt1.o?)

Thanks for any help,
Jeff

% uname -io
i386 GNU/Linux
% rm -fr * ;  ../gcc/configure --prefix=$ARMLINUX --host=arm-linux --enable-languages=c --with-float=softfp && make
creating cache ./config.cache
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... arm-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
[...]
rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gpl.pod gcc.pod
make[3]: Leaving directory `/home/jar/projects/buildgcc/gcc'
make[2]: Leaving directory `/home/jar/projects/buildgcc'
make[2]: Entering directory `/home/jar/projects/buildgcc'
make[3]: Entering directory `/home/jar/projects/buildgcc'
rm -f stage_current
make[3]: Leaving directory `/home/jar/projects/buildgcc'
make[2]: Leaving directory `/home/jar/projects/buildgcc'
make[2]: Entering directory `/home/jar/projects/buildgcc'
Configuring stage 2 in ./intl
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for arm-linux-gcc... 
/home/jar/projects/buildgcc/./prev-gcc/xgcc -B/home/jar/projects/buildgcc/./prev-gcc/ -B/home/jar/projects/buildgcc/../buildroot-gcc342ok/build_arm_nofpu/staging_dir/arm-linux/bin/
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory `/home/jar/projects/buildgcc'
make[1]: *** [stage2-bubble] Error 2
% cat intl/config.log
[...]
Thread model: posix
gcc version 4.2.0 20060927 (experimental)
configure:2090: $? = 0
configure:2092:  /home/jar/projects/buildgcc/./prev-gcc/xgcc -B/home/jar/projects/buildgcc/./prev-gcc/ -B/home/jar/projects/buildgcc/../buildroot-gcc342ok/build_arm_nofpu/staging_dir/arm-linux/bin/ -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2095: $? = 1
configure:2118: checking for C compiler default output file name
configure:2121:  /home/jar/projects/buildgcc/./prev-gcc/xgcc -B/home/jar/projects/buildgcc/./prev-gcc/ -B/home/jar/projects/buildgcc/../buildroot-gcc342ok/build_arm_nofpu/staging_dir/arm-linux/bin/ -g -O2   conftest.c  >&5
/home/jar/projects/buildgcc/../buildroot-gcc342ok/build_arm_nofpu/staging_dir/arm-linux/bin/ld: /usr/lib/crt1.o: Relocations in generic ELF (EM: 3)
/usr/lib/crt1.o: could not read symbols: File in wrong format
[...]


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux