On 2/13/22 14:59, Bas Couwenberg wrote:
sfcgal (1.4.1-2) FTBFS on mipsel due to an issue in cgal (5.4-1):

  /usr/include/CGAL/Lazy_exact_nt.h:602: undefined reference to 
`__atomic_load_8'
  /usr/bin/ld: 
CMakeFiles/unit-test-SFCGAL.dir/SFCGAL/algorithm/DifferenceTest.cpp.o:/usr/include/c++/11/atomic:285:
 more undefined references to `__atomic_load_8' follow

https://buildd.debian.org/status/fetch.php?pkg=sfcgal&arch=mipsel&ver=1.4.1-2&stamp=1644759463&raw=0

-latomic should be added to the CGAL CMake configuration resolve this.

Just adding -latomic to LDFLAGS was not sufficient, to workaround this issue -Wl,--no-as-needed also needed to be added to CXXFLAGS.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

Reply via email to