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 ):
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  changing __sync calls to
__atomic, and depending on gcc >= 4.8 and linking to -latomic, as
suggested in .
Now fails with (full log in ):
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
Manuel A. Fernandez Montecelo <email@example.com>