linker.cpp: In lambda function:
linker.cpp:20:19: error: invalid use of incomplete type ‘const class llvm::DiagnosticInfo’
switch (DI.getSeverity()) {
^
In file included from /usr/lib/llvm-3.8/include/llvm/IR/Metadata.h:25:0,
from /usr/lib/llvm-3.8/include/llvm/IR/TrackingMDRef.h:17,
from /usr/lib/llvm-3.8/include/llvm/IR/DebugLoc.h:18,
from /usr/lib/llvm-3.8/include/llvm/IR/Instruction.h:20,
from /usr/lib/llvm-3.8/include/llvm/IR/BasicBlock.h:19,
from /usr/lib/llvm-3.8/include/llvm/IR/Function.h:25,
from /usr/lib/llvm-3.8/include/llvm/IR/Module.h:22,
from linker.cpp:2:
/usr/lib/llvm-3.8/include/llvm/IR/LLVMContext.h:30:7: note: forward declaration of ‘class llvm::DiagnosticInfo’
class DiagnosticInfo;
^
linker.cpp:21:14: error: ‘DS_Error’ was not declared in this scope
case DS_Error:
^
linker.cpp:22:14: error: ‘DS_Warning’ was not declared in this scope
case DS_Warning:
^
linker.cpp:23:14: error: ‘DS_Remark’ was not declared in this scope
case DS_Remark:
^
linker.cpp:24:14: error: ‘DS_Note’ was not declared in this scope
case DS_Note:
^
linker.cpp:29:11: error: invalid use of incomplete type ‘const class llvm::DiagnosticInfo’
DI.print(DP);
^
In file included from /usr/lib/llvm-3.8/include/llvm/IR/Metadata.h:25:0,
from /usr/lib/llvm-3.8/include/llvm/IR/TrackingMDRef.h:17,
from /usr/lib/llvm-3.8/include/llvm/IR/DebugLoc.h:18,
from /usr/lib/llvm-3.8/include/llvm/IR/Instruction.h:20,
from /usr/lib/llvm-3.8/include/llvm/IR/BasicBlock.h:19,
from /usr/lib/llvm-3.8/include/llvm/IR/Function.h:25,
from /usr/lib/llvm-3.8/include/llvm/IR/Module.h:22,
from linker.cpp:2:
/usr/lib/llvm-3.8/include/llvm/IR/LLVMContext.h:30:7: note: forward declaration of ‘class llvm::DiagnosticInfo’
class DiagnosticInfo;
^
linker.cpp: In function ‘int LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)’:
linker.cpp:33:19: error: ‘LinkModules’ is not a member of ‘llvm::Linker’
bool failed = Linker::LinkModules(unwrap(Dest), unwrap(Src), diagnose);
^
Makefile.linux:19: recipe for target 'libllvmlite.so' failed
make: *** [libllvmlite.so] Error 1
Traceback (most recent call last):
File "/tmp/pip-HCOkez-build/ffi/build.py", line 141, in <module>
main()
File "/tmp/pip-HCOkez-build/ffi/build.py", line 131, in main
main_posix('linux', '.so')
File "/tmp/pip-HCOkez-build/ffi/build.py", line 123, in main_posix
subprocess.check_call(['make', '-f', makefile])
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.linux']' returned non-zero exit status 2
error: command '/usr/bin/python' failed with exit status 1
----------------------------------------