[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 00:32:48 UTC 2015


reopen 806965
thanks

On 7 December 2015 at 11:08, Fernando Seiti Furusato
<ferseiti at br.ibm.com> wrote:
>
> > I think -mno-altivec is rather a quick workaround and __vector the
> > proper fix.
>
> Yes, I agree with Andreas. Mine was just a less invasive workaround,
> because I preferred not to mess with the code.

OK, the ppc64el build is still failing with the __vector patch. It's
not clear to me where the errors are originating.

>From the GCC page on AltiVec [1]:
> Macros vector, pixel, and bool are defined in <altivec.h> and can be undefined.

Perhaps we need to #undef these macros in cl.h after <altivec.h> is
included, to prevent them from causing problems in the source files
that include cl.h?

[1] https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/PowerPC-AltiVec-Built_002din-Functions.html



More information about the Pkg-opencl-devel mailing list