[Mesa-dev] [Clover] Compilations error with latest LLVM version 4.0.0svn in llvm/codegen/bitcode.cpp

Dieter Nützel Dieter at nuetzel-hh.de
Mon Nov 14 03:40:44 UTC 2016


Hello Francisco,

next little change needed.

Thanks,
Dieter

make[4]: Entering directory 
'/opt/mesa/src/gallium/state_trackers/clover'
   CXX      llvm/codegen/libclllvm_la-bitcode.lo
llvm/codegen/bitcode.cpp: In function 'std::unique_ptr<llvm::Module> 
clover::llvm::parse_module_library(const clover::module&, 
llvm::LLVMContext&, std::string&)':
llvm/codegen/bitcode.cpp:102:50: error: 'class 
llvm::Expected<std::unique_ptr<llvm::Module> >' has no member named 
'getError'
        fail(r_log, error(CL_INVALID_PROGRAM), mod.getError().message());
                                                   ^
In file included from ./llvm/metadata.hpp:31:0,
                  from llvm/codegen/bitcode.cpp:35:
./llvm/compat.hpp: At global scope:
./llvm/compat.hpp:157:21: warning: 
'clover::llvm::compat::default_reloc_model' defined but not used 
[-Wunused-variable]
           const auto default_reloc_model = ::llvm::None;
                      ^
Makefile:900: recipe for target 'llvm/codegen/libclllvm_la-bitcode.lo' 
failed
make[4]: *** [llvm/codegen/libclllvm_la-bitcode.lo] Error 1


More information about the mesa-dev mailing list