Package: fnordmetric Version: 0.1.0.20150502+gite736fba3-2 Severity: important Tags: sid User: debian-m...@lists.debian.org Usertags: mips-patch
Hello, Package fnordmetric_0.1.0.20150502+gite736fba3-2 FTBFS on mips and mipsel with following message: /usr/include/c++/4.9/bits/atomic_base.h:500: undefined reference to `__atomic_load_8' /usr/include/c++/4.9/bits/atomic_base.h:478: undefined reference to `__atomic_store_8' mips: https://buildd.debian.org/status/fetch.php?pkg=fnordmetric&arch=mips&ver=0.1.0.20150502%2Bgite736fba3-2&stamp=1438374654 mipsel: https://buildd.debian.org/status/fetch.php?pkg=fnordmetric&arch=mipsel&ver=0.1.0.20150502%2Bgite736fba3-2&stamp=1438372541 I have attached a patch that resolves this issue. With proposed patch package builds successfully from source without an issue. Please include this patch. I think that this solution can be used for powerpc also, if powepc arch is included in patch, but I do not have powerpc machine to test this. Thank you! Regards, Jurica
diff -upNr fnordmetric-0.1.0.20150502+gite736fba3-orig/debian/rules fnordmetric-0.1.0.20150502+gite736fba3/debian/rules --- fnordmetric-0.1.0.20150502+gite736fba3-orig/debian/rules 2015-07-30 16:31:41.000000000 +0000 +++ fnordmetric-0.1.0.20150502+gite736fba3/debian/rules 2015-10-15 13:28:17.000000000 +0000 @@ -7,6 +7,13 @@ include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),mips mipsel)) + LDFLAGS += -latomic + export LDFLAGS +endif + %: dh $@ --parallel