-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error (symbol relocation) when installing from source #522
Comments
Yes, building from master. Just found #502 and am currently working around with CXXFLAGS. |
Great, if that doesn't work please shout. Also, wheels are up for 0.30.0. |
It'd be nice if EDIT: nvm, pip does that automatically if |
I second this issue. llvmlite won't build, not even when I run it with I'm trying to build this on FreeBSD. |
Also tried to build with pip from master ( can we pick up some speed on this, please? |
the workaround is to install the wheel package. pip will automatically build local wheels and use them to install sdist packages. nvm: the workaround only works for Linux sdist packages |
That is already done from the get-go. Whenever I install a venv, I start with Here's the output of
Sorry, didn't want to spam the issue with the entire output but it seems inevitable. |
the above line needs -fPIC. sorry got the issues mixed up. One is that setup.py only adds |
I realized this ... the problem is, it doesn't take the passed CXXFLAGS into account, not even with Exporting CXXFLAGS doesn't work either. |
@karolyi thanks for following up on this issue. Are you able to build it from a source clone at least? |
@esc hey, long time no see :) |
@karolyi 👋 My suggestion would be to obtain a clone and look at how |
I've attempted to build the llvmlite from source on an Ubuntu 18.04 instance. I'm building outside of Conda, following the directions in the docs— I've built llvm 8.0 with the supplied patches, which succeeded (but only after doing
export RECIPE_DIR=/path/to/llvmlite/conda-recipes/llvmdev
— that probably ought to be in the docs).I'm avoiding Conda because I need to deploy to virtualenv (many of them per machine), and I'm not familiar enough with Conda to figure out how to make them play together (assuming it's possible); the Conda docs seem to suggest that attempting this is brittle.
With
export LLVM_CONFIG=/path/to/my/patched/llvm8/bin/llvm-config
running eitherpython3 setup.py build
orpip3 install /path/to/local/llvmlite
(the latter being the deploy path for virtualenv) will fail with:If I follow the error and add
-fPIC
to the LDFLAGS ofllvmlite/ffi/Makefile.linux
, the build succeeds and passes tests.Is this something that should be patched or added to the docs, or am I bungling something? Is this the correct fix?
(Even better, if >=30.0 is expected to be available PyPI shortly, that would probably moot my problem).
thanks for any help!
The text was updated successfully, but these errors were encountered: