Subject: Re: gcc3/mozilla pthread link error under current
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 06/26/2003 11:39:49
On Tue, 24 Jun 2003, Frederick Bruckman wrote:

> On Tue, 24 Jun 2003, David Brownlee wrote:
>
> > 	I'm trying a gcc3 on 1.6U with a very slight variation on the
> > 	--host=i386--netbsdelf2.0 patch in PR pkg/21848 (attached),
[...]
> > 	(extract from scripts/makefile.std: '-v' added to give more output)
>
> > /usr/bin/ld: cannot find -lgcc_eh
>
> That's not due to the pthreads. I get the same thing on 1.6.1 with
> "CC=/usr/pkg/gcc-3.3/bin/gcc make". Curiously, an out-of-the-box
> (well, mostly) gcc3 compiler doesn't have the problem. Even more
> curiously, after getting the same error while building "mail/imap-uw",
> I was able to work around it by descending into each utility's
> directory and running "make" (but that's not so easy with "png").

	Agreed - my feeling is that it might be something in the buildlink
	magic.

	Strangely the mail/imap-uw build used to work with
	.if defined(USE_GCC3)
	.  include "../../lang/gcc3/buildlink2.mk"
	.endif

	I'll try reverting part of the --host=i386--netbsdelf2.0 patch
	to see if that helps. Obviously there will be some time before
	I follow up on this with details of the result... :)

-- 
		David/absolute          -- www.netbsd.org: No hype required --