Subject: Re: solaris/gcc problem
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 02/04/2004 23:18:33
On Wed, Feb 04, 2004 at 11:48:01PM +0100, Manuel Bouyer wrote:
> On Wed, Feb 04, 2004 at 11:12:07PM +0100, Manuel Bouyer wrote:
> > [...]
> > configure:1602: gcc -O -I/usr/local/include   -I/usr/local/include   -Lnot_found
> > -Wl,-Rnot_found -L/usr/local/gcc/lib -Wl,-R/usr/local/gcc/lib -L/usr/local/lib -
> > l,-R/usr/local/lib conftest.c  >&5
> > ld: fatal: library -lgcc: not found
> > ld: fatal: library -lgcc_eh: not found
> > ld: fatal: library -lgcc: not found
> > ld: fatal: library -lgcc_eh: not found
> > ld: fatal: File processing errors. No output written to a.out
> > collect2: ld returned 1 exit status
> > 
> > (I don't from where these "not_found" come from).
> 
> I think I found the problem:
> _GCC_SUBPREFIX is set to gcc/ instead of gcc3/. I don't know why,
> _CC is properly set to /usr/local/gcc3/bin/gcc.
> But ${_CC:T:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}/ returns
> "gcc/" instead of "gcc3/"
> 
> I can't say why.
> For now I hardcoded _GCC_PREFIX in gcc.mk

Could you use "make show-var VARNAME=... PKG_PHASE=buildlink" to tell me
the values for:

	_USE_PKGSRC_GCC
	_GCC_REQD
	_GCC_PKGBASE

	Thanks,

	-- Johnny Lam <jlam@NetBSD.org>