From owner-freebsd-ports@FreeBSD.ORG Tue Jul 22 15:16:39 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA53810656C0 for ; Tue, 22 Jul 2008 15:16:39 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 747C88FC30 for ; Tue, 22 Jul 2008 15:16:39 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1183901fgb.35 for ; Tue, 22 Jul 2008 08:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=f+rGQ5EEBs3i4oc/xnTDPG4u2cAi/pcvw9919i/nsUg=; b=XU6qdVPJSJd0K1wsE5lPFGq+yat+gB5Y3QH9CCse5wq8P8ACDO84cfHxPthvB0nag7 3bUou5Pc3p+z53T2Rj1Yu8GpPEfR6RbUtj6MH1T0ywJL9axT8Xlej0aTkOC4FuiRsf4b IN9tfNFwncNv5r4C6GC01OWcnvai+6lH0Or44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ik8IJJNtp5hOsUQGpk5VmhK4L/rXt8NxAujNsqAh7MVfPUlZZtS6QXg+IbAcv1IcQi oFXalLWAthfV/SYhOszbA9RxRSM1cpQlP+nQuPl4qhLSlmYj6QRux8U9qWY6L3Of+b7n LCMPw25qihoayl45v4ErQbw/c8Ed3v1m3+fm8= Received: by 10.86.94.11 with SMTP id r11mr6457705fgb.0.1216739798395; Tue, 22 Jul 2008 08:16:38 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Tue, 22 Jul 2008 08:16:38 -0700 (PDT) Message-ID: <7d6fde3d0807220816y7817c29g263afc77786f16b0@mail.gmail.com> Date: Tue, 22 Jul 2008 08:16:38 -0700 From: "Garrett Cooper" To: "Jeremy Chadwick" In-Reply-To: <20080722081630.GA86993@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080721110910.GA30467@eos.sc1.parodius.com> <7d6fde3d0807212327j5947fd95we4ca9a16e9769124@mail.gmail.com> <200807220107.53942.david@vizion2000.net> <20080722081630.GA86993@eos.sc1.parodius.com> Cc: David Southwell , freebsd-ports@freebsd.org Subject: Re: gcc versions following upgrade 6.3 >7.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 15:16:40 -0000 On Tue, Jul 22, 2008 at 1:16 AM, Jeremy Chadwick wrote: > On Tue, Jul 22, 2008 at 01:07:53AM -0700, David Southwell wrote: > > The "base system" does not add anything to the ports/pkg database. The > reason you have gcc 4.1.3 and gcc 4.2.5 on your machine is because some > other port/package depended/depends on them. pkg_info -R will solve > that mystery. > > As I said before: some ports/packages may require a newer (or older) > version of GCC, in which case, you'll end up with two (or more) versions > of gcc on your system -- one in the base and one (or more) managed via > ports. > > Regardless of what Garrett and others say about how multiple compilers > on a system "works great", I do not advocate it. There are many catches > which can/will surprise you down the road, especially with regards to > library linking order, symbol versioning, and a couple other things. > I'm sorry, but in my eyes it's risky behaviour. We've been down this > road before back when perl was in the base system, for similar reasons. The complication and mess stems from the fact that you'll need to compile components using an absolute prefix to the compiler or have a script which manages gcc and the binutils as a series of symlinks (Gentoo Linux does that). Not all projects unfortunately have wizened up to the fact that keeping something cross-compile safe is the best way to go so things may fail unless you have robust compile tools scripts to help manage everything. Cheers, -Garrett