cross-build fails, target host:powerpc, build host:x86_64

Hector Oron hector.oron@gmail.com
Sun Sep 27 02:46:00 GMT 2009


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?

EXTRA
Binutils Configuration
=============


Build host toolchain information:
===================
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.3.4-3' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.4 (Debian 4.3.4-3)


Attachment config.log

-- 
 Héctor Orón
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 7456 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090927/49df80e1/attachment.bin>


More information about the Binutils mailing list