Source: clblas
Version: 2.6-2.1
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org

Dear Maintainer,

The package clblas fails to build from source on ppc64el, due to conflicts with
some altivec/vmx keywords (bool, vector).
Disabling altivec fixes it, which can be seen in the patch attached.

Thanks

Fernando

-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.16.0-4-powerpc64le (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru clblas-2.6/debian/changelog clblas-2.6/debian/changelog
--- clblas-2.6/debian/changelog	2015-08-18 14:58:52.000000000 -0400
+++ clblas-2.6/debian/changelog	2015-09-04 10:45:09.000000000 -0400
@@ -1,3 +1,10 @@
+clblas (2.6-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/rules: Added -mno-altivec to fix ftbfs on ppc64el
+
+ -- Fernando Seiti Furusato <ferse...@br.ibm.com>  Fri, 04 Sep 2015 10:44:46 -0400
+
 clblas (2.6-2) unstable; urgency=medium
 
   * d/control: remove ${shlibs:Depends} substitution from debug package
diff -Nru clblas-2.6/debian/rules clblas-2.6/debian/rules
--- clblas-2.6/debian/rules	2015-08-18 14:58:52.000000000 -0400
+++ clblas-2.6/debian/rules	2015-09-04 10:44:40.000000000 -0400
@@ -4,10 +4,16 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+ifeq ($(DEB_BUILD_ARCH), ppc64el)
+DEB_CFLAGS_MAINT_APPEND += -mno-altivec
+endif
+
 %:
 	dh $@ --sourcedirectory=src \
 		--buildsystem=cmake \
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to