From owner-freebsd-questions Sun May 27 10:34:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 8B61237B422 for ; Sun, 27 May 2001 10:34:45 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.2/8.11.0) with ESMTP id f4RHYic17130 for ; Sun, 27 May 2001 19:34:44 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id TAA19486 for ; Sun, 27 May 2001 19:34:43 +0200 (CEST) Received: (qmail 6640 invoked by uid 1001); 27 May 2001 17:34:29 -0000 Date: Sun, 27 May 2001 19:34:29 +0200 From: Erik Trulsson To: dave Cc: questions@FreeBSD.ORG Subject: Re: building gcc Message-ID: <20010527193429.A6617@student.uu.se> Mail-Followup-To: dave , questions@FreeBSD.ORG References: <200105271720.KAA02516@hawk.mail.pas.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105271720.KAA02516@hawk.mail.pas.earthlink.net>; from dleimbac@earthlink.net on Sun, May 27, 2001 at 12:23:29PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, May 27, 2001 at 12:23:29PM -0500, dave wrote: > > > I also don't understand how the gcc tarred source doesn't have the glibc > library.. > > I just downloaded and built it on some Alpha linux machines at work and it > was compiling stuff from stdio. Stdio is a part of glibc. Obviously gcc > comes with glibc. > glibc is the standard C library on *Linux*. FreeBSD doesn't use glibc but has its own libraries. Gcc does not include the various standard libraries but uses those of the host OS. (In terms of ANSI C, gcc is a freestanding compiler, not a hosted compiler.) Again: gcc does not, never has, and hopefully never will, come with glibc not require it. > Has anyone actually upgraded gcc on a FreeBSD or am I just getting > speculative uninformed answers? > You are getting quite correct answers. One thing to note though : Although g77 is included with the base FreeBSD system it is invoked as 'f77' (and not as 'g77'). > > On Sat, 26 May 2001, Kris Kennaway wrote: > > Date: Sat, 26 May 2001 16:10:33 -0700 > > To: dave > > From: Kris Kennaway > > Subject: Re: building gcc > > > > On Sat, May 26, 2001 at 04:54:05PM -0500, dave wrote: > > > > > > > > > I have not done this yet as I realize the importance of the C library > > to > > > any UNIX system. Am I safe to download the same version of gcc I > > currently > > > have in source form and build the compilers I want from > > that > > > collection? > > > > > > I'd like g77 and gnat specifically. [mostly gnat... want to play with > > Ada]. > > > > gcc is included in the base FreeBSD system, and g77 is built by > > default. gnat is available in the ports collection. One thing to note here : Although g77 is included with the base FreeBSD system it is invoked as 'f77' (and not as 'g77'). > > > > > Will this replace the C library that comes with FreeBSD with glibc? > > > > No, glibc is separate (Linux-only) software. > > > > Kris -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message