On Thu, 2018-02-15 at 01:18 +0100, Dieter Nützel wrote:
> Hello Jan,
> 
> new compilation error with latest LLVM git (7.0.0).
> Without --enable-opencl build is fine.
> 
> make[4]: Verzeichnis „/opt/mesa/src/gallium/state_trackers/clover“ wird 
> betreten
>    CXX      llvm/codegen/libclllvm_la-bitcode.lo
> llvm/codegen/bitcode.cpp: In function ‘std::vector<char> 
> {anonymous}::emit_code(const llvm::Module&)’:
> llvm/codegen/bitcode.cpp:69:26: error: invalid initialization of 
> reference of type ‘const llvm::Module&’ from expression of type ‘const 
> llvm::Module*’
>         WriteBitcodeToFile(&mod, os);
>                            ^~~~
> In file included from llvm/codegen/bitcode.cpp:45:0:
> /usr/local/include/llvm/Bitcode/BitcodeWriter.h:129:8: note: in passing 
> argument 1 of ‘void llvm::WriteBitcodeToFile(const llvm::Module&, 
> llvm::raw_ostream&, bool, const llvm::ModuleSummaryIndex*, bool, 
> llvm::ModuleHash*)’
>     void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
>          ^~~~~~~~~~~~~~~~~~
> llvm/codegen/bitcode.cpp: At global scope:
> llvm/codegen/bitcode.cpp:54:4: warning: 
> ‘std::map<std::__cxx11::basic_string<char>, unsigned int> 
> {anonymous}::get_symbol_offsets(const llvm::Module&)’ defined but not 
> used [-Wunused-function]
>      get_symbol_offsets(const ::llvm::Module &mod) {
>      ^~~~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:913: llvm/codegen/libclllvm_la-bitcode.lo] Fehler 
> 1
> make[4]: Verzeichnis „/opt/mesa/src/gallium/state_trackers/clover“ wird 
> verlassen
> make[3]: *** [Makefile:611: all-recursive] Fehler 1
> make[3]: Verzeichnis „/opt/mesa/src/gallium“ wird verlassen
> make[2]: *** [Makefile:862: all-recursive] Fehler 1
> make[2]: Verzeichnis „/opt/mesa/src“ wird verlassen
> make[1]: *** [Makefile:653: all] Fehler 2
> make[1]: Verzeichnis „/opt/mesa/src“ wird verlassen
> make: *** [Makefile:666: all-recursive] Fehler 1
> 6.692u 0.608s 0:07.19 101.3%    0+0k 0+8io 0pf+0w

looks like fallout from llvm r325155.
I'll take stab at fixing it tomorrow unless someone beats me to it.

Jan

> 
> Thanks,
> Dieter

-- 
Jan Vesely <jan.ves...@rutgers.edu>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to