Re: FTBFS on sparc: __sync_test_and_add_4
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[1]. 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?
Cheers,
Julien
Reply to: