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

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

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

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

make[2]: Entering directory
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
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"


I know I must modify the specs files in
to be something like armelf_linux26, armelf_linux and -p option. Actually, I
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,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list