Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 1998 21:04:03 -0800 (PST)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        Ollivier Robert <roberto@keltia.freenix.fr>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Building EGCS.  What am I missing?
Message-ID:  <XFMail.980126210403.shimon@simon-shapiro.org>
In-Reply-To: <19980127002052.38606@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980126210403.shimon>