public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* CT-NG 1.5.2: configure: error: C compiler cannot create executables
       [not found] <92b385291001081511o3d5e8748q13ef131ad268cd27@mail.gmail.com>
@ 2010-01-08 23:13 ` Alex
  2010-01-08 23:54   ` Joachim Nilsson
  0 siblings, 1 reply; 3+ messages in thread
From: Alex @ 2010-01-08 23:13 UTC (permalink / raw)
  To: crossgcc

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
CT-NG.

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[2]: *** [configure-target-libmudflap] Error 1
[ERROR]    make[1]: *** [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!

Regards,
Alex

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CT-NG 1.5.2: configure: error: C compiler cannot create executables
  2010-01-08 23:13 ` CT-NG 1.5.2: configure: error: C compiler cannot create executables Alex
@ 2010-01-08 23:54   ` Joachim Nilsson
  2010-01-09 20:39     ` Alex
  0 siblings, 1 reply; 3+ messages in thread
From: Joachim Nilsson @ 2010-01-08 23:54 UTC (permalink / raw)
  To: Alex; +Cc: crossgcc

Hi Alex!

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 
<somewhere>/targets/powerpc-unknown-linux-uclibc/build/build-cc/powerpc-unknown-linux-uclibc/libmudflap/config.log, 
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:

     http://sourceware.org/ml/crossgcc/2009-12/msg00039.html

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!

Regards
  /Joachim

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
> CT-NG.
>
> 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[2]: *** [configure-target-libmudflap] Error 1
> [ERROR]    make[1]: *** [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!
>
> Regards,
> Alex
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>    


--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CT-NG 1.5.2: configure: error: C compiler cannot create   executables
  2010-01-08 23:54   ` Joachim Nilsson
@ 2010-01-09 20:39     ` Alex
  0 siblings, 0 replies; 3+ messages in thread
From: Alex @ 2010-01-09 20:39 UTC (permalink / raw)
  To: Joachim Nilsson; +Cc: crossgcc

Joachim,

thanks a lot for your quick help.  That solved my problem!

Regards,
Alex

On Sat, Jan 9, 2010 at 12:54 AM, Joachim Nilsson <jocke@vmlinux.org> wrote:
> Hi Alex!
>
> 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
> <somewhere>/targets/powerpc-unknown-linux-uclibc/build/build-cc/powerpc-unknown-linux-uclibc/libmudflap/config.log,
> 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:
>
>    http://sourceware.org/ml/crossgcc/2009-12/msg00039.html
>
> 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!
>
> Regards
>  /Joachim
>
> 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
>> CT-NG.
>>
>> 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[2]: *** [configure-target-libmudflap] Error 1
>> [ERROR]    make[1]: *** [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!
>>
>> Regards,
>> Alex
>>
>> --
>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>
>
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-09 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <92b385291001081511o3d5e8748q13ef131ad268cd27@mail.gmail.com>
2010-01-08 23:13 ` CT-NG 1.5.2: configure: error: C compiler cannot create executables Alex
2010-01-08 23:54   ` Joachim Nilsson
2010-01-09 20:39     ` Alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).