This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Cross compilation query
- From: Steve Edwards <edwardss at whl dot co dot uk>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 7 Dec 2007 13:20:45 +0000
- Subject: Cross compilation query
Hello,
I have just been investigating building a cross compiler (which as a
test I am building on i686-pc-linux-gnu and targeting
powerpc-ibm-aix5.2.0.0)
I'm using the current svn, which is fine when built natively.
I configured with:
../src/combined/configure --prefix=/home/edwardss/cross
--target=powerpc-ibm-aix5.2.0.0
--with-sysroot=/home/edwardss/cross/sysroot/powerpc-ibm-aix5.2.0.0
--enable-languages=c,fortran --with-mpfr=/usr/local --disable-multilib
And everything has built okay.
The gcc cross-compiler works fine.
When I try and use the gfortran cross-compiler I get:
collect2: init function found in
object /home/edwardss/cross/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0/../../../../powerpc-ibm-aix5.2.0.0/lib/libgcc_s.a
Does anyone have any suggestions on what may be going wrong here?
I suspect there is something horribly wrong about my
sysroot as this is the first time I have attempted this sort of
procedure, but I'm not really too sure where to start searching!
Steve E
--
----------------------------------------------------------
Yow! of the hour:
It is easier to change the specification to fit the program
than vice versa.
----------------------------------------------------------