error: C compiler cannot create executables
Doug Crawford
dcraw101@yahoo.com
Thu Sep 9 18:44:00 GMT 2010
ok, here is the end of the log output during my gcc 4.5.1 build
[ALL ] make[3]: Leaving directory
`/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/powerpc-860-linux-uclibc/libgcc'
[ALL ] Checking multilib configuration for libgomp...
[ALL ] mkdir -p -- powerpc-860-linux-uclibc/libgomp
[ALL ] Configuring in powerpc-860-linux-uclibc/libgomp
[ALL ] configure: creating cache ./config.cache
[ALL ] checking for --enable-version-specific-runtime-libs... no
[ALL ] checking for --enable-generated-files-in-srcdir... no
[ALL ] checking build system type... i686-build_pc-linux-gnu
[ALL ] checking host system type... powerpc-860-linux-uclibc
[ALL ] checking target system type... powerpc-860-linux-uclibc
[ALL ] checking for a BSD-compatible install...
/home/crawford/crosstool-ng/targets/tools/bin/install -c
[ALL ] checking whether build environment is sane... yes
[ALL ] checking for powerpc-860-linux-uclibc-strip...
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/strip
[ALL ] checking for a thread-safe mkdir -p... /bin/mkdir -p
[ALL ] checking for gawk... gawk
[ALL ] checking whether /usr/bin/make sets $(MAKE)... yes
[ALL ] checking for powerpc-860-linux-uclibc-gcc...
/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/xgcc
-B/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/
/
-B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/
-B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/lib/
-isystem
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/include
-isystem
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/sys-include
[ALL ] checking for C compiler default output file name...
[ERROR] configure: error: in
`/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/powerpc-860-linux-uclibc/libgomp':
[ERROR] configure: error: C compiler cannot create executables
[ALL ] See `config.log' for more details.
[ERROR] make[2]: *** [configure-target-libgomp] Error 1
[ALL ] make[2]: Leaving directory
`/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc'
[ERROR] make[1]: *** [all] Error 2
[ALL ] make[1]: Leaving directory
`/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc'
[ERROR] Build failed in step 'Installing final compiler'
[ERROR] Error happened in
'/home/crawford/crosstool-ng/trunk//lib/ct-ng-hg_default@2107_f5ab0a80e466/scripts/functions'
in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from
'/home/crawford/crosstool-ng/trunk//lib/ct-ng-hg_default@2107_f5ab0a80e466/scripts/build/cc/gcc.sh'
at line # 431 in function 'do_cc'
[ERROR] called from
'/home/crawford/crosstool-ng/trunk//lib/ct-ng-hg_default@2107_f5ab0a80e466/scripts/crosstool-NG.sh'
at line # 589 in function 'main'
[ERROR] Look at '/home/crawford/x-tools/powerpc-860-linux-uclibc/build.log'
for more info on this error.
[ERROR] (elapsed: 31:24.46)
Doug
----- Original Message ----
From: Arnaud Lacombe <lacombar@gmail.com>
To: Doug Crawford <dcraw101@yahoo.com>
Cc: crossgcc@sourceware.org
Sent: Thu, September 9, 2010 10:50:42 AM
Subject: Re: error: C compiler cannot create executables
Hi,
On Thu, Sep 9, 2010 at 1:42 PM, Doug Crawford <dcraw101@yahoo.com> wrote:
> I get this error on the "Installing final compiler" stage when building a
> powerpc-linux-uclibc toolchain with gcc 4.5.1 or gcc 4.3.4. Interestingly gcc
> 4.4.3 works. I am building on Ubuntu 10.04 using the trunk version of
> crostool-ng. There were some earlier emails discussing this topic with uclibc
> cross builds. Is there a patch that was applied to gcc 4.4.x that I need to
> also apply to gcc 4.3.x or gcc 4.5.x? Here is my config:
> powerpc-860-linux-uclibc [l X]
> OS : linux-2.6.34.6
> Companion libs : gmp-4.3.2 mpfr-3.0.0 ppl-0.10.2 cloog-ppl-0.15.9
mpc-0.8.2
> libelf-0.8.13
> binutils : binutils-2.20.1
> C compiler : gcc-4.5.1 (C,C++)
> C library : uClibc-0.9.30.3
> Tools : gdb-7.1 strace-4.5.20
>
can you dig in the faulty config.log generated by gcc's configure
script to know the exact reason of the failure ? "error: C compiler
cannot create executables" is too vague to troubleshoot anything.
Thanks,
- Arnaud
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list