[Mesa-dev] [Clover] compilation error (WriteBitcodeToFile) with latest LLVM git version
Jan Vesely
jan.vesely at rutgers.edu
Thu Feb 15 02:11:23 UTC 2018
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.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180214/91baa468/attachment.sig>
More information about the mesa-dev
mailing list