question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building llvmlite requires LLVM 3.7.x. (but I have LLVM 3.8 and set the LLVM_CONFIG variable)

See original GitHub issue

I’m trying to run : python setup.py build in the llvmlite directory.

I get:

running build
got version from VCS {'version': '0.12.1', 'full': '0641dd9dde0d0653fbab109001baf39ddc08f466'}
running build_ext
/usr/bin/python /home/ubuntu/llvmlite/ffi/build.py
LLVM version... 3.8.1

Traceback (most recent call last):
  File "/home/ubuntu/llvmlite/ffi/build.py", line 152, in <module>
    main()
  File "/home/ubuntu/llvmlite/ffi/build.py", line 142, in main
    main_posix('linux', '.so')
  File "/home/ubuntu/llvmlite/ffi/build.py", line 119, in main_posix
    raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 3.7.x. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.

my environment variable is : LLVM_CONFIG=/usr/bin/llvm-config-3.8 . Other then the llvm-3.8 version I do not have any other version… What can I do?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kylemcdonaldcommented, Mar 3, 2017

Now llvmlite is up to speed with llvm 3.9, the most recent steps for OS X are:

$ brew install llvm
$ LLVM_CONFIG=""/usr/local/Cellar/llvm/3.9.1/bin/llvm-config"
$ pip install llvmlite
0reactions
metormcommented, Mar 15, 2017

@kylemcdonald

I did what you said above, but pip is still trying to use the llvm install by the system. What can I do?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dockerfile fails with llvm-config error for numba install
RuntimeError : Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got '3.7.1'. Reference - https://apt.llvm.org/.
Read more >
llvmlite Documentation - Read the Docs
A lightweight LLVM-Python binding for writing JIT compilers llvmlite provides a Python binding to LLVM for use in Numba.
Read more >
Building LLVM with CMake — LLVM 16.0.0git documentation
This section explains basic aspects of CMake which you may need in your ... You can set a variable after the initial CMake...
Read more >
Dockerfile fails with llvm-config error for numba install-docker
Used version 8, because got an error with the latest llvm version - RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got...
Read more >
Installation — llvmlite 0.40.0dev0-48-ged0f625-dirty ...
As mentioned above, building LLVM for llvmlite is challenging. ... This mitigates the need for a LLVM based binary wheel.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found