[Pkg-opencl-devel] Bug#806965: oclgrind: FTBFS on ppc64el -- conflict with altivec keyword bool

J Price J.Price at bristol.ac.uk
Tue Dec 8 17:30:55 UTC 2015


On 8 December 2015 at 13:43, Fernando Seiti Furusato
<ferseiti at br.ibm.com> wrote:
> What helped a lot with vector is that it is being used to define a type
> in a header, unlike bool which is used everywhere.
> Also the first error is because it is used in an enum in a gcc header.
> (/usr/include/c++/5/bits/cpp_type_traits.h)

Since bool is just a macro, can't we just #undef it after including
altivec.h? I was envisioning something like this inside cl_platform.h
(around line 334):

#include <altivec.h>
#undef vector
#undef bool
#undef pixel
typedef __vector unsigned char      __cl_uchar16;
// etc

James



More information about the Pkg-opencl-devel mailing list