tags:

views:

24

answers:

0

I have an Embedded linux PowerPC project based on a powerpc-e300c3 core for which I have a board support package that included a GCC set up for a --host=i686-pc-linux-gnu and --target=powerpc-e300c3-linux-gnu. This happily creates executables from a host machine for execution on the embedded machine.

For development I have the PowerPC's root filesystem mapped to a NFS drive on my host machine and so disk space is not an issue and what I would like is a version of GCC that will run directly on the PowerPC.

This is with a view to being able to run configure/make/make install to roll the ALSA sound software on my embedded platform from v1.0.15 to the latest 1.0.23 to solve.

What I thought I could do was down load the latest GCC source code and run the following on it from my host PC from within a LTIB shell...

./configure --build=i686-pc-linux-gnu --host=powerpc-e300c3-linux-gnu --target=powerpc-e300c3-linux-gnu

However when I ran make it complained like this...

checking whether the C compiler works... 
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-build-libiberty] Error 1
make[1]: Leaving directory `/home/powerpc/svn/trunk/tools/gcc-4.1.2'
make: *** [all] Error 2

I assume that the test program is failing to run because its compiled for a PowerPC processor but am unsure how to fix this.

Anybody got any suggestions about what I am missing? I am using GCC 4.1.2 My host machine is a Ferdora 8 box running 2.6.26.8-57.fc8 and the PowerPC is running 2.6.24.3-rt3