Hi,

I am trying to install PoCL on Ubuntu 14.04 by:

$  ./configure --enable-shared —prefix=/usr/local/ 
$  make REQUIRES_RTTI=1 && make install

I do get a fatal error shown below. Any advice?

Mehran

In file included from ../../clang/Basic/Sanitizers.h:44:
../../clang/Basic/Sanitizers.def:60:1: error: use of undeclared identifier 
'SO_Enum'
SANITIZER("enum", Enum)
^
../../clang/Basic/Sanitizers.h:40:36: note: expanded from macro 'SANITIZER'
  const SanitizerMask ID = 1ULL << SO_##ID;
                                   ^
<scratch space>:28:1: note: expanded from here
SO_Enum
^
In file included from pocl_llvm_api.cc:32:
In file included from ../../clang/CodeGen/CodeGenAction.h:13:
In file included from ../../clang/Frontend/FrontendAction.h:23:
In file included from ../../clang/Basic/LangOptions.h:21:
In file included from ../../clang/Basic/Sanitizers.h:44:
../../clang/Basic/Sanitizers.def:61:1: error: use of undeclared identifier 
'SO_FloatCastOverflow'; did you
      mean 'FloatCastOverflow'?
SANITIZER("float-cast-overflow", FloatCastOverflow)
^
../../clang/Basic/Sanitizers.h:40:36: note: expanded from macro 'SANITIZER'
  const SanitizerMask ID = 1ULL << SO_##ID;
                                   ^
<scratch space>:28:1: note: expanded from here
SO_FloatCastOverflow
^
../../clang/Basic/Sanitizers.def:61:34: note: 'FloatCastOverflow' declared here
SANITIZER("float-cast-overflow", FloatCastOverflow)
                                 ^
../../clang/Basic/Sanitizers.h:40:23: note: expanded from macro 'SANITIZER'
  const SanitizerMask ID = 1ULL << SO_##ID;
                      ^
In file included from pocl_llvm_api.cc:32:
In file included from ../../clang/CodeGen/CodeGenAction.h:13:
In file included from ../../clang/Frontend/FrontendAction.h:23:
In file included from ../../clang/Basic/LangOptions.h:21:
In file included from ../../clang/Basic/Sanitizers.h:44:
../../clang/Basic/Sanitizers.def:61:1: warning: variable 'FloatCastOverflow' is 
uninitialized when used
      within its own initialization [-Wuninitialized]
SANITIZER("float-cast-overflow", FloatCastOverflow)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../clang/Basic/Sanitizers.h:40:36: note: expanded from macro 'SANITIZER'
  const SanitizerMask ID = 1ULL << SO_##ID;
                                   ^~~~~~~
<scratch space>:28:1: note: expanded from here
SO_FloatCastOverflow
^~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make[5]: *** [libpoclllvm_la-pocl_llvm_api.lo] Error 1
make[5]: Leaving directory `/home/mehran/OpenCl/pocl-0.12/lib/CL'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/mehran/OpenCl/pocl-0.12/lib/CL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/mehran/OpenCl/pocl-0.12/lib/CL'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mehran/OpenCl/pocl-0.12/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mehran/OpenCl/pocl-0.12'
make: *** [all] Error 2
root@ubuntu:/home/mehran/OpenCl/pocl-0.12# 

------------------------------------------------------------------------------
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to