From owner-freebsd-questions Sat Nov 28 19:48:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA16736 for freebsd-questions-outgoing; Sat, 28 Nov 1998 19:48:06 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA16731 for ; Sat, 28 Nov 1998 19:48:02 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA04566; Sun, 29 Nov 1998 14:17:51 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA11029; Sun, 29 Nov 1998 14:17:50 +1030 (CST) Message-ID: <19981129141749.D6182@freebie.lemis.com> Date: Sun, 29 Nov 1998 14:17:49 +1030 From: Greg Lehey To: Andrew Cc: FreeBSD Questions Subject: Re: /usr/lib/crt0.o & freebsd 3.0-release References: <19981128174357.A3586@apogee.whack.org> <19981129123738.V6182@freebie.lemis.com> <19981128193733.A4176@apogee.whack.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981128193733.A4176@apogee.whack.org>; from Andrew on Sat, Nov 28, 1998 at 07:37:33PM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 28 November 1998 at 19:37:33 -0800, Andrew wrote: >> If you're linking an a.out executable, the linker will choose >> /usr/lib/aout/crt0.o. If you're linking an ELF executable, the linker >> will choose /usr/lib/crt1.o. > > Greg, I wish the linker chose something... > > > ...compiling... > if [ xlibgcc1.a != x ]; then (cd tmpcopy; ar x ../libgcc1.a); else true; fi > (cd tmpcopy; chmod +w * > /dev/null 2>&1) > (cd tmpcopy; ar x ../libgcc2.a) > (cd tmpcopy; ar rc ../tmplibgcc.a *.o) > rm -rf tmpcopy > if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib tmplibgcc.a; else true; fi > mv tmplibgcc.a libgcc.a > ./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire > /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory > *** Error code 1 OK, in fact it's not the linker, it's the compiler. And it's the compiler you've just built. There's a file called 'specs' which contains this information--you should find it as /usr/ports/lang/gcc28/work/gcc-2.8.1/specs. You'll need to manually change it to read crt1.o. And don't forget a bug report to the ports team. They're just in the process of fixing up the ports for the 2.2.8 release, so this is a good time. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message