Subject: Re: gcc3 pkg as main pkgsrc compiler
To: julien Touche <>
From: grant beattie <>
List: tech-pkg
Date: 02/01/2003 17:14:59
On Fri, Jan 31, 2003 at 09:08:17PM +0100, julien Touche wrote:

> happy someone reports it work
> but my concerns where about method to use it.
> gcc3 is installed in $base/gcc3-2.1 so it is not ready to use directly.
> to change that, one must rebuild all package with gcc3.2 (cf ABI) but
> need:
> set CC in mk.conf
> set somewhere -L$base/gcc-3.2.1/include -I$base/gcc-3.2.1/lib ?
> anything else ?
> when i only add '.include "$base/etc/' in $base/etc/mk.conf, 
> i get with libtool:
> checking whether the C compiler (cc -O -I/tmp/bou/include 
> -Wl,-R/tmp/bou/lib -L/tmp/bou/lib) works... no
> configure: error: installation or configuration problem: C compiler 
> cannot create executables.
> *** Error code 1

$PREFIX/etc/mk.conf won't help you here, you need to include from /etc/mk.conf.

I've built a bunch of packages on NetBSD and Solaris with gcc3. There
are some outstanding problems, and I believe Johnny is working on
having gcc2 and gcc3 handled correctly by buildlink2. This should
solve the remaining issues (I think the killer was shared libstdc++).