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/27/2003 12:16:38
On Thu, 26 Jun 2003, David Brownlee wrote:
> 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... :)
On 1.6U a gcc3 with compiled with --host=i386--netbsdelf2.0 will
fail to build mail/imap-uw even with the above USE_GCC3 test.
Built with --host=${MACHINE_GNU_PLATFORM} everything works fine.
--host=i386--netbsdelf2.0.
--host=i386--netbsdelf2.0 enabled pthreads and GCC's crtstuff
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
I'll try building a version with just pthreads to see if its the
crtstuff causing the issue...
--
David/absolute -- www.netbsd.org: No hype required --