Was trying to build a cross-gcc from adtools trunk tonight and got this trying to build binutils
I ran
../binutils/configure --prefix=/opt/morphos --target=ppc-morphos
Code:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../binutils/bfd -I. -I. -I../../binutils/bfd -I../../binutils/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../binutils/bfd/elf32-morphos.c -o elf32-morphos.o
../../binutils/bfd/elf32-morphos.c:128: error: expected declaration specifiers or '...' before 'Elf32_Internal_Rela'
../../binutils/bfd/elf32-morphos.c:131: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_relax_section'
../../binutils/bfd/elf32-morphos.c:135: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_object_p'
../../binutils/bfd/elf32-morphos.c:136: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_set_private_flags'
../../binutils/bfd/elf32-morphos.c:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_merge_private_bfd_data'
../../binutils/bfd/elf32-morphos.c:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_modify_segment_map'
../../binutils/bfd/elf32-morphos.c:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ppc_elf_create_dynamic_secti
.....
lots of junk...
however
Code:
../binutils/configure --prefix=/opt/morphos --target=ppc-amigaos
does build binutils correctly....
I also built without problem;
Code:
../binutils/configure --prefix=/opt/morphos --target=ppc-eabi
Whats the best way to build a mos cross compiler??
can I use the standard powerpc-eabi target to build from linux??
for grins I grabbed the latest binutils 2.21 and --target=morphos still fails..
Code:
*** ld does not support target powerpc-unknown-morphos
so are there some morphos specific patches around? right now I have ppc-amigos, powerpc-amigaos, ppc-eabi, powerpc-eabi...
-- Stu -- [[ G4 Mini / 1.5ghz ]]