building adtools / cross gcc
  • Just looking around
    yakumo9275
    Posts: 16 from 2008/7/3
    From: Lexington VA /...
    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 ]]
  • »01.02.11 - 02:37
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    You should contact our current gcc maintainer (morgoth6@gmail.com) for cross build instructions.
  • »01.02.11 - 07:24
    Profile Visit Website
  • Just looking around
    yakumo9275
    Posts: 16 from 2008/7/3
    From: Lexington VA /...
    so nobody knows?? nobody sets up a cross compiler here? I emailed morgoth6 but had no answer. Has anyone else here set one up?
    -- Stu -- [[ G4 Mini / 1.5ghz ]]
  • »06.02.11 - 12:07
    Profile Visit Website
  • Just looking around
    Fats
    Posts: 19 from 2011/2/3
    I am also interested in building a cross compiler but failed to do so.
    Piru, you said in message about PFS you set up a cross compiler. Could you document it for other people how to do it ?

    greets,
    Staf.
    Trust me ...
    I know what I am doing
  • »29.04.11 - 09:30
    Profile