This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: cross-build fails, target host:powerpc, build host:x86_64
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Hector Oron <hector dot oron at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 27 Sep 2009 15:31:11 +0930
- Subject: Re: cross-build fails, target host:powerpc, build host:x86_64
- References: <dd0a3d700909261946y646fe3bfm671a8a7534fa073c@mail.gmail.com>
On Sun, Sep 27, 2009 at 04:46:23AM +0200, Hector Oron wrote:
> Hello,
>
> While trying to cross build binutils for a target host powerpc, on a
> build host x86_64 it fails (for me) when configuring opcodes. When the
> build host is a x86_32, it does not fail and it works correctly.
>
> mkdir -p -- ./opcodes
> Configuring in ./opcodes
> configure: creating cache ./config.cache
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... powerpc-unknown-linux-gnu
> checking for x86_64-linux-gnu-gcc... gcc
> checking for C compiler default output file name...
> configure: error: in
> `/home/zumbi/buildcross/trunk/powerpc/binutils-2.19.91.20090923-1/builddir-powerpc-linux-gnu/opcodes':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> make[2]: *** [configure-opcodes] Error 1
>
> Is this a binutils or autoconf bug? or maybe a bug in my toolchain?
Another possibility is that you lied to the top level configure. Are
you really building on an x86_64 host? Even if you are, do you have a
64-bit toolchain installed?
--
Alan Modra
Australia Development Lab, IBM