[oclgrind] 02/02: Fix ppc64el build (-malitvec issue).
James Price
jprice-guest at moszumanska.debian.org
Sun Oct 25 16:46:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
jprice-guest pushed a commit to branch master
in repository oclgrind.
commit cd9925f14b76d3867166b524b3305ae156f5ef6b
Author: James Price <j.price at bristol.ac.uk>
Date: Sun Oct 25 16:44:10 2015 +0000
Fix ppc64el build (-malitvec issue).
---
debian/changelog | 5 +++--
debian/patches/altivec_fix.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1745d97..3ae1277 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
oclgrind (15.5-2) UNRELEASED; urgency=low
- * Fixed a couple of compiler warnings.
+ * Fix a couple of compiler warnings.
* Add Python to build dependencies to enable test suite.
+ * Patch cl.h to fix build with -malitvec.
- -- James Price <j.price at bristol.ac.uk> Thu, 22 Oct 2015 11:12:50 +0100
+ -- James Price <j.price at bristol.ac.uk> Sun, 25 Oct 2015 16:34:44 +0000
oclgrind (15.5-1) unstable; urgency=low
diff --git a/debian/patches/altivec_fix.patch b/debian/patches/altivec_fix.patch
new file mode 100644
index 0000000..9f84c92
--- /dev/null
+++ b/debian/patches/altivec_fix.patch
@@ -0,0 +1,26 @@
+Description: Replace vector with __vector to fix build with -malitvec.
+Author: James Price <j.price at bristol.ac.uk>
+Last-Update: 2015-10-25
+--- a/src/CL/cl_platform.h
++++ b/src/CL/cl_platform.h
+@@ -332,13 +332,13 @@
+ /* Define basic vector types */
+ #if defined( __VEC__ )
+ #include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
+- typedef vector unsigned char __cl_uchar16;
+- typedef vector signed char __cl_char16;
+- typedef vector unsigned short __cl_ushort8;
+- typedef vector signed short __cl_short8;
+- typedef vector unsigned int __cl_uint4;
+- typedef vector signed int __cl_int4;
+- typedef vector float __cl_float4;
++ typedef __vector unsigned char __cl_uchar16;
++ typedef __vector signed char __cl_char16;
++ typedef __vector unsigned short __cl_ushort8;
++ typedef __vector signed short __cl_short8;
++ typedef __vector unsigned int __cl_uint4;
++ typedef __vector signed int __cl_int4;
++ typedef __vector float __cl_float4;
+ #define __CL_UCHAR16__ 1
+ #define __CL_CHAR16__ 1
+ #define __CL_USHORT8__ 1
diff --git a/debian/patches/series b/debian/patches/series
index cb5c4fb..48f5755 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ pch-location.patch
clang-library-order.patch
cmake-preserve-flags.patch
i386-shift-width.patch
+altivec_fix.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/oclgrind.git
More information about the Pkg-opencl-commits
mailing list