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 22:49:17
On Wed, Feb 04, 2004 at 11:12:07PM +0100, Manuel Bouyer wrote:

> I'm trying to build misc/less from a current pkgsrc, after installing
> gcc3-c (from the same pkgsrc). I have USE_GCC3 set in /etc/mk.conf.
> The build dies with:
> checking for sparc64-sun-solaris2-gcc... gcc
> checking for C compiler default output... configure: error: C compiler cannot create executables
> 
> config.log says:
> configure:1599: checking for C compiler default output
> 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).

Could you cvs update your pkgsrc and try again.  There should be more
debugging info that's output that should help find out what's wrong.

	Thanks,

	-- Johnny Lam <jlam@NetBSD.org>