From owner-freebsd-current Mon Jan 26 21:02:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA03687 for current-outgoing; Mon, 26 Jan 1998 21:02:18 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fxp0.Simon-Shapiro.ORG [206.190.148.34]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA03657 for ; Mon, 26 Jan 1998 21:01:55 -0800 (PST) (envelope-from shimon@sendero-fxp0.simon-shapiro.org) Received: (qmail 28344 invoked by uid 1000); 27 Jan 1998 05:04:03 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-011998 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19980127002052.38606@keltia.freenix.fr> Date: Mon, 26 Jan 1998 21:04:03 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: Ollivier Robert Subject: Re: Building EGCS. What am I missing? Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk On 26-Jan-98 Ollivier Robert wrote: > 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 :-) You see, you are smart and I am not. Besides, computers HATE me :-) Also, I did: cd /usr/ports/lang/egcs;make Which is not exactly what you have done. As soon as this small egcs snapshot gets here, I will follow your procedure. > 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 ---------- Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313