[Debian-med-packaging] Bug#909938: spdlog FTBFS on armel/mips/mipsel:
Adrian Bunk
bunk at debian.org
Sun Sep 30 10:52:41 BST 2018
Source: spdlog
Version: 1:1.1.0-1
Severity: serious
Tags: patch ftbfs
https://buildd.debian.org/status/package.php?p=spdlog&suite=sid
...
[ 68%] Linking CXX executable latency
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabi/bench && /usr/bin/cmake -E cmake_link_script CMakeFiles/latency.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -rdynamic CMakeFiles/latency.dir/latency.cpp.o -o latency -lpthread
/usr/bin/ld: CMakeFiles/latency.dir/latency.cpp.o: in function `bench_mt(int, std::shared_ptr<spdlog::logger>, int)':
/usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/latency.dir/latency.cpp.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<bench_mt(int, std::shared_ptr<spdlog::logger>, int)::{lambda()#1}> > >::_M_run()':
/usr/include/c++/8/bits/atomic_base.h:312: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[3]: *** [bench/CMakeFiles/latency.dir/build.make:87: bench/latency] Error 1
Fix:
--- debian/rules.old 2018-09-30 09:29:49.388250919 +0000
+++ debian/rules 2018-09-30 09:36:01.654652659 +0000
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe sh4))
+ export DEB_LDFLAGS_MAINT_APPEND=-latomic
+endif
+
%:
dh $@
More information about the Debian-med-packaging
mailing list