Date: Tue, 27 Jan 1998 00:20:52 +0100 From: Ollivier Robert <roberto@keltia.freenix.fr> To: freebsd-current@FreeBSD.ORG Subject: Re: Building EGCS. What am I missing? Message-ID: <19980127002052.38606@keltia.freenix.fr> In-Reply-To: <XFMail.980126141758.shimon@simon-shapiro.org>; from Simon Shapiro on Mon, Jan 26, 1998 at 02:17:58PM -0800 References: <XFMail.980126141758.shimon@simon-shapiro.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980127002052.38606>