[Pkg-opencl-devel] Bug#806965: oclgrind: FTBFS on ppc64el -- conflict with altivec keyword bool
Fernando Seiti Furusato
ferseiti at br.ibm.com
Tue Dec 8 17:37:53 UTC 2015
J Price <J.Price at bristol.ac.uk> wrote on 08/12/2015 15:30:55:
> From: J Price <J.Price at bristol.ac.uk>
> To: Fernando Seiti Furusato/Brazil/IBM at IBMBR
> Cc: 806965 at bugs.debian.org, Andreas Beckmann <anbe at debian.org>, Breno
Henrique
> Leitao/Brazil/IBM at IBMBR
> Date: 08/12/2015 15:31
> Subject: Re: Bug#806965: oclgrind: FTBFS on ppc64el -- conflict with
altivec
> keyword bool
> 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
>
You are right, James.
That worked like a charm.
I did that and it completed with no errors :)
More information about the Pkg-opencl-devel
mailing list