Build cross-compile g++ problem(target arm-linux)

Graduate g8541029@ccunix.ccu.edu.tw
Sun Nov 5 23:24:00 GMT 2000


Hi all,

I have built a cross-compile toolchain from i686-linux to arm-linux
including binutils 2.10, gcc-core 2.95.2, glibc 2.1.3.
Now, I want to build gnu g++(also cross-compile), I got some error
messages.

I untar gcc-core- and gcc-g++- files and my coufigure command is
configure --prefix=/usr/local/arm --target=arm-linux --host=i686-linux
  --with-cpu=strongarm110
Config seems ok...

then make LANGUAGES="g++", some time later, error occurs.

make[2]: Entering directory
/root/package/gcc/gcc-2.95.2/build/arm-linux/libiberty'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory
/root/package/gcc/gcc-2.95.2/build/arm-linux/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
/root/package/gcc/gcc-2.95.2/build/arm-linux/libstdc++' 
make: *** [all-target-libstdc++] Error 2

I checked the config.out files in arm-llinux/libiberty. It seems the
following message is the key one.

/usr/local/arm/arm-linux/bin/ld: unrecognised emulation mode: elf32arm
Supported emulations: armelf_linux armelf_linux26 armelf
collect2: ld returned 1 exit status
configure: failed program was:

#line 1760 "configure"
#include "confdefs.h"

main(){return(0);}

I know I must modify the specs files in
/usr/local/arm/lib/gcc-lib/arm-linux/2.96.2
to be something like armelf_linux26, armelf_linux and -p option. Actually, I
have 
already done it while I was building the glibc, but the same error message.

What should I do?


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list