Re: FTBFS on sparc: __sync_test_and_add_4
On Thu, 2009-04-30 at 00:40 +1000, Felipe Sateler wrote:
> El 29/04/09 23:02 Julien Cristau escribió:
> > On Wed, Apr 29, 2009 at 14:11:11 +1000, Felipe Sateler wrote:
> > > Hi sparc porters. I'm writing to ask for your assistance on a FTBFS on
> > > my package csound on sparc. The build log is here. The failure is
> > >
> > > the following:
> > > > libCsoundAC.so.5.2: undefined reference to `__sync_fetch_and_add_4'
> > >
> > > Csound uses __sync_lock_test_and_set for spinlocks, and tests for
> > > their existence at build time to use them. Sparc's gcc apparently
> > > provides said function, since the test succeeds, but I'm getting the
> > > above failure (note that __sync_fetch_and_add_4 is nowhere mentioned
> > > in the csound sources).
> > Hi,
> > any reason you're not using libatomic-ops?
> This is the first time I heard about libatomic-ops. Is it cross-platform? I
> mean cross-platform as in OS, not arch, which it clearly is.
It appears to be. It is currently distributed as part of Boehm's GC
( http://bdwgc.sf.net/ ), which takes portability quite seriously.