[Debian-med-packaging] Bug#765285: Problem building mapsembler2 on several architectures: xmmintrin.h: No such file or directory

Jakub Wilk jwilk at debian.org
Sat Oct 25 20:57:42 UTC 2014


* Andreas Tille <andreas at an3as.eu>, 2014-10-25, 20:01:
>Unfortunately it still fails on mips, mipsel and powerpc with
>| [ 97%] Building CXX object ext/gatb-core/tools/CMakeFiles/dbgh5.dir/dbgh5.cpp.o
>| Linking CXX executable ../bin/dbgh5
>| ../lib/libgatbcore.a(Storage.cpp.o): In function `gatb::core::tools::storage::impl::BagHDF5<gatb::core::tools::math::NativeInt8>::insert(gatb::core::tools::math::NativeInt8 const*, unsigned int)':
>| /«BUILDDIR»/mapsembler2-2.2.3+dfsg/mapsembler2_extremities/thirdparty/gatb-core/src/gatb/tools/storage/impl/CollectionHDF5.hpp:102: undefined reference to `__sync_fetch_and_add_8'

IANA atomics expert, but GCC documentation describes the __sync_*[0] 
built-in functions as "legacy", and I hypothesize that the __atomic_*[1] 
built-in functions are more widely available. The attached patch let me 
build mapsembler2 on powerpc, although probably all the other __sync_* 
calls should be replaced by __atomic_*. I didn't test if the package 
still works after these changes.


[0] https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/_005f_005fsync-Builtins.html
[1] https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/_005f_005fatomic-Builtins.html

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapsembler2-atomics.diff
Type: text/x-diff
Size: 2165 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20141025/87938055/attachment-0001.diff>


More information about the Debian-med-packaging mailing list