[GEM-dev] undefined symbol: __sync_fetch_and_add_4

Hans-Christoph Steiner hans at at.or.at
Wed Jun 29 16:21:15 CEST 2011


On Jun 29, 2011, at 3:43 AM, IOhannes m zmoelnig wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2011-06-27 21:12, Hans-Christoph Steiner wrote:
>>
>> In the process of fixed Pd-extended 0.43.1, I just found that on
>> Ubuntu/Maverick, Gem says this once I start Pd-extended:
>>
>> /usr/lib/pd-extended/extra/Gem/Gem.pd_linux:
>> /usr/lib/pd-extended/extra/Gem/Gem.pd_linux: undefined symbol:
>> __sync_fetch_and_add_4
>> Gem: can't load library
>>
>
> according to the internet, this is a problem of the "-march=i386" flag
> you are passing as CXXFLAGS.


What if I switched the OPT_FLAGS from:
	OPT_CFLAGS += -mtune=i686 -march=i386
to:
	OPT_CFLAGS += -march=pentium3 -msse -mfpmath=sse

The Pentium 3 came out in 1999, so that's quite old.  For supporting  
older computers, people could use the official Debian/Ubuntu packages.

.hc

----------------------------------------------------------------------------

"[W]e have invented the technology to eliminate scarcity, but we are  
deliberately throwing it away to benefit those who profit from  
scarcity."        -John Gilmore





More information about the GEM-dev mailing list