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

Help with missing __sync_fetch_and_add_8


I write here in the case that somebody can help me to fix this.

ogre-1.9 (...-2) fails to build with this error (full log in [1]):

CMakeFiles/OgreMain.dir/src/OgreResourceManager.cpp.o: In function
`Ogre::AtomicScalar<unsigned long long>::operator++(int)':
undefined reference to `__sync_fetch_and_add_8'

I attemped to fix this with patch [2] changing __sync calls to
__atomic, and depending on gcc >= 4.8 and linking to -latomic, as
suggested in [3].

Now fails with (full log in [4]):
undefined reference to `__atomic_fetch_add_8'

Can anybody please advise on what to do?

The package is a pre-release, not very important and low popcon, but
if this is not fixed it will persist in the future, and it's not the
only package affected by this issue so I guess that somebody can give
some hint.

Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>

[1] https://buildd.debian.org/status/fetch.php?pkg=ogre-1.9&arch=mips&ver=1.9.0%7E20130731%2Bdfsg1-2&stamp=1379871953

[2] http://anonscm.debian.org/gitweb/?p=pkg-games/ogre-1.9.git;a=blob_plain;f=debian/patches/bug-725143-atomics.patch;hb=c92af5af2cdd3da77720c69dc9c93046cc05b743

[3] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47460

[4] https://buildd.debian.org/status/fetch.php?pkg=ogre-1.9&arch=mips&ver=1.9.0%7E20130731%2Bdfsg1-4&stamp=1381427621

Reply to: