From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 5 22:10:11 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6976C16A41A for ; Tue, 5 Feb 2008 22:10:11 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 2922113C44B for ; Tue, 5 Feb 2008 22:10:11 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0JVS006QYDKXGR50@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 05 Feb 2008 23:10:09 +0100 (CET) Received: from kg-work.kg4.no ([80.202.173.59]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0JVS005JTDKVA282@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 05 Feb 2008 23:10:09 +0100 (CET) Date: Tue, 05 Feb 2008 23:10:07 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-id: <20080205231007.a89b5f6d.torfinn.ingolfsen@broadpark.no> In-reply-to: <200802051828.SAA25016@sopwith.solgatos.com> References: <20080204233618.d57b55e8.torfinn.ingolfsen@broadpark.no> <200802051828.SAA25016@sopwith.solgatos.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; i386-portbld-freebsd6.3) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Multimedia/player: negative side-effect of PR ports/119593? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 22:10:11 -0000 On Tue, 05 Feb 2008 10:28:27 +0000 Dieter wrote: > But is it actually using gcc 4.2.3 or is it finding some other > version? How can I tell? I'm not familiar enough with the ports framework to tell which version it uses. There are several versions in /usr/local/bin: root@kg-quiet# ls /usr/local/bin/gcc* /usr/local/bin/gcc-ooo /usr/local/bin/gccbug-ooo /usr/local/bin/gccmakedep /usr/local/bin/gcc42 /usr/local/bin/gccbug42 root@kg-quiet# ls -l /usr/local/bin/*gcc* -r-xr-xr-x 3 root wheel 90824 Oct 26 18:56 /usr/local/bin/gcc-ooo -r-xr-xr-x 3 root wheel 205000 Feb 3 14:52 /usr/local/bin/gcc42 -r-xr-xr-x 1 root wheel 16087 Oct 26 18:56 /usr/local/bin/gccbug-ooo -r-xr-xr-x 1 root wheel 16130 Feb 3 14:52 /usr/local/bin/gccbug42 -r-xr-xr-x 1 root wheel 2017 May 28 2007 /usr/local/bin/gccmakedep -r-xr-xr-x 3 root wheel 90824 Oct 26 18:56 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-3.4.1 -r-xr-xr-x 3 root wheel 205000 Feb 3 14:52 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-4.2.3 -r-xr-xr-x 3 root wheel 90824 Oct 26 18:56 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-ooo -r-xr-xr-x 3 root wheel 205000 Feb 3 14:52 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc42 > If you run "gcc -v" does it say 4.2.3 ? This test isn't correct, because it just finds the system compiler (/usr/bin/gcc) which is gcc 3.4.6: root@kg-quiet# gcc -v Using built-in specs. Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 3.4.6 [FreeBSD] 20060305 I'm guessing (but don't know for sure) that the ports framework (makefiles and so on) uses a different compiler. For example one of the -portbuild- ones above. The port doesn't include a USE_GCC line, so I'm not sure how to find out which compiler it uses. I had a quick look at the Porters Handbook[1] but still can't figure out how the ports framework chooses a compiler if USE_GCC isn't set. Neither CC nor CXX is set in /etc/make.conf References: 1) http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ -- Regards, Torfinn Ingolfsen