Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
pocl 1.4, ppc64le, and c++11 build issue #800
Building pocl 1.4 on ppc64le (IBM Power9 box) I've hit an issue with the c++11 standard being set as a compiler flag. Using LLVM 9.0.1, GCC 8.3.0 and setting
which lead me to https://bugs.freedesktop.org/show_bug.cgi?id=68504#c5 and that suggests a fix.
I've used https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/d3f20f575b3c3cf0c839bf249b73ff781c9f1a86/easybuild/easyconfigs/p/pocl/pocl-1.4_remove-c11-std.patch and this fixes the issue.
I've done some more testing and an alternative is the following patch:
diff -aur pocl-1.4.orig/include/CL/cl_platform.h pocl-1.4/include/CL/cl_platform.h --- pocl-1.4.orig/include/CL/cl_platform.h 2020-01-03 09:55:56.986465000 +0000 +++ pocl-1.4/include/CL/cl_platform.h 2020-01-03 09:59:18.058173021 +0000 @@ -356,6 +356,8 @@ /* 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. */ + #undef bool + #undef vector typedef __vector unsigned char __cl_uchar16; typedef __vector signed char __cl_char16; typedef __vector unsigned short __cl_ushort8;