*BSD News Article 2766


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!news.hawaii.edu!ames!olivea!uunet!cs.utexas.edu!torn!watserv1!watdragon.uwaterloo.ca!kcwellsc
From: kcwellsc@watdragon.uwaterloo.ca (Ken Wellsch)
Newsgroups: comp.unix.bsd
Subject: Re: 386BSD: Anyone using gcc-2.x on 0.1?
Message-ID: <Bs64zs.8Dr@watdragon.uwaterloo.ca>
Date: 29 Jul 92 20:59:51 GMT
References: <1992Jul29.155631.21213@thyme.jpl.nasa.gov>
Organization: University of Waterloo
Lines: 19

> I'm highly interested in moving to the latest version of gcc-2.x,
> (currently 2.2.2) because:
> b) Its ability to emit PIC (Position Independent Code) seems to be
>   a pre-requisite for shared libraries.

Don't forget to upgrade "gas" (the assembler) to handle PIC (still a "gas"
ToDo item I think).

> Has anyone else "bootstrapped" up to 2.2.2 yet?  Has anyone who
> has, rebuilt the kernel with it yet?  Does anyone have any reasons
> why this might not be a good idea?

I tried it a few days ago.  I used "i386-bsd" as the configure type. I
found I had to add "-D_ANSI_H" to fix a gvarargs.h problem but I don't
know that this is the right way to handle it.  It got through to the
libgcc1.a stuff (even though I think you need a "stock" compiler for these
functions - not sure how to fix this part) but things bombed for me when
it tried to use the newly built gcc to compile libgcc2.a. I hope you have
better luck and post what is needed to successfully build a copy.