From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3459 invoked by alias); 12 May 2007 15:59:02 -0000 Received: (qmail 3451 invoked by uid 22791); 12 May 2007 15:59:02 -0000 X-Spam-Check-By: sourceware.org Received: from web26208.mail.ukl.yahoo.com (HELO web26208.mail.ukl.yahoo.com) (217.12.10.245) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 12 May 2007 15:59:00 +0000 Received: (qmail 94092 invoked by uid 60001); 12 May 2007 15:58:57 -0000 Message-ID: <20070512155857.94090.qmail@web26208.mail.ukl.yahoo.com> X-YMail-OSG: 9xEGpLAVM1mnsB9_XJx0az_7BRl6QZEX0z18TgzN6YPzhXXwJKWSS9uliTJng1m1N7DuSFBEPhcel266YeDMi3uU4UCCRcyE4yYZhGA2boIKnL_y Received: from [62.1.112.21] by web26208.mail.ukl.yahoo.com via HTTP; Sat, 12 May 2007 15:58:57 GMT X-Mailer: YahooMailRC/651.23 YahooMailWebService/0.7.41.10 Date: Sat, 12 May 2007 15:59:00 -0000 From: none none Subject: Re: Cross Compile Gcc To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00119.txt.bz2 It went away by typing make all-gcc install-gcc Thanks. One finally note though. My target system is a powerpc running linux-2.2. So in order to build glibc I got the kernel from kernels.org and unpacked it. Then I configure with the command: configure --prefix=/home/idipous/powerpc/ --target=powerpc-linux --host=powerpc-linux --enable-add-ons=linuxthreads --with-headers=/home/idipous/powerpc/linux/include/asm-ppc --with-binutils=/home/idipous/powerpc/bin/home/idipous/Desktop/linux/include/linux --with-headers=/home/idipous/powerpc/linux/include/asm-ppc is where I have copied the kernel file after the untar. I get the error message: configure: error: GNU libc requires kernel header files from Linux 2.0.10 or later to be installed before configuring. The kernel header files are found usually in /usr/include/asm and /usr/include/linux; make sure these directories use files from Linux 2.0.10 or later. This check uses , so make sure that file was built correctly when installing the kernel header files. To use kernel headers not from /usr/include/linux, use the configure option --with-headers. What I am doing wrong? is that the correct header files? Should I do something more or else than just copy them and point the configure script to them? I tried googling but I did not make any sense. Thanks again andreas ----- Original Message ---- From: Tim Prince To: none none Cc: Kai Ruottu ; gcc-help@gcc.gnu.org Sent: Saturday, 12 May, 2007 5:25:45 PM Subject: Re: Cross Compile Gcc none none wrote: > Hi, Sorry for the delay in replaying, > > You were right if I do sudo I have to export again. I did a sudo bash at the begining and I did not used sudo again. Now the problem is new... > > checking for C compiler default output file name... configure: error: C compiler cannot create executables > See `config.log' for more details. > make[1]: *** [configure-target-libmudflap] Error 1 > make[1]: Leaving directory `/home/idipous/powerpc/build_gcc' > make: *** [all] Error 2 > > and for that matter I checked config.log and I saw this: > > configure:2320:17: error: gmp.h: No such file or directory > configure: In function 'main': > configure:2324: error: 'choke' undeclared (first use in this function) > configure:2324: error: (Each undeclared identifier is reported only once > configure:2324: error: for each function it appears in.) > configure:2324: error: expected ';' before 'me' > configure: failed program was: > #line 2319 "configure" > #include "confdefs.h" > #include "gmp.h" > int main() { > > #if __GNU_MP_VERSION < 3 > choke me > #endif > > why is this? > > You may not have identified the test which led to "cannot create executables." This one appears to be testing whether you are using at least gcc-3.0, so it should not have failed an any current gcc installation. ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html