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: Hector Oron <hector dot oron at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 15 Jan 2010 22:53:28 +0100
- Subject: Re: cross-build fails, target host:powerpc, build host:x86_64
- References: <dd0a3d700909261946y646fe3bfm671a8a7534fa073c@mail.gmail.com> <20090927060111.GH18973@bubble.grove.modra.org>
Hi Alan,
Just for the mail logs and you to know that this issue was isolated
in Debian compiler and the following patch fixed it, but it was not
applied into our tree.
2009-10-16 Tristan Gingold <gingold@adacore.com>
* configure.in: Bump version to 2.20.0
* Makefile.am (RELEASE): Unset.
* configure, Makefile.in: Regenerate.
diff -Naur binutils-2.20.orig/bfd/configure binutils-2.20/bfd/configure
--- binutils-2.20.orig/bfd/configure 2009-10-16 07:47:47.000000000 -0400
+++ binutils-2.20/bfd/configure 2009-10-19 03:31:26.000000000 -0400
@@ -4116,7 +4116,7 @@
# Define the identity of the package.
PACKAGE=bfd
- VERSION=2.20
+ VERSION=2.20.0
cat >>confdefs.h <<_ACEOF
diff -Naur binutils-2.20.orig/bfd/configure.in binutils-2.20/bfd/configure.in
--- binutils-2.20.orig/bfd/configure.in 2009-10-16 07:47:44.000000000 -0400
+++ binutils-2.20/bfd/configure.in 2009-10-16 09:09:03.000000000 -0400
@@ -8,7 +8,7 @@
AC_CANONICAL_TARGET
AC_ISC_POSIX
-AM_INIT_AUTOMAKE(bfd, 2.20)
+AM_INIT_AUTOMAKE(bfd, 2.20.0)
dnl These must be called before LT_INIT, because it may want
dnl to call AC_CHECK_PROG.
Kind Regards,
2009/9/27 Alan Modra <amodra@bigpond.net.au>:
> 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?
--
Héctor Orón
"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."