Your message dated Fri, 12 Sep 2014 21:21:14 +0000
with message-id <[email protected]>
and subject line Bug#760310: fixed in khronos-opencl-headers 1.2-2014.04.13-1.1
has caused the Debian Bug report #760310,
regarding opencl-headers: use __vector for altivec to avoid conflicts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
760310: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760310
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: opencl-headers
Version: 1.2-2014.04.13-1
Severity: important
Tags: patch
User: [email protected]
Usertags: ppc64el

Altivec vectors can be defined with either the "vector" keyword or the
"__vector" type [1]. In general "__vector" should be prefered for
include files, as otherwise it might conflicts with other type define
in the source code (define a vector class in C++ is quite common).

<CL/cl_platform.h> from opencl-headers defines altivec types using the
"vector" keyword. This causes opencv to fail to build on powerpc if the
code is compiled with -maltivec, or by default on ppc64el which always
has altivec enabled.

Other distribution patches the internal copy of cl_platform.h included
in opencv by replacing "vector" with "__vector" [2]. In Debian it has to
be done in the opencl-headers package, as the internal copy is not used.
The patch below fixes the issue. It would be nice if you can include it
quickly as it currently block the ppc64el bootstrap in Debian. Thanks in
advance.


[1] 
http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc03altivec_types.htm
[2] http://lists.opensuse.org/opensuse-commit/2014-01/msg00786.html


--- a/cl_platform.h
+++ b/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

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.14-2-powerpc64le (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: khronos-opencl-headers
Source-Version: 1.2-2014.04.13-1.1

We believe that the bug you reported is fixed in the latest version of
khronos-opencl-headers, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Barth <[email protected]> (supplier of updated khronos-opencl-headers 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 12 Sep 2014 19:52:42 +0000
Source: khronos-opencl-headers
Binary: opencl-headers
Architecture: source all
Version: 1.2-2014.04.13-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenCL Maintainers <[email protected]>
Changed-By: Andreas Barth <[email protected]>
Description:
 opencl-headers - OpenCL (Open Computing Language) header files
Closes: 760310
Changes:
 khronos-opencl-headers (1.2-2014.04.13-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload
   * Use __vector instead of vector in cl_platform.h to allow building
     with -maltivec. Closes: #760310
Checksums-Sha1:
 41696ff90bc8fa444c1c2af6ed59a1d26d71df29 1552 
khronos-opencl-headers_1.2-2014.04.13-1.1.dsc
 3bf5a40a283edc50ef4fdab3c654b3521d863723 5908 
khronos-opencl-headers_1.2-2014.04.13-1.1.debian.tar.xz
 034e79d7fba02ff6aa3906cc0b6e1f2a1bdec97d 47820 
opencl-headers_1.2-2014.04.13-1.1_all.deb
Checksums-Sha256:
 288f4671f0ab50efc38a6ea3a7842626773e98472305ee1107944f2a858b9ba3 1552 
khronos-opencl-headers_1.2-2014.04.13-1.1.dsc
 6197bb35e851abb2512540f57fa59db4c835a676f71e02d77356dc2c8458a92f 5908 
khronos-opencl-headers_1.2-2014.04.13-1.1.debian.tar.xz
 f2da3aa03ec9d8c729717b91ee0884871b5e1a95dc33e9688de136fa0af16a20 47820 
opencl-headers_1.2-2014.04.13-1.1_all.deb
Files:
 cafef3c2994b6f1d5eeda22898c5d606 47820 libdevel extra 
opencl-headers_1.2-2014.04.13-1.1_all.deb
 1bdc34172f52b8fe7e0295d84532eac8 1552 libdevel extra 
khronos-opencl-headers_1.2-2014.04.13-1.1.dsc
 1bae587d08bc2358997606c8616247ca 5908 libdevel extra 
khronos-opencl-headers_1.2-2014.04.13-1.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAlQTXZoACgkQmdOZoew2oYXsJgCeNZIX7WAzpsfnm9jE2fKKIIvR
2PEAoMCDn8JnK3tn1yrxxTsBBzwhaIvJ
=pHzS
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to