Subject: Re: Adding USE_GCC3=yes to /usr/pkg/share/examples/gcc-3.3/mk.conf
To: John R. Shannon <john@johnrshannon.com>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 01/21/2004 14:34:33
On Wed, 21 Jan 2004, John R. Shannon wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I submitted PR 23692, on 8 Dec 2003, with a patch to fix this. I believe it's
> status is still open.

	I made one small change to move a comment at the end of a .if
	defined(xxx) line to the next line to avoid a syntax error.

	On a 1.6.2_RC4 system with /etc/mk.conf containing only
		USE_GCC3=       yes
		.sinclude "/usr/pkg/gcc3/mk/c++.mk"
	and no other packages installed, running a 'make update' in
	/pkgsrc/lang/gcc3-c++ gives the error below.

	This is almost certainly due to _CC_IS_GCC not being set causing
	    CC_VERSION!= ${CC} -V 2>&1 | ${GREP} '^cc'
	to be run.

	Would you have any thoughts on this?


install -c -o root -g wheel -m 444 /files/netbsd/pkgsrc/lang/gcc3-c++/work/gcc3.mk /usr/pkg/gcc3/mk/c++.mk
===> [Automatic ELF shared object handling]
===> Please note the following:

===========================================================================
$NetBSD: MESSAGE,v 1.2 2003/07/08 15:04:58 drochner Exp $

To use gcc3-c++-3.3.2nb1 include "/usr/pkg/gcc3/mk/c++.mk" in your
BSD style makefile.

===========================================================================

Syntax error: EOF in backquote substitution
*** Error code 2

Stop.
make: stopped in /files/netbsd/pkgsrc/lang/gcc3-c++
*** Error code 1

Stop.
make: stopped in /files/netbsd/pkgsrc/lang/gcc3-c++
*** Error code 1

Stop.
make: stopped in /files/netbsd/pkgsrc/lang/gcc3-c++
*** Error code 1

Stop.
make: stopped in /pkgsrc/lang/gcc3-c++
*** Error code 1

Stop.
make: stopped in /pkgsrc/lang/gcc3-c++
304.252u 120.616s 9:50.63 71.9% 0+0k 296+12627io 3pf+0w