public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross compilation query
@ 2007-12-07 13:20 Steve Edwards
  0 siblings, 0 replies; only message in thread
From: Steve Edwards @ 2007-12-07 13:20 UTC (permalink / raw)
  To: gcc-help

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.
----------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-07 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-07 13:20 Cross compilation query Steve Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).