From owner-freebsd-questions Tue Jan 28 07:14:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA18670 for questions-outgoing; Tue, 28 Jan 1997 07:14:27 -0800 (PST) Received: from po-external.FCNBD.COM (po-external.FCNBD.COM [147.113.146.4]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA18662 for ; Tue, 28 Jan 1997 07:14:24 -0800 (PST) Received: from po-internal.FCNBD.COM (internalhost.FCNBD.COM [147.113.104.10]) by po-external.FCNBD.COM (8.7.5/fcnbd/domain/1.5.1) with ESMTP id JAA04565 for ; Tue, 28 Jan 1997 09:18:34 -0600 (CST) Received: from abacab.cmg.FCNBD.COM (abacab.cmg.FCNBD.COM [147.113.150.227]) by po-internal.FCNBD.COM (8.7.5/fcnbd/internal-domain/1.4.1) with ESMTP id JAA21111 for ; Tue, 28 Jan 1997 09:15:12 -0600 (CST) Received: from ldnrid6.fnbc.co.uk (ldnrid6.FNBC.COM [147.113.168.6]) by abacab.cmg.FCNBD.COM (8.7.5/fcnbd/server-subdomain/2.3) with SMTP id JAA15053 for ; Tue, 28 Jan 1997 09:13:50 -0600 (CST) Received: from lib28.fnbc.co.uk by ldnrid6.fnbc.co.uk; Tue, 28 Jan 97 15:13:48 GMT Message-Id: <129.9701281513@lib28.fnbc.co.uk> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) Received: by NeXT.Mailer (1.118.2) From: Tim Bissell Date: Tue, 28 Jan 97 15:13:45 GMT To: freebsd-questions@freebsd.org Subject: Re: up-to-date gcc on 2.1.x (was Re: FreeBSD Newbie...) Reply-To: tjb@cmg.fcnbd.com References: Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Begin forwarded message: To: freebsd-questions@freebsd.org Doug White wrote: First off, thanks for all your help Doug, you provide a sterling service! >> And how can i upgrade the gcc/libc/libg++ ? Can I ftp from prep.ai.mit.edu >> the src and compile them ? > >No, you cannot; there are many FreeBSD-specific fixes in gcc that make it >uncompilable by normal mortals directly from distribution. If you felt >sadistic you could checkout the gcc source from the FreeBSD source tree >and build it yourself, but I think that upgrading using the normal method >would save you many headaches and lots of aspirin. > This is not entirely true; you can install a later release of gcc *as gcc* without too much pain; just don't try and upgrade the system C compiler 'cc', or compile any FreeBSD code (like the kernel) with it. I have installed gcc 2.7.2.1 and 4.1.6 gdb in /usr/local to allow me to compile and debug GNUstep programs, and after one patch to a GNU header file (available on request), they coexist peacefully. Tim