From owner-freebsd-current Mon Mar 1 14:56: 3 1999 Delivered-To: freebsd-current@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 67DA815588 for ; Mon, 1 Mar 1999 14:55:30 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.8.5) with ESMTP id RAA65139; Mon, 1 Mar 1999 17:53:51 -0500 (EST) Date: Mon, 1 Mar 1999 17:53:50 -0500 (EST) From: Chuck Robey To: "Jordan K. Hubbard" Cc: current@FreeBSD.ORG Subject: Re: gcc In-Reply-To: <34879.920323716@zippy.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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