[Mesa-dev] cant build mesa against current llvm(3.6 git)
Roland Scheidegger
sroland at vmware.com
Tue Aug 19 18:43:05 PDT 2014
Am 19.08.2014 23:29, schrieb Enrico Horn:
> Hi everyone,
> tried to build mesa just now with llvm from git and get the following error:
>
> gallivm/lp_bld_misc.cpp: In function 'LLVMBool
> lp_build_create_jit_compiler_for_module(LLVMOpaqueExecutionEngine**,
> lp_generated_code**, LLVMModuleRef, unsigned int, int, char**)':
> gallivm/lp_bld_misc.cpp:424:35: error: no matching function for call to
> 'llvm::EngineBuilder::EngineBuilder(llvm::Module*)'
> gallivm/lp_bld_misc.cpp:424:35: note: candidates are:
> In file included from gallivm/lp_bld_misc.cpp:56:0:
> /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:554:3: note:
> llvm::EngineBuilder::EngineBuilder(std::unique_ptr<llvm::Module>)
> /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:554:3: note: no
> known conversion for argument 1 from 'llvm::Module*' to
> 'std::unique_ptr<llvm::Module>'
> /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:531:7: note:
> llvm::EngineBuilder::EngineBuilder(llvm::EngineBuilder&&)
> /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:531:7: note: no
> known conversion for argument 1 from 'llvm::Module*' to
> 'llvm::EngineBuilder&&'
>
> Is this a known problem?
> And is there a workaround?
>
> Thanks in advance
> Enrico
Well, known problem, now yes. Happens about twice a month or so though
due to changes in the (unstable) llvm c++ api.
If you want, you could try to figure out what llvm change caused this
and how things need to be done now (usually it's not all that difficult
to fix).
The policy is things should build with released llvm versions (at least
3.1, though some drivers might require newer versions), plus current
master llvm but as said this of course requires someone to update mesa
whenever things change there.
Or you can just wait until someone else fixes it, usually doesn't take
too long ;-).
Roland
More information about the mesa-dev
mailing list