Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 1999 17:53:50 -0500 (EST)
From:      Chuck Robey <chuckr@mat.net>
To:        "Jordan K. Hubbard" <jkh@zippy.cdrom.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: gcc 
Message-ID:  <Pine.BSF.4.10.9903011752270.339-100000@picnic.mat.net>
In-Reply-To: <34879.920323716@zippy.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Mar 1999, Jordan K. Hubbard wrote:

> > I can generally build a kernel with EGCS, if I change how the .text and
> > .data are laid out for initialized data.  It seems that the initialization
> > code makes assumptions about the order or layout of the initialization
> > data.  Once the stuff is made to act more like the version of GCC that
> > FreeBSD uses, the kernel will most often build and work.
> 
> It really does appear to be a simple matter of first making egcs "take over"
> the system compiler:
> 
> # cd /usr/ports/lang/egcs
> # make all install PREFIX=/usr
> # ln -fs /usr/bin/eg++ /usr/bin/c++
> # ln -fs /usr/bin/egcc /usr/bin/cc
> # cd /usr/src
> remove cc from /usr/src/gnu/usr.bin/Makefile SUBDIR list
> remove libstdc++ and libobjc from /usr/src/gnu/lib/Makefile SUBDIR list
> 
> Then make the world and the kernel.  I also haven't noticed that the
> executables are any smaller or larger either way, and I've captured a
> fair amount of "cc -v" output to ensure that egcs is, in fact, the
> compiler being used. :)

Didn't realize that was all there was.  Thanks a lot, Jordan, I will
start doing egcs testing tonight, and from now on, using the latest egcs
port (fetching now).

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run picnic (FreeBSD-current)
(301) 220-2114              | and jaunt (Solaris7).
----------------------------+-----------------------------------------------






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9903011752270.339-100000>