I am using the AMCC 440SP processor. I went and
bought "Building Embedded Linux Systems" by Karim
Yaghmour. It seems to be a pretty complete book, and
I have gotten the cross-compiler completely installed,
but it doesn't get into installing a native compiler.
However, I tried cross compiling gcc by first running
this configure line:
../gcc-3.4.4/configure
--build=`../gcc-3.4.4/config.guess`
--target=powerpc-linux --host=powerpc-linux
--prefix=${PREFIX} --enable-languages=c
and then a make all. The make went fine, and
completed without any errors. However, when I ran
'make install' I got the following error:
powerpc-linux-gcc: installation problem, cannot exec
`/opt/recorder/tools/libexec/gcc/powerpc-linux/3.4.4/collect2':
Exec format error
make[2]: *** [nof/libgcc_s_nof.so] Error 1
make[2]: Leaving directory
`/opt/recorder/build-tools/build-native-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/opt/recorder/build-tools/build-native-gcc/gcc'
make: *** [install-gcc] Error 2
How do I install the native compiler?
Thanks,
Jeff Stevens
--- Clemens Koller <[EMAIL PROTECTED]> wrote:
> Hello, Jeff!
>
> > I am trying to compile GCC on an x86 platform
> to
> > run natively on an embedded PPC platform.
>
> What CPU do you use?
> I am currently working on an mpc8540 natively (from
> harddisk).
> And have a current toolchain up and running.
> I can recommend the latest Linux-From-Scratch
> documentation
> to get an idea of what to do.
>
> > I am able
> > to compile gcc as a cross compiler (to run on
> x86),
> > but can't seem to get it to cross compile gcc (to
> run
> > on ppc). Does anyone know of a good HowTo to do
> this?
> > I'm currently downloading the source distro of
> ELDK,
> > so if it's already in there I'll find it, but if
> there
> > is one elsewhere online please let me know.
>
> I've started with the ELDK 3.1 too. And updated it
> step by step to the latest versions.
>
> Greets,
>
> Clemens Koller
> _______________________________
> R&D Imaging Devices
> Anagramm GmbH
> Rupert-Mayer-Str. 45/1
> 81379 Muenchen
> Germany
>
> http://www.anagramm.de
> Phone: +49-89-741518-50
> Fax: +49-89-741518-19
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs