This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Power PC Cross-compiler build



Folks

I'm trying to build a cross-compiler for a PowerPC VME card e.g. MVME1600.
The host is a SPARC with sunos4.1.3 and the target runs under VxWorks5.2.

So I started with binutils using:

../binutils-2.7/configure --host=sparc-sun-sunos4.1.3 --target=powerpc-wrs-vxworks
-v

Trouble is I then had the message:

*** BFD does not support target powerpc-wrs-vxworks.
*** Look in bfd/config.bfd for supported targets.

So I added to the appropriate switch in binutils-2.7/bfd/config.bfd:


|powerpc-*-vxworks


When I tried the configure again it went a bit further but then I got:
*** ld does not support target powerpc-wrs-vxworks
*** see ld/configure.tgt for supported targets

So I added to that configure.tgt file a line in the case statement:
powerpc-*vxworks) targ_emul=elf32ppc ;;

That got the configure to finish so I tried:
make all

Which stalled with:

../../binutils-2.7/gas/output-file.c: In function 'output_file_create':
../../binutils-2.7/gas/output-file.c: 'TARGET_FORMAT' undeclared

Now I'm stuck and would greatly appreciate any hints to resolve this.
Is this sunos hosted/PowerPC-VxWorks target a support configuration?

Thanks

Alec Creed
creed@ferndown.ate.slb.com