From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12036 invoked by alias); 12 May 2003 14:22:46 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 11971 invoked from network); 12 May 2003 14:22:45 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 12 May 2003 14:22:45 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19FECp-0004BW-00; Mon, 12 May 2003 09:23:07 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19FECM-0003aU-00; Mon, 12 May 2003 10:22:38 -0400 Date: Mon, 12 May 2003 14:22:00 -0000 From: Daniel Jacobowitz To: Rene Rebe Cc: gcc@gcc.gnu.org Subject: Re: building a gcc-3.3-prerelease cross-compiler Message-ID: <20030512142238.GA13775@nevyn.them.org> Mail-Followup-To: Rene Rebe , gcc@gcc.gnu.org References: <20030512.135453.424242140.rene.rebe@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030512.135453.424242140.rene.rebe@gmx.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg01133.txt.bz2 On Mon, May 12, 2003 at 01:54:53PM +0200, Rene Rebe wrote: > Hi, > > I just started to test how far the gcc-3.3-prerelease progresses > compiling our distribution build kit, but I get into trouble in the > first step creating a cross compiler. (The configuration and scripts > work flawlessly for gcc-2.95.3 and gxx-3.x). > > After the configure it claims to be configured as: > > Links are now set up to build a cross-compiler for i586-pc-linux-gnu > from i686-nocross-linux-gnu. > > But running "make" it compiles the initial xgcc but bails out: > > checking whether the C compiler ( /home/rock-linux/rock-trunk/src.gccx.1052738245 > .1392.3356848690/gcc-3.3-20030508/objdir/gcc/xgcc -B/home/rock-linux/rock-trunk/s > rc.gccx.1052738245.1392.3356848690/gcc-3.3-20030508/objdir/gcc/ -B/home/rock-linu > x/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tools.cross/us > r/i586-pc-linux-gnu/bin/ -B/home/rock-linux/rock-trunk/build/test-2.0.0-beta3-x86 > -pentium-mmx-generic-expert/tools.cross/usr/i586-pc-linux-gnu/lib/ -isystem /home > /rock-linux/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tool > s.cross/usr/i586-pc-linux-gnu/include -O2 -g ) works... no > configure: error: installation or configuration problem: C compiler cannot create > executables. > make: *** [configure-target-libiberty] Error 1 > > Where the error is: > > /home/rock-linux/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tools.cross/usr/i586-pc-linux-gnu/bin/ld: cannot open crt1.o: No such file or directory > collect2: ld returned 1 exit status > configure: failed program was: > > #line 2407 "configure" > #include "confdefs.h" > > main(){return(0);} > > But the crt1.o is installed by the glibc which would be built after we > created the cross-compiler ... > > Any ideas? You can't build target libraries until after you've built glibc. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer