egcs1.1 - ppc cross compiler
Brendan Simon (brendan@dgs.monash.edu.au)
Thu, 29 Oct 1998 03:23:16 +1100
I am trying the build a PPC cross compiler for a linux host and an
MPC860 target. I also want to use RTEMS. I also want to be able to
crosscompile an mpc860-rtems application from a Win32 machine. I
thought I might be able to do a canadian cross on linux to build a Win32
hosted powerpc crosscompiler. Is this possible or am I dreaming. Note
that I do not want to use CygWin if at all possible. The tools seem
very slow. I would prefer to use create a MinGW32 cross-compiler or
maybe even DJGPP but I'm not sure how valid it is anymore. I have the
following pacakges.
* binutils-2.9.1
* egcs-1.1b
* newlib-1.8.1
* rtems-3.6.0
I unpacked the egcs and binutils archives and put a symbolic link in the
egcs source tree to the binutils directory. Does newlib and rtems need
a similar symbolic link ?
I have managed to compile a naitive version of egcs from the source
using gcc-2.7.2.3 that comes with RedHat 5.0 or 5.1. Now I am trying to
build a cross compiler with the following configure options.
cd egcs-build
egcs-src-dir/configure --target=ppc-eabi --prefix=/usr/local/egcs
--enable-version-specific-runtime-libs --with-gnu-as --with-gnu-ld
--with-newlib --host=i586-pc-linux-gnu
With gcc-2.7.2.3 there was no need to add the --host option but the
assembler complained in the compile about no -ppc option. So I decided
to make egcs the default compiler as I read in the SPECIFIC file that
comes with egcs that it is strongly recommended to recompile binutils
with egcs if initially built with gcc-2.7.2.*
Looking through the newlib tree I can't find much related to powerpc
processors. Does anyone know if it is possible to build a crosscompiler
for powerpc-newlib-rtems support with the packages that I am using ??
Thanks for any help or advice.
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.