[Debian-med-packaging] Bug#906712: mrs fails on several architectures: undefined reference to __atomic_*

Adrian Bunk bunk at debian.org
Mon Aug 20 03:21:56 BST 2018


Source: mrs
Version: 6.0.5+dfsg-6
Severity: important
Tags: patch ftbfs

https://buildd.debian.org/status/package.php?p=mrs&suite=sid

...
obj/M6Progress.o: In function `M6Progress::Consumed(long long)':
/usr/include/c++/7/bits/atomic_base.h:312: undefined reference to `__atomic_fetch_add_8'
obj/M6Progress.o: In function `M6Progress::Progress(long long)':
/usr/include/c++/7/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
obj/M6Progress.o: In function `M6Progress::~M6Progress()':
/usr/include/c++/7/bits/atomic_base.h:374: undefined reference to `__atomic_store_8'
obj/M6Progress.o: In function `M6ProgressImpl::PrintProgress()':
/usr/include/c++/7/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
obj/M6Progress.o: In function `M6ProgressImpl::Run()':
/usr/include/c++/7/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
/usr/include/c++/7/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
/usr/include/c++/7/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
collect2: error: ld returned 1 exit status
GNUmakefile:100: recipe for target 'mrs' failed
make[1]: *** [mrs] Error 1


Fix:

--- debian/rules.old	2018-08-20 00:03:16.554691756 +0000
+++ debian/rules	2018-08-20 00:04:35.053856249 +0000
@@ -2,6 +2,10 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerc powerpcspe sh4))
+      export DEB_LDFLAGS_MAINT_APPEND=-latomic
+endif
+
 DH_VERBOSE := 1
 
 %:



More information about the Debian-med-packaging mailing list