How to compile gcc for 64 bit Power PC

Vijayakumar Ramalingam aswathavijay at gmail.com
Thu Nov 17 23:38:45 EST 2005


Hi all,
I want to compile gcc 3.4.3 on 32-bit x86 redhat Linux system, for 64 bit
Power PC. Can you give some pointers for cross compiling. I tried, but I am
facing the problem, in gcc folder,

For Configuring i have mentioned like this
./configure --target=powerpc-*-eabi
--host=i686-pc-linux-gnu \
--enable-shared \
--enable-64-bit-bfd \
--prefix=/usr/src/redhat/BUILD/toolchain/src/gcc1 \ -
--with-local-prefix=/usr/src/redhat/BUILD/toolchain/src/gcc1/local \
--with-sysroot=/

and i have done
make

following are the error messages.

TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../../gcc/mkconfig.sh bconfig.h
bconfig.h is unchanged
./genmodes -h > tmp-modes.h
/bin/sh: line 1: ./genmodes: cannot execute binary file

Thanks in advance, I feel that i will get reply for this.

Thanks & Regards,
Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20051117/794bbc2b/attachment.htm 


More information about the Linuxppc64-dev mailing list