Package: libxs
Version: 1.2.0-1
Severity: serious
Tags: patch

Your package fails to build on armhf with the following error.

 CXX    libxs_la-mailbox.lo
/tmp/cchN2ucw.s: Assembler messages:
/tmp/cchN2ucw.s:229: Error: thumb conditional instruction should be in IT block 
-- `strexeq ip,r7,[r3]'
/tmp/cchN2ucw.s:520: Error: thumb conditional instruction should be in IT block 
-- `strexeq r5,r3,[r1]'
/tmp/cchN2ucw.s:922: Error: thumb conditional instruction should be in IT block 
-- `strexeq r9,r8,[r1]'
/tmp/cchN2ucw.s:1095: Error: thumb conditional instruction should be in IT 
block -- `strexeq r8,ip,[r2]'
make[3]: *** [libxs_la-mailbox.lo] Error 1

Most likely this is caused by inline assembler that is not compaltible with being assembled in thumb mode. The easiest soloution is to build with -marm on arm platforms, patch is attatched.


--- libxs-1.2.0/debian/rules	2012-06-13 17:26:54.000000000 +0000
+++ libxs-1.2.0.new/debian/rules	2012-06-18 23:52:32.000000000 +0000
@@ -1,5 +1,11 @@
 #!/usr/bin/make -f
 
+DEB_HOST_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
+ifeq ($(DEB_HOST_ARCH_CPU),arm)
+  export DEB_CXXFLAGS_MAINT_APPEND := -marm
+endif
+
 %:
 	dh $@ --with autoreconf
 

Reply via email to