Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Feb 2008 23:10:07 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: Multimedia/player: negative side-effect of PR ports/119593?
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 05 Feb 2008 10:28:27 +0000
Dieter <freebsd@sopwith.solgatos.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080205231007.a89b5f6d.torfinn.ingolfsen>