Hi;

I am using llvm 3.2 with libnvvm . However when i try to build julia using 
those 2 flags :
USE_SYSTEM_LLVM = 1
USE_LLVM_SHLIB     = 1

I have a bunch of errors. starting as following:

codegen.cpp: In function ‘void jl_init_codegen()’:
codegen.cpp:4886:26: error: ‘getProcessTriple’ is not a member of 
‘llvm::sys’
         Triple TheTriple(sys::getProcessTriple()); // *llvm32 doesn't have 
this one instead it has getDefaultTargetTriple()*
                          ^
codegen.cpp:4919:5: error: ‘mbuilder’ was not declared in this scope
     mbuilder = new MDBuilder(getGlobalContext());  //  *include 
<llvm/MDBuilder.h> would fix this*
     ^
codegen.cpp:4919:20: error: expected type-specifier before ‘MDBuilder’
     mbuilder = new MDBuilder(getGlobalContext());

Even you fix these errors, you keep hitting the following ones:
In file included from codegen.cpp:976:0:
intrinsics.cpp: In function ‘llvm::Value* emit_intrinsic(JL_I::intrinsic, 
jl_value_t**, size_t, jl_codectx_t*)’:
intrinsics.cpp:1158:72: error: ‘ceil’ is not a member of ‘llvm::Intrinsic’
         return builder.CreateCall(Intrinsic::getDeclaration(jl_Module, 
Intrinsic::ceil,



So is the master branch currently supporting llvm32? Or is there a patch 
somewhere?

Thanks

Reply via email to