From owner-freebsd-hackers Tue Jun 16 21:05:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA01709 for freebsd-hackers-outgoing; Tue, 16 Jun 1998 21:05:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gatekeeper.alcatel.com.au (gatekeeper.alcatel.com.au [203.17.66.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA01693 for ; Tue, 16 Jun 1998 21:04:56 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from mfg1.cim.alcatel.com.au ("port 4628"@[139.188.23.1]) by gatekeeper.alcatel.com.au (PMDF V5.1-7 #U2695) with ESMTP id <01IYCGAAZ774003DPN@gatekeeper.alcatel.com.au> for hackers@freebsd.org; Wed, 17 Jun 1998 14:03:26 +1000 Received: from gsms01.alcatel.com.au by cim.alcatel.com.au (PMDF V5.1-10 #U2695) with ESMTP id <01IYCGA39ZS0BNJ0LI@cim.alcatel.com.au>; Wed, 17 Jun 1998 14:03:16 +1000 Received: (from jeremyp@localhost) by gsms01.alcatel.com.au (8.8.8/8.7.3) id OAA18320; Wed, 17 Jun 1998 14:03:14 +1000 (EST) Date: Wed, 17 Jun 1998 14:03:14 +1000 (EST) From: Peter Jeremy Subject: Re: Making world with gcc-2.8.1 To: chuckr@glue.umd.edu Cc: hackers@FreeBSD.ORG Message-id: <199806170403.OAA18320@gsms01.alcatel.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Jun 1998 21:42:27 -0400 (EDT), Chuck Robey wrote: >On Thu, 11 Jun 1998, Peter Jeremy wrote: >> I would like to do a make world using gcc-2.8.1, > >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++? It's not as simple as this. Problems include: - make world rebuilds the tools (including cc) and then wants to use the new cc to build everything. Various environment variables are set to ensure that when the new cc runs, it pulls in the new cpp/cc1/as/ld and libgcc. Fixing this means hacking the top level makefile (and maybe some of the lower level ones as well). - The file structure is different to gcc. In particular, the libraries are separated out. You need to make sure that the old libgcc isn't built. You also need to replace libstdc++-2.7.x with libstdc++-2.8.x (gcc-2.8.1 won't compile the older libstdc++). That's as far as I've gotten. I got side-tracked onto real work. Since people have claimed `it's easy', someone has presumably done it... Peter -- Peter Jeremy (VK2PJ) peter.jeremy@alcatel.com.au Alcatel Australia Limited 41 Mandible St Phone: +61 2 9690 5019 ALEXANDRIA NSW 2015 Fax: +61 2 9690 5247 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message