From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3896 invoked by alias); 9 Jan 2010 20:39:00 -0000 Received: (qmail 3883 invoked by uid 22791); 9 Jan 2010 20:38:59 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f219.google.com (HELO mail-bw0-f219.google.com) (209.85.218.219) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Jan 2010 20:38:55 +0000 Received: by bwz19 with SMTP id 19so2233721bwz.8 for ; Sat, 09 Jan 2010 12:38:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.151.194 with SMTP id d2mr5629064bkw.32.1263069531783; Sat, 09 Jan 2010 12:38:51 -0800 (PST) In-Reply-To: <4B47C5B6.4010308@vmlinux.org> References: <92b385291001081511o3d5e8748q13ef131ad268cd27@mail.gmail.com> <92b385291001081513l63cf1714n3cc57b8870441a4d@mail.gmail.com> <4B47C5B6.4010308@vmlinux.org> Date: Sat, 09 Jan 2010 20:39:00 -0000 Message-ID: <92b385291001091238i595eafd6j6050153a348e0297@mail.gmail.com> Subject: Re: CT-NG 1.5.2: configure: error: C compiler cannot create executables From: Alex To: Joachim Nilsson Cc: crossgcc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00058.txt.bz2 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 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 > /targets/powerpc-unknown-linux-uclibc/build/build-cc/powerpc-u= nknown-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 ha= d a > couple of weeks ago when attempting to build an Arm (big-endian) toolchain > on my Ubuntu 9.10 (32-bit) system: > > =A0 =A0http://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" a= nd > then checkout the tree: > > =A0 =A0hg clone http://ymorin.is-a-geek.org/hg/crosstool-ng > > Please let us know how things turn out for you, good luck! > > Regards > =A0/Joachim > > On 01/09/2010 12:13 AM, Alex wrote: >> >> Dear all, >> >> this is my first mail to this list. =A0I really hope you can help me. = =A0I >> 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. =A0I am using the .config file from the "samples" directory of >> CT-NG. >> >> Unfortunately I get the following error: >> [INFO ] =A0Installing final compiler >> [EXTRA] =A0 =A0Configuring final compiler >> [EXTRA] =A0 =A0Building final compiler >> [ERROR] =A0 =A0checking for C compiler default output file name... >> configure: error: C compiler cannot create executables >> [ERROR] =A0 =A0make[2]: *** [configure-target-libmudflap] Error 1 >> [ERROR] =A0 =A0make[1]: *** [all] Error 2 >> [ERROR] =A0 =A0Build failed in step 'Installing final compiler' >> [ERROR] =A0 =A0Error happened in >> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/functions' in function >> 'CT_DoExecLog' (line unknown, sorry) >> [ERROR] =A0 =A0 =A0 =A0 =A0called from >> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/build/cc/gcc.sh' at line # >> 350 in function 'do_cc' >> [ERROR] =A0 =A0 =A0 =A0 =A0called from >> '/home/alex/ctng/lib/ct-ng-1.5.2/scripts/crosstool-NG.sh' at line # >> 544 in function 'main' >> [ERROR] =A0 =A0Look at >> '/home/alex/x-tools/powerpc-unknown-linux-uclibc/build.log' for more >> info on this error. >> [ERROR] =A0(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