[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
as cross assembler
From: |
James Hanley |
Subject: |
as cross assembler |
Date: |
Wed, 6 Aug 2003 05:47:49 -0700 (PDT) |
I am trying to build a cross compiler (on a sparc for targets self, i386,
m68k & ppc) and first I configured and built binutils-2.14 with
../binutils-2.14/configure --enable-targets=m68k-elf,ppc-elf,i386-elf
--with-gnu-ld --with-gnu-as --enable-64-bit-bfd --enable-shared
Everything seemed to go okay then ran make, and again everything seemed to
go very well.
After installing I ran the new ld -V and got:
address@hidden: which ld
/usr/local/bin/ld
address@hidden: ld -V
GNU ld version 2.14
20030612
Supported emulations:
elf32_sparc
elf64_sparc
m68kelf
elf32ppc
elf32ppclinux
elf32ppcsim
elf_i386
when running as --target-help I get:
address@hidden: which as
/usr/local/bin/as
address@hidden: as --target-help
SPARC options:
-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite | -Asparc86x | -Av8plus |
(yada yada yada.. lots more Sparc options)
--little-endian-data generate code for a machine having big endian
instructions and little endian data.
And that's it... as mentions nothing about support for other platforms
even though ld does.
so when I try to compile gcc later with cross support for the above
mentioned platforms, eventually I will get an error from the gcc make
about:
gmake[2]: Leaving directory
`/home/jhanley/projects/gnu_cross_compiler/gcc-m68k-elf/gcc/intl'
/home/jhanley/projects/gnu_cross_compiler/gcc-m68k-elf/gcc/xgcc
-B/home/jhanley/projects/gnu_cross_compiler/gcc-m68k-elf/gcc/
-B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-elf/lib/ -isystem
/usr/local/m68k-elf/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/.
-I../../gcc-3.3/gcc/config -I../../gcc-3.3/gcc/../include -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss \
-Dinhibit_libc -c ../../gcc-3.3/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
as: unrecognized option `-mc68020'
gmake[1]: *** [crtbegin.o] Error 1
gmake[1]: Leaving directory
`/home/jhanley/projects/gnu_cross_compiler/gcc-m68k-elf/gcc'
gmake: *** [all-gcc] Error 2
Is there something I didn't do when confiiguring or making binutils?
-Jim
- as cross assembler,
James Hanley <=