cross-build fails, target host:powerpc, build host:x86_64
Alan Modra
amodra@bigpond.net.au
Sun Sep 27 06:01:00 GMT 2009
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
More information about the Binutils
mailing list