From owner-freebsd-hackers Tue Jun 16 19:45:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA21019 for freebsd-hackers-outgoing; Tue, 16 Jun 1998 19:45:17 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA21010 for ; Tue, 16 Jun 1998 19:45:13 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id VAA06628; Tue, 16 Jun 1998 21:42:27 -0400 (EDT) Date: Tue, 16 Jun 1998 21:42:27 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@localhost To: Peter Jeremy cc: hackers@FreeBSD.ORG Subject: Re: Making world with gcc-2.8.1 In-Reply-To: <199806102250.IAA23365@gsms01.alcatel.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 11 Jun 1998, Peter Jeremy wrote: > I would like to do a make world using gcc-2.8.1, tweaked for my system > (ie Pentium-II), rather than the modified gcc-2.7.2.1 included in > 2.2.6-R. > > My preferred option is to change /usr/src/contrib/gcc to be gcc-2.8.1 > (with the relevant FreeBSD native patches added from the old gcc) and > modify /usr/src/gnu/usr.bin/cc to compile it. I'm having problems > trying to get the correct rules for building things like c-parse.o > (where the object is wanted for cc1, but the source file was built > from c-parse.in by cc_tools. > > A fallback procedure is to drop cc from the lib-tools list and > /usr/src/gnu/usr.bin/Makefile, relying on the version installed in > /usr/local/bin instead. (This also needs a few other tweaks to > make sure the system cc isn't used anywhere - particularly by mkdep). > > Has anyone else attempted this? Does anyone have any useful hints? Couldn't you just have installed gcc-2.8.1 from ports, and then set CC and CXX in /etc/make.conf to point at /usr/local/bin/gcc and /usr/local/bin/g++? ----------------------------+----------------------------------------------- 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 Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message