[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stella build failure on hurd (due to pthreads?)



Samuel Thibault, le Mon 06 Jun 2011 02:34:55 +0200, a écrit :
> Samuel Thibault, le Mon 06 Jun 2011 00:47:33 +0200, a écrit :
> > Stephen Kitt, le Sat 04 Jun 2011 23:50:26 +0200, a écrit :
> > > > /usr/bin/ld: /usr/lib/libSDL.so: undefined reference to symbol
> > > > 'pthread_cancel' /usr/bin/ld: note: 'pthread_cancel' is defined in
> > > > DSO /lib/libpthread.so.0.3 so try adding it to the linker command line
> > > > /lib/libpthread.so.0.3: could not read symbols: Invalid operation
> > > > collect2: ld returned 1 exit status
> > > 
> > > The new version of the stella package has encountered the same problem on
> > > three attempts,
> > 
> > > Is this another toolchain problem?
> > 
> > Apparently. This needs to get investigated, as it happens with quite a
> > few packages.
> 
> It appeared with the addition of -no-add-needed, I've downgraded the
> buildds again, until investigation happens. Apparently what happens is
> that the object files emit a weak reference to pthread_cancel, issued
> by some inline macro of g++, in order to be able to cancel a thread
> when pthread is linked in. libSDL does pull libpthread, but the weak
> reference doesn't manage to catch the reference.

Followed-up on #629866.

In the meanwhile we are going multiarch, and the packages now depend
on the latest uploaded gcc-4.4.  I'll build a newer gcc-4.4 with
no-add-needed disabled to avoid a dependency hell.

Samuel


Reply to: