techniker / freeocl

Automatically exported from code.google.com/p/freeocl
GNU Lesser General Public License v3.0
0 stars 0 forks source link

error while compiling branch/llvm r308 #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
cmake with:

cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_DIR=/usr/share/llvm/cmake/modules 
../freeocl

log of error:

/var/build/freeocl-llvm/src/parser/ast/var.cpp: In member function ‘void 
FreeOCL::var::allocate(FreeOCL::vm*) const’:
/var/build/freeocl-llvm/src/parser/ast/var.cpp:81:11: error: ‘class 
llvm::GlobalVariable’ has no member named ‘setThreadLocalMode’
/var/build/freeocl-llvm/src/parser/ast/var.cpp:81:30: error: 
‘GeneralDynamicTLSModel’ is not a member of ‘llvm::GlobalVariable’

using llvm 3.1, gcc 4.7.2, on Debian sid x86_64 GNU/Linux kernel 3.2.0-4-amd64.

Original issue reported on code.google.com by infinity.blick.winkel@gmail.com on 6 Nov 2012 at 12:07

GoogleCodeExporter commented 9 years ago
I build the LLVM branch against LLVM trunk (3.2) which introduces a new 
parameter for the TLS model. This branch is still highly experimental (for 
instance installation process is temporarily broken). I will fix this when 
things are less experimental. In the mean time if you want to try this branch 
you can workaround this error by removing the TLS parameter.

Original comment by zuzu...@gmail.com on 6 Nov 2012 at 6:18