Re: Help with missing __sync_fetch_and_add_8
Mark Morgan Lloyd <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Organization | KDG Telemetry |
| Message-ID | <[email protected]> |
Manuel A. Fernandez Montecelo wrote: > Hi, > > 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)': > /«BUILDDIR»/ogre-1.9-1.9.0~20130731+dfsg1/OgreMain/include/OgreAtomicScalar.h:93: > 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. I don't know whether this is remotely helpful, but I had problems building an old kernel on a different architecture which was fixed by http://www.brunni.de/linux_kernel_2.6.27.62_with_gcc_4.6.3.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]