3 msgproblem with my account
6 msgregarding privilege levels of pentium 4
6 msghow to generate code-loops
1 msgHow to get address and size of a section
2 msgStill can't build C++ for xscale-elf
1 msgMac OS X: sudo gcc_select 4.0: Error trying to ...
1 msgENQUIRY
1 msgRe: Trampoline implementation for MIPS
2 msgAdding -R to specs, need assistance

problems building ARM compiler
\ Jeff Rhyason (28 Sep 2006)
. \ Michael Eager (30 Sep 2006)

1 msgautovect and autoparallel
1 msgCompiling from alternate root prefix.
3 msgRe: How do I build C++ for xscale-elf?
2 msgbinary compatibility between gcc 3.4.3 and 4.x
2 msgHiding constructior is required while no direct...
2 msgCan conditional compilation test strings?
5 msgHelp with gcc installation on AIX 5.3
2 msgcollect2: ld returned 1 exit status
7 msgAssembly constraints - offset?
2 msgrtl.def
Subject:problems building ARM compiler
Group:Gcc-help
From:Jeff Rhyason
Date:28 Sep 2006


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/ar m-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
[...]



© 2004-2008 readlist.com