llvmlite installation on aarch64

0 views
Skip to first unread message

Mr Marley

unread,
May 5, 2016, 1:05:29 AM5/5/16
to Numba Public Discussion - Public
I am trying to install numba on odroid c2 (64bit arm) for some development. 

I run the following command:

pip install --egg git+git://github.com/numba/llvmlite

 

 and get the following error:

    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

    ----------------------------------------
 

any help would be appreciated.


Antoine Pitrou

unread,
May 5, 2016, 3:51:10 AM5/5/16
to numba...@continuum.io
On Wed, 4 May 2016 22:05:29 -0700 (PDT)
Mr Marley <erib...@gmail.com> wrote:
> I am trying to install numba on odroid c2 (64bit arm) for some development.

As mentioned in the documentation:
http://llvmlite.pydata.org/en/latest/install/index.html#prerequisites-unix

you need LLVM 3.7, not 3.8.


Mr Marley

unread,
May 7, 2016, 12:34:35 PM5/7/16
to Numba Public Discussion - Public
Thanks, installed no problem.  I agree that was a moment of idiocy on my part.
Reply all
Reply to author
Forward
0 new messages