[Mesa-dev] clover: compilation error with former LLVM 3.9.0svn and current LLVM 4.0.0svn

Dieter N├╝tzel Dieter at nuetzel-hh.de
Sun Jul 24 18:03:37 UTC 2016


/opt/opencl-example> llc --version
LLVM (http://llvm.org/):
   LLVM version 4.0.0svn
   Optimized build.
   Default target: x86_64-unknown-linux-gnu
   Host CPU: nehalem

   Registered Targets:
     amdgcn - AMD GCN GPUs
     r600   - AMD GPUs HD2XXX-HD6XXX
     x86    - 32-bit X86: Pentium-Pro and above
     x86-64 - 64-bit X86: EM64T and AMD64

make[4]: Entering directory 
'/opt/mesa/src/gallium/state_trackers/clover'
   CXX      llvm/codegen/libclllvm_la-native.lo
llvm/codegen/native.cpp: In function 'std::vector<char> 
{anonymous}::emit_code(llvm::Module&, const clover::llvm::target&, 
llvm::TargetMachine::CodeGenFileType, std::string&)':
llvm/codegen/native.cpp:129:52: error: invalid initialization of 
non-const reference of type 
'clover::llvm::compat::raw_ostream_to_emit_file {aka 
llvm::raw_svector_ostream&}' from an rvalue of type '<brace-enclosed 
initializer list>'
           compat::raw_ostream_to_emit_file fos { os };
                                                     ^
Makefile:914: recipe for target 'llvm/codegen/libclllvm_la-native.lo' 
failed
make[4]: *** [llvm/codegen/libclllvm_la-native.lo] Error 1
make[4]: Leaving directory '/opt/mesa/src/gallium/state_trackers/clover'
Makefile:594: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/opt/mesa/src/gallium'
Makefile:700: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/opt/mesa/src'
Makefile:574: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/mesa/src'
Makefile:640: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


More information about the mesa-dev mailing list