From owner-freebsd-current Mon Jan 26 15:58:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA24006 for current-outgoing; Mon, 26 Jan 1998 15:58:52 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23993 for ; Mon, 26 Jan 1998 15:58:44 -0800 (PST) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.8.8/frmug-2.2/nospam) with UUCP id AAA04617 for freebsd-current@FreeBSD.ORG; Tue, 27 Jan 1998 00:58:25 +0100 (CET) (envelope-from roberto@keltia.freenix.fr) Received: (from roberto@localhost) by keltia.freenix.fr (8.8.8/keltia-2.13/nospam) id AAA14800; Tue, 27 Jan 1998 00:20:53 +0100 (CET) (envelope-from roberto) Message-ID: <19980127002052.38606@keltia.freenix.fr> Date: Tue, 27 Jan 1998 00:20:52 +0100 From: Ollivier Robert To: freebsd-current@FreeBSD.ORG Subject: Re: Building EGCS. What am I missing? Mail-Followup-To: freebsd-current@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88.14i In-Reply-To: ; from Simon Shapiro on Mon, Jan 26, 1998 at 02:17:58PM -0800 X-Operating-System: FreeBSD 3.0-CURRENT ctm#4016 AMD-K6 MMX @ 225 MHz Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk According to Simon Shapiro: > -c `echo ./collect2.c | sed 's,^\./,,'` > cpp: Usage: /usr/libexec/cpp [switches] input output > gmake[1]: *** [collect2.o] Error 1 > gmake[1]: Leaving directory `/usr/ports/lang/egcs/work/egcs-1.0.1/gcc' > gmake: *** [all-gcc] Error 2 > *** Error code 2 > > Stop. > > Now, I remember missing some configuration file. the only way to have it > was to take the plain GNU 2.7.2.1, compile and install that, then use that > as the first pass compiler to compile 2.8 or egcs (same problem). I don't understand how you can have all these problems with egcs :-) I've build pgcc-980122 in both native & ELF cross compiler just a few minutes ago. I don't use the port though and I compile the snapshots, not the released version. Here is what I did: cd pgcc-980122 mkdir objdir cd objdir ../configure --host=i386-unknown-freebsd3.0 --enable-haifa --prefix=/opt/egcs gmake bootstrap gmake install cd ../../pgcc-980122-elf set path=(/opt/egcs/bin /opt/elf/bin $path) mkdir objdir cd objdir ../configure --enable-haifa --prefix=/opt/elf --host=i386-unknown-freebsd --target=i386-unknown-freebsdelf gmake cross [ there, you have to build libgcc1.a manually ] cd gcc ; gmake CC=gcc CFLAGS="-O2 -pipe" LIBGCC1=libgcc1.a OLDCC="./xgcc -B./" libgcc.a gmake cross gmake install The first commands build pgcc in native mode inside /opt/egcs/bin, using /usr/bin/cc as first pass compiler. The other commands build pgcc in ELF mode using /opt/egcs/bin/gcc as compiler. 303 [0:16] roberto@keltia:pgcc-980122-elf/objdir> gcc -v Reading specs from /opt/egcs/lib/gcc-lib/i386-unknown-freebsd3.0/pgcc-2.91.05/specs gcc version pgcc-2.91.05 980122 (gcc-2.8.0 release) 304 [0:18] roberto@keltia:pgcc-980122-elf/objdir> elf-cc -v Reading specs from /opt/elf/lib/gcc-lib/i386-unknown-freebsdelf/pgcc-2.91.05/specs gcc version pgcc-2.91.05 980122 (gcc-2.8.0 release) -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #53: Sun Jan 25 18:55:28 CET 1998