CT-NG 1.5.2: configure: error: C compiler cannot create executables
Fri Jan 8 23:54:00 GMT 2010
The "C compiler cannot create executables" error is very common and
almost always confusing. It is often caused by the configure script
calling $CC with invalid $CFLAGS, $LDFLAGS, bad $LD_LIBRARY_PATH or similar.
The file /home/alex/x-tools/powerpc-unknown-linux-uclibc/build.log in
your case probably references a more readable failure in the libmudflap
build directory. You can see more in
which likely tells us a bit more about your particular problem.
My guess, however, is that you've run into a problem similar to what I
had a couple of weeks ago when attempting to build an Arm (big-endian)
toolchain on my Ubuntu 9.10 (32-bit) system:
It took a while figuring out the problems, but the latest crosstool-NG
in the Mercurial repository has a couple of patches against GCC 4.4.x
and binutils that may help you out. Simply "sudo apt-get install
mercurial" and then checkout the tree:
hg clone http://ymorin.is-a-geek.org/hg/crosstool-ng
Please let us know how things turn out for you, good luck!
On 01/09/2010 12:13 AM, Alex wrote:
> Dear all,
> this is my first mail to this list. I really hope you can help me. I
> am trying to build a toolchain for "powerpc-unknown-linux-uclibc"
> under Ubuntu 9.10 with CT-NG 1.5.2 and gcc (Ubuntu 4.4.1-4ubuntu8)
> 4.4.1. I am using the .config file from the "samples" directory of
> Unfortunately I get the following error:
> [INFO ] Installing final compiler
> [EXTRA] Configuring final compiler
> [EXTRA] Building final compiler
> [ERROR] checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> [ERROR] make: *** [configure-target-libmudflap] Error 1
> [ERROR] make: *** [all] Error 2
> [ERROR] Build failed in step 'Installing final compiler'
> [ERROR] Error happened in
> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/functions' in function
> 'CT_DoExecLog' (line unknown, sorry)
> [ERROR] called from
> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/build/cc/gcc.sh' at line #
> 350 in function 'do_cc'
> [ERROR] called from
> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/crosstool-NG.sh' at line #
> 544 in function 'main'
> [ERROR] Look at
> '/home/alex/x-tools/powerpc-unknown-linux-uclibc/build.log' for more
> info on this error.
> [ERROR] (elapsed: 31:58.23)
> [31:58] / make: *** [build] Error 2
> GCC is working on my system, I have successfully compiled etc. a
> "Hello World" program.
> Any help would really be appreciated!
> For unsubscribe information see http://sourceware.org/lists.html#faq
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc