This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> 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:
I used "arm-linux-ld -V" and found my linker supports following
emulations, armelf_linux, armelf_linux26, and armelf, but no "elf32arm"
supports. My binutils is version 2.10, how can I got the elf32arm
emulation?
Is this a inconsistency between old and new binutils?
Do I have some tricks to bypass this?
>
> #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
>
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |