Subject: Re: solaris/gcc problem
To: None <tech-pkg@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 02/04/2004 23:48:01
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

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--