Compile error in ParallelRegion.cc

Asked by Frank Kaiser

Hi,

I downloaded the trunc (Rev 181) and got the error below while trying to compile.
Any suggestions?

Frank

/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include `/usr/bin/llvm-config --cppflags` `/usr/bin/llvm-config --cxxflags` -g -O2 -MT ParallelRegion.lo -MD -MP -MF .deps/ParallelRegion.Tpo -c -o ParallelRegion.lo ParallelRegion.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/lib/llvm-2.8/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/usr/lib/llvm-2.8/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -O2 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -g -O2 -MT ParallelRegion.lo -MD -MP -MF .deps/ParallelRegion.Tpo -c ParallelRegion.cc -fPIC -DPIC -o .libs/ParallelRegion.o
ParallelRegion.cc: In member function 'void pocl::ParallelRegion::remap(llvm::ValueToValueMapTy&)':
ParallelRegion.cc:91:24: error: 'RF_IgnoreMissingEntries' was not declared in this scope
ParallelRegion.cc:91:50: error: 'RF_NoModuleLevelChanges' was not declared in this scope
ParallelRegion.cc: In member function 'void pocl::ParallelRegion::insertPrologue(unsigned int, unsigned int, unsigned int)':
ParallelRegion.cc:172:37: error: 'class llvm::BasicBlock' has no member named 'getFirstInsertionPt'
make[3]: *** [ParallelRegion.lo] Fehler 1
make[3]: Verlasse Verzeichnis '/home/frank/develop/other-workspaces/cpp/pocl/pocl/lib/llvmopencl'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/frank/develop/other-workspaces/cpp/pocl/pocl/lib'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/frank/develop/other-workspaces/cpp/pocl/pocl'
make: *** [all] Fehler 2

Question information

Language:
English Edit question
Status:
Answered
For:
pocl Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kalle Raiskila (kraiskil) said :
#1

" -I/usr/lib/llvm-2.8/"

That new a pocl requires LLVM version 3.1svn, i.e. the current LLVM development version. And clang of the same version too.

Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) said :
#2

LLVM/Clang 3.0 should also "work" but it has much worse OpenCL support.

Can you help with this problem?

Provide an answer of your own, or ask Frank Kaiser for more information if necessary.

To post a message you must log in.