From owner-freebsd-hackers Thu Nov 4 16:55:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from phoenix.aye.net (phoenix.aye.net [206.185.8.134]) by hub.freebsd.org (Postfix) with SMTP id 2336E157D9 for ; Thu, 4 Nov 1999 16:55:33 -0800 (PST) (envelope-from barrett@phoenix.aye.net) Received: (qmail 19900 invoked by uid 1000); 5 Nov 1999 00:55:50 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Nov 1999 00:55:50 -0000 Date: Thu, 4 Nov 1999 19:55:50 -0500 (EST) From: Barrett Richardson To: Charles Randall Cc: freebsd-hackers@freebsd.org Subject: Re: Compiling elf gcc 2.7.2.3 on FreeBSD 3.3-R? In-Reply-To: <64003B21ECCAD11185C500805F31EC0304621A6C@houston.matchlogic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 4 Nov 1999, Charles Randall wrote: > After an unsuccessful attempt at asking this on -questions... > > I believe that I could work my way through the problem below if I could > build a vanilla gcc 2.7.2.3 on FreeBSD 3.3-R. > > Attempting to build a fresh 2.7.2.3, > > 1. configure > 2. remove references to gnumalloc in Makefile and cp/Makefile > 3. make LANGUAGES=c > > and I get > > --- snip --- > ./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 > > Stop. > --- snip --- > > I presume that this is an a.out vs elf issue -- gcc is trying to build an > a.out version and 3.3-R is elf. However, I get the same problem if I try > configure with "configure i386-elf-freebsd". > > Suggestions? > > Charles The culprit is STARTFILE_SPEC in config/i386/freebsd.h. In 3.2 replacing it with /usr/src/contrib/gcc/config/i386/freebsd.h took careof it (been putting off getting stackguard up and going on 3.3). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message