Advertisement
farry

numba-errors

Jan 23rd, 2016
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.39 KB | None | 0 0
  1. pip install numba
  2. Requirement already satisfied (use --upgrade to upgrade): numba in /usr/local/lib/python2.7/dist-packages
  3. Downloading/unpacking llvmlite (from numba)
  4. Downloading llvmlite-0.8.0.tar.gz (80kB): 80kB downloaded
  5. Running setup.py (path:/tmp/pip-build-eLqq2N/llvmlite/setup.py) egg_info for package llvmlite
  6.  
  7. Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from numba)
  8. Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/dist-packages (from numba)
  9. Downloading/unpacking singledispatch (from numba)
  10. Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
  11. Downloading/unpacking funcsigs (from numba)
  12. Downloading funcsigs-0.4-py2.py3-none-any.whl
  13. Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from singledispatch->numba)
  14. Installing collected packages: llvmlite, singledispatch, funcsigs
  15. Running setup.py install for llvmlite
  16. got version from file /tmp/pip-build-eLqq2N/llvmlite/llvmlite/_version.py {'version': '0.8.0', 'full': 'cb57c3dc90efd291822e07839caee2cfebfff5d4'}
  17. /usr/bin/python /tmp/pip-build-eLqq2N/llvmlite/ffi/build.py
  18. LLVM version... 3.5.0
  19. # static-libstdc++ avoids runtime dependencies on a
  20. # particular libstdc++ version.
  21. g++ -static-libstdc++ -shared -flto `llvm-config --cxxflags` -fno-rtti -g assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp linker.cpp -o libllvmlite.so -flto `llvm-config --ldflags` -Wl,--exclude-libs=ALL `llvm-config --system-libs --libs all`
  22. assembly.cpp: In function ‘LLVMOpaqueModule* LLVMPY_ParseAssembly(LLVMContextRef, const char*, const char**)’:
  23. assembly.cpp:25:64: error: ‘parseAssemblyString’ was not declared in this scope
  24. Module *m = parseAssemblyString(ir, error, *unwrap(context)).release();
  25. ^
  26. bitcode.cpp: In function ‘void LLVMPY_WriteBitcodeToString(LLVMModuleRef, const char**, size_t*)’:
  27. bitcode.cpp:13:62: error: ‘LLVMWriteBitcodeToMemoryBuffer’ was not declared in this scope
  28. LLVMMemoryBufferRef MB = LLVMWriteBitcodeToMemoryBuffer(M);
  29. ^
  30. core.cpp: In function ‘void LLVMPY_SetCommandLine(const char*, const char*)’:
  31. core.cpp:36:46: error: ‘LLVMParseCommandLineOptions’ was not declared in this scope
  32. LLVMParseCommandLineOptions(2, argv, NULL);
  33. ^
  34. module.cpp: In function ‘LLVMOpaqueModule* LLVMPY_CloneModule(LLVMModuleRef)’:
  35. module.cpp:223:29: error: ‘LLVMCloneModule’ was not declared in this scope
  36. return LLVMCloneModule(M);
  37. ^
  38. executionengine.cpp: In function ‘LLVMOpaqueExecutionEngine* create_execution_engine(LLVMModuleRef, LLVMTargetMachineRef, char**)’:
  39. executionengine.cpp:72:74: error: no matching function for call to ‘llvm::EngineBuilder::EngineBuilder(std::unique_ptr<llvm::Module>)’
  40. llvm::EngineBuilder eb(std::unique_ptr<llvm::Module>(llvm::unwrap(M)));
  41. ^
  42. executionengine.cpp:72:74: note: candidates are:
  43. In file included from executionengine.cpp:6:0:
  44. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:594:3: note: llvm::EngineBuilder::EngineBuilder(llvm::Module*)
  45. EngineBuilder(Module *m) : M(m) {
  46. ^
  47. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:594:3: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘llvm::Module*’
  48. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: llvm::EngineBuilder::EngineBuilder(const llvm::EngineBuilder&)
  49. class EngineBuilder {
  50. ^
  51. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘const llvm::EngineBuilder&’
  52. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: llvm::EngineBuilder::EngineBuilder(llvm::EngineBuilder&&)
  53. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘llvm::EngineBuilder&&’
  54. executionengine.cpp: In function ‘uint64_t LLVMPY_GetGlobalValueAddress(LLVMExecutionEngineRef, const char*)’:
  55. executionengine.cpp:107:46: error: ‘LLVMGetGlobalValueAddress’ was not declared in this scope
  56. return LLVMGetGlobalValueAddress(EE, Name);
  57. ^
  58. executionengine.cpp: In function ‘uint64_t LLVMPY_GetFunctionAddress(LLVMExecutionEngineRef, const char*)’:
  59. executionengine.cpp:114:43: error: ‘LLVMGetFunctionAddress’ was not declared in this scope
  60. return LLVMGetFunctionAddress(EE, Name);
  61. ^
  62. executionengine.cpp: At global scope:
  63. executionengine.cpp:187:45: error: ‘llvm::MemoryBufferRef’ has not been declared
  64. llvm::MemoryBufferRef MBR)
  65. ^
  66. executionengine.cpp:200:49: error: conflicting return type specified for ‘virtual std::unique_ptr<llvm::MemoryBuffer> LLVMPYObjectCache::getObject(const llvm::Module*)’
  67. virtual std::unique_ptr<llvm::MemoryBuffer> getObject(const llvm::Module* M)
  68. ^
  69. In file included from executionengine.cpp:8:0:
  70. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:36:25: error: overriding ‘virtual llvm::MemoryBuffer* llvm::ObjectCache::getObject(const llvm::Module*)’
  71. virtual MemoryBuffer* getObject(const Module* M) = 0;
  72. ^
  73. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:30:16: warning: ‘virtual void llvm::ObjectCache::notifyObjectCompiled(const llvm::Module*, const llvm::MemoryBuffer*)’ was hidden [-Woverloaded-virtual]
  74. virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) = 0;
  75. ^
  76. executionengine.cpp:186:18: warning: by ‘virtual void LLVMPYObjectCache::notifyObjectCompiled(const llvm::Module*, int)’ [-Woverloaded-virtual]
  77. virtual void notifyObjectCompiled(const llvm::Module *M,
  78. ^
  79. executionengine.cpp: In member function ‘virtual void LLVMPYObjectCache::notifyObjectCompiled(const llvm::Module*, int)’:
  80. executionengine.cpp:191:42: error: request for member ‘getBufferStart’ in ‘MBR’, which is of non-class type ‘int’
  81. MBR.getBufferStart(),
  82. ^
  83. executionengine.cpp:192:42: error: request for member ‘getBufferSize’ in ‘MBR’, which is of non-class type ‘int’
  84. MBR.getBufferSize() };
  85. ^
  86. executionengine.cpp: In member function ‘virtual std::unique_ptr<llvm::MemoryBuffer> LLVMPYObjectCache::getObject(const llvm::Module*)’:
  87. executionengine.cpp:211:21: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<llvm::MemoryBuffer>’ and ‘llvm::MemoryBuffer*’)
  88. res = llvm::MemoryBuffer::getMemBufferCopy(
  89. ^
  90. executionengine.cpp:211:21: note: candidates are:
  91. In file included from /usr/include/c++/4.9/memory:81:0,
  92. from /usr/lib/llvm-3.5/include/llvm/ADT/SmallVector.h:28,
  93. from /usr/lib/llvm-3.5/include/llvm/IR/DataLayout.h:24,
  94. from /usr/lib/llvm-3.5/include/llvm/IR/Module.h:20,
  95. from executionengine.cpp:5:
  96. /usr/include/c++/4.9/bits/unique_ptr.h:249:7: note: std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>]
  97. operator=(unique_ptr&& __u) noexcept
  98. ^
  99. /usr/include/c++/4.9/bits/unique_ptr.h:249:7: note: no known conversion for argument 1 from ‘llvm::MemoryBuffer*’ to ‘std::unique_ptr<llvm::MemoryBuffer>&&’
  100. /usr/include/c++/4.9/bits/unique_ptr.h:269:2: note: template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::unique_ptr<_Tp, _Dp>::_Pointer::type>, std::__not_<std::is_array<_Up> > >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>]
  101. operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
  102. ^
  103. /usr/include/c++/4.9/bits/unique_ptr.h:269:2: note: template argument deduction/substitution failed:
  104. executionengine.cpp:211:21: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘llvm::MemoryBuffer*’
  105. res = llvm::MemoryBuffer::getMemBufferCopy(
  106. ^
  107. In file included from /usr/include/c++/4.9/memory:81:0,
  108. from /usr/lib/llvm-3.5/include/llvm/ADT/SmallVector.h:28,
  109. from /usr/lib/llvm-3.5/include/llvm/IR/DataLayout.h:24,
  110. from /usr/lib/llvm-3.5/include/llvm/IR/Module.h:20,
  111. from executionengine.cpp:5:
  112. /usr/include/c++/4.9/bits/unique_ptr.h:278:7: note: std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>; std::nullptr_t = std::nullptr_t]
  113. operator=(nullptr_t) noexcept
  114. ^
  115. /usr/include/c++/4.9/bits/unique_ptr.h:278:7: note: no known conversion for argument 1 from ‘llvm::MemoryBuffer*’ to ‘std::nullptr_t’
  116. executionengine.cpp: In function ‘LLVMPYObjectCache* LLVMPY_CreateObjectCache(ObjectCacheNotifyFunc, ObjectCacheGetObjectFunc, void*)’:
  117. executionengine.cpp:233:72: error: invalid new-expression of abstract class type ‘LLVMPYObjectCache’
  118. return new LLVMPYObjectCache(notify_func, getobject_func, user_data);
  119. ^
  120. executionengine.cpp:176:7: note: because the following virtual functions are pure within ‘LLVMPYObjectCache’:
  121. class LLVMPYObjectCache : public llvm::ObjectCache {
  122. ^
  123. In file included from executionengine.cpp:8:0:
  124. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:30:16: note: virtual void llvm::ObjectCache::notifyObjectCompiled(const llvm::Module*, const llvm::MemoryBuffer*)
  125. virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) = 0;
  126. ^
  127. linker.cpp: In function ‘int LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)’:
  128. linker.cpp:19:32: error: ‘DiagnosticInfo’ does not name a type
  129. auto diagnose = [&] (const DiagnosticInfo &DI) {
  130. ^
  131. linker.cpp:30:6: error: expected ‘)’ before ‘;’ token
  132. };
  133. ^
  134. linker.cpp: In lambda function:
  135. linker.cpp:30:6: error: expected ‘{’ before ‘;’ token
  136. linker.cpp: In function ‘int LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)’:
  137. linker.cpp:32:34: error: ‘LLVMCloneModule’ was not declared in this scope
  138. Src = LLVMCloneModule(Src);
  139. ^
  140. linker.cpp:33:74: error: no matching function for call to ‘llvm::Linker::LinkModules(llvm::Module*, llvm::Module*, LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)::<lambda(int)>&)’
  141. bool failed = Linker::LinkModules(unwrap(Dest), unwrap(Src), diagnose);
  142. ^
  143. linker.cpp:33:74: note: candidate is:
  144. In file included from linker.cpp:4:0:
  145. /usr/lib/llvm-3.5/include/llvm/Linker/Linker.h:51:17: note: static bool llvm::Linker::LinkModules(llvm::Module*, llvm::Module*, unsigned int, std::string*)
  146. static bool LinkModules(Module *Dest, Module *Src, unsigned Mode,
  147. ^
  148. /usr/lib/llvm-3.5/include/llvm/Linker/Linker.h:51:17: note: candidate expects 4 arguments, 3 provided
  149. Makefile.linux:17: recipe for target 'libllvmlite.so' failed
  150. make: *** [libllvmlite.so] Error 1
  151. Traceback (most recent call last):
  152. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 114, in <module>
  153. main()
  154. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 104, in main
  155. main_posix('linux', '.so')
  156. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 96, in main_posix
  157. subprocess.check_call(['make', '-f', makefile])
  158. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  159. raise CalledProcessError(retcode, cmd)
  160. subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.linux']' returned non-zero exit status 2
  161. error: command '/usr/bin/python' failed with exit status 1
  162. Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-eLqq2N/llvmlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WnfRkO-record/install-record.txt --single-version-externally-managed --compile:
  163. running install
  164.  
  165. running build
  166.  
  167. got version from file /tmp/pip-build-eLqq2N/llvmlite/llvmlite/_version.py {'version': '0.8.0', 'full': 'cb57c3dc90efd291822e07839caee2cfebfff5d4'}
  168.  
  169. running build_ext
  170.  
  171. /usr/bin/python /tmp/pip-build-eLqq2N/llvmlite/ffi/build.py
  172.  
  173. LLVM version... 3.5.0
  174.  
  175. # static-libstdc++ avoids runtime dependencies on a
  176.  
  177. # particular libstdc++ version.
  178.  
  179. g++ -static-libstdc++ -shared -flto `llvm-config --cxxflags` -fno-rtti -g assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp linker.cpp -o libllvmlite.so -flto `llvm-config --ldflags` -Wl,--exclude-libs=ALL `llvm-config --system-libs --libs all`
  180.  
  181. assembly.cpp: In function ‘LLVMOpaqueModule* LLVMPY_ParseAssembly(LLVMContextRef, const char*, const char**)’:
  182.  
  183. assembly.cpp:25:64: error: ‘parseAssemblyString’ was not declared in this scope
  184.  
  185. Module *m = parseAssemblyString(ir, error, *unwrap(context)).release();
  186.  
  187. ^
  188.  
  189. bitcode.cpp: In function ‘void LLVMPY_WriteBitcodeToString(LLVMModuleRef, const char**, size_t*)’:
  190.  
  191. bitcode.cpp:13:62: error: ‘LLVMWriteBitcodeToMemoryBuffer’ was not declared in this scope
  192.  
  193. LLVMMemoryBufferRef MB = LLVMWriteBitcodeToMemoryBuffer(M);
  194.  
  195. ^
  196.  
  197. core.cpp: In function ‘void LLVMPY_SetCommandLine(const char*, const char*)’:
  198.  
  199. core.cpp:36:46: error: ‘LLVMParseCommandLineOptions’ was not declared in this scope
  200.  
  201. LLVMParseCommandLineOptions(2, argv, NULL);
  202.  
  203. ^
  204.  
  205. module.cpp: In function ‘LLVMOpaqueModule* LLVMPY_CloneModule(LLVMModuleRef)’:
  206.  
  207. module.cpp:223:29: error: ‘LLVMCloneModule’ was not declared in this scope
  208.  
  209. return LLVMCloneModule(M);
  210.  
  211. ^
  212.  
  213. executionengine.cpp: In function ‘LLVMOpaqueExecutionEngine* create_execution_engine(LLVMModuleRef, LLVMTargetMachineRef, char**)’:
  214.  
  215. executionengine.cpp:72:74: error: no matching function for call to ‘llvm::EngineBuilder::EngineBuilder(std::unique_ptr<llvm::Module>)’
  216.  
  217. llvm::EngineBuilder eb(std::unique_ptr<llvm::Module>(llvm::unwrap(M)));
  218.  
  219. ^
  220.  
  221. executionengine.cpp:72:74: note: candidates are:
  222.  
  223. In file included from executionengine.cpp:6:0:
  224.  
  225. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:594:3: note: llvm::EngineBuilder::EngineBuilder(llvm::Module*)
  226.  
  227. EngineBuilder(Module *m) : M(m) {
  228.  
  229. ^
  230.  
  231. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:594:3: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘llvm::Module*’
  232.  
  233. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: llvm::EngineBuilder::EngineBuilder(const llvm::EngineBuilder&)
  234.  
  235. class EngineBuilder {
  236.  
  237. ^
  238.  
  239. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘const llvm::EngineBuilder&’
  240.  
  241. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: llvm::EngineBuilder::EngineBuilder(llvm::EngineBuilder&&)
  242.  
  243. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ExecutionEngine.h:570:7: note: no known conversion for argument 1 from ‘std::unique_ptr<llvm::Module>’ to ‘llvm::EngineBuilder&&’
  244.  
  245. executionengine.cpp: In function ‘uint64_t LLVMPY_GetGlobalValueAddress(LLVMExecutionEngineRef, const char*)’:
  246.  
  247. executionengine.cpp:107:46: error: ‘LLVMGetGlobalValueAddress’ was not declared in this scope
  248.  
  249. return LLVMGetGlobalValueAddress(EE, Name);
  250.  
  251. ^
  252.  
  253. executionengine.cpp: In function ‘uint64_t LLVMPY_GetFunctionAddress(LLVMExecutionEngineRef, const char*)’:
  254.  
  255. executionengine.cpp:114:43: error: ‘LLVMGetFunctionAddress’ was not declared in this scope
  256.  
  257. return LLVMGetFunctionAddress(EE, Name);
  258.  
  259. ^
  260.  
  261. executionengine.cpp: At global scope:
  262.  
  263. executionengine.cpp:187:45: error: ‘llvm::MemoryBufferRef’ has not been declared
  264.  
  265. llvm::MemoryBufferRef MBR)
  266.  
  267. ^
  268.  
  269. executionengine.cpp:200:49: error: conflicting return type specified for ‘virtual std::unique_ptr<llvm::MemoryBuffer> LLVMPYObjectCache::getObject(const llvm::Module*)’
  270.  
  271. virtual std::unique_ptr<llvm::MemoryBuffer> getObject(const llvm::Module* M)
  272.  
  273. ^
  274.  
  275. In file included from executionengine.cpp:8:0:
  276.  
  277. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:36:25: error: overriding ‘virtual llvm::MemoryBuffer* llvm::ObjectCache::getObject(const llvm::Module*)’
  278.  
  279. virtual MemoryBuffer* getObject(const Module* M) = 0;
  280.  
  281. ^
  282.  
  283. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:30:16: warning: ‘virtual void llvm::ObjectCache::notifyObjectCompiled(const llvm::Module*, const llvm::MemoryBuffer*)’ was hidden [-Woverloaded-virtual]
  284.  
  285. virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) = 0;
  286.  
  287. ^
  288.  
  289. executionengine.cpp:186:18: warning: by ‘virtual void LLVMPYObjectCache::notifyObjectCompiled(const llvm::Module*, int)’ [-Woverloaded-virtual]
  290.  
  291. virtual void notifyObjectCompiled(const llvm::Module *M,
  292.  
  293. ^
  294.  
  295. executionengine.cpp: In member function ‘virtual void LLVMPYObjectCache::notifyObjectCompiled(const llvm::Module*, int)’:
  296.  
  297. executionengine.cpp:191:42: error: request for member ‘getBufferStart’ in ‘MBR’, which is of non-class type ‘int’
  298.  
  299. MBR.getBufferStart(),
  300.  
  301. ^
  302.  
  303. executionengine.cpp:192:42: error: request for member ‘getBufferSize’ in ‘MBR’, which is of non-class type ‘int’
  304.  
  305. MBR.getBufferSize() };
  306.  
  307. ^
  308.  
  309. executionengine.cpp: In member function ‘virtual std::unique_ptr<llvm::MemoryBuffer> LLVMPYObjectCache::getObject(const llvm::Module*)’:
  310.  
  311. executionengine.cpp:211:21: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<llvm::MemoryBuffer>’ and ‘llvm::MemoryBuffer*’)
  312.  
  313. res = llvm::MemoryBuffer::getMemBufferCopy(
  314.  
  315. ^
  316.  
  317. executionengine.cpp:211:21: note: candidates are:
  318.  
  319. In file included from /usr/include/c++/4.9/memory:81:0,
  320.  
  321. from /usr/lib/llvm-3.5/include/llvm/ADT/SmallVector.h:28,
  322.  
  323. from /usr/lib/llvm-3.5/include/llvm/IR/DataLayout.h:24,
  324.  
  325. from /usr/lib/llvm-3.5/include/llvm/IR/Module.h:20,
  326.  
  327. from executionengine.cpp:5:
  328.  
  329. /usr/include/c++/4.9/bits/unique_ptr.h:249:7: note: std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>]
  330.  
  331. operator=(unique_ptr&& __u) noexcept
  332.  
  333. ^
  334.  
  335. /usr/include/c++/4.9/bits/unique_ptr.h:249:7: note: no known conversion for argument 1 from ‘llvm::MemoryBuffer*’ to ‘std::unique_ptr<llvm::MemoryBuffer>&&’
  336.  
  337. /usr/include/c++/4.9/bits/unique_ptr.h:269:2: note: template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::unique_ptr<_Tp, _Dp>::_Pointer::type>, std::__not_<std::is_array<_Up> > >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>]
  338.  
  339. operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
  340.  
  341. ^
  342.  
  343. /usr/include/c++/4.9/bits/unique_ptr.h:269:2: note: template argument deduction/substitution failed:
  344.  
  345. executionengine.cpp:211:21: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘llvm::MemoryBuffer*’
  346.  
  347. res = llvm::MemoryBuffer::getMemBufferCopy(
  348.  
  349. ^
  350.  
  351. In file included from /usr/include/c++/4.9/memory:81:0,
  352.  
  353. from /usr/lib/llvm-3.5/include/llvm/ADT/SmallVector.h:28,
  354.  
  355. from /usr/lib/llvm-3.5/include/llvm/IR/DataLayout.h:24,
  356.  
  357. from /usr/lib/llvm-3.5/include/llvm/IR/Module.h:20,
  358.  
  359. from executionengine.cpp:5:
  360.  
  361. /usr/include/c++/4.9/bits/unique_ptr.h:278:7: note: std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = llvm::MemoryBuffer; _Dp = std::default_delete<llvm::MemoryBuffer>; std::nullptr_t = std::nullptr_t]
  362.  
  363. operator=(nullptr_t) noexcept
  364.  
  365. ^
  366.  
  367. /usr/include/c++/4.9/bits/unique_ptr.h:278:7: note: no known conversion for argument 1 from ‘llvm::MemoryBuffer*’ to ‘std::nullptr_t’
  368.  
  369. executionengine.cpp: In function ‘LLVMPYObjectCache* LLVMPY_CreateObjectCache(ObjectCacheNotifyFunc, ObjectCacheGetObjectFunc, void*)’:
  370.  
  371. executionengine.cpp:233:72: error: invalid new-expression of abstract class type ‘LLVMPYObjectCache’
  372.  
  373. return new LLVMPYObjectCache(notify_func, getobject_func, user_data);
  374.  
  375. ^
  376.  
  377. executionengine.cpp:176:7: note: because the following virtual functions are pure within ‘LLVMPYObjectCache’:
  378.  
  379. class LLVMPYObjectCache : public llvm::ObjectCache {
  380.  
  381. ^
  382.  
  383. In file included from executionengine.cpp:8:0:
  384.  
  385. /usr/lib/llvm-3.5/include/llvm/ExecutionEngine/ObjectCache.h:30:16: note: virtual void llvm::ObjectCache::notifyObjectCompiled(const llvm::Module*, const llvm::MemoryBuffer*)
  386.  
  387. virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) = 0;
  388.  
  389. ^
  390.  
  391. linker.cpp: In function ‘int LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)’:
  392.  
  393. linker.cpp:19:32: error: ‘DiagnosticInfo’ does not name a type
  394.  
  395. auto diagnose = [&] (const DiagnosticInfo &DI) {
  396.  
  397. ^
  398.  
  399. linker.cpp:30:6: error: expected ‘)’ before ‘;’ token
  400.  
  401. };
  402.  
  403. ^
  404.  
  405. linker.cpp: In lambda function:
  406.  
  407. linker.cpp:30:6: error: expected ‘{’ before ‘;’ token
  408.  
  409. linker.cpp: In function ‘int LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)’:
  410.  
  411. linker.cpp:32:34: error: ‘LLVMCloneModule’ was not declared in this scope
  412.  
  413. Src = LLVMCloneModule(Src);
  414.  
  415. ^
  416.  
  417. linker.cpp:33:74: error: no matching function for call to ‘llvm::Linker::LinkModules(llvm::Module*, llvm::Module*, LLVMPY_LinkModules(LLVMModuleRef, LLVMModuleRef, int, const char**)::<lambda(int)>&)’
  418.  
  419. bool failed = Linker::LinkModules(unwrap(Dest), unwrap(Src), diagnose);
  420.  
  421. ^
  422.  
  423. linker.cpp:33:74: note: candidate is:
  424.  
  425. In file included from linker.cpp:4:0:
  426.  
  427. /usr/lib/llvm-3.5/include/llvm/Linker/Linker.h:51:17: note: static bool llvm::Linker::LinkModules(llvm::Module*, llvm::Module*, unsigned int, std::string*)
  428.  
  429. static bool LinkModules(Module *Dest, Module *Src, unsigned Mode,
  430.  
  431. ^
  432.  
  433. /usr/lib/llvm-3.5/include/llvm/Linker/Linker.h:51:17: note: candidate expects 4 arguments, 3 provided
  434.  
  435. Makefile.linux:17: recipe for target 'libllvmlite.so' failed
  436.  
  437. make: *** [libllvmlite.so] Error 1
  438.  
  439. Traceback (most recent call last):
  440.  
  441. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 114, in <module>
  442.  
  443. main()
  444.  
  445. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 104, in main
  446.  
  447. main_posix('linux', '.so')
  448.  
  449. File "/tmp/pip-build-eLqq2N/llvmlite/ffi/build.py", line 96, in main_posix
  450.  
  451. subprocess.check_call(['make', '-f', makefile])
  452.  
  453. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  454.  
  455. raise CalledProcessError(retcode, cmd)
  456.  
  457. subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.linux']' returned non-zero exit status 2
  458.  
  459. error: command '/usr/bin/python' failed with exit status 1
  460.  
  461. ----------------------------------------
  462. Cleaning up...
  463. Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-eLqq2N/llvmlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WnfRkO-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-eLqq2N/llvmlite
  464. Traceback (most recent call last):
  465. File "/usr/local/bin/pip", line 11, in <module>
  466. sys.exit(main())
  467. File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
  468. return command.main(cmd_args)
  469. File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
  470. text = '\n'.join(complete_log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement