-
Notifications
You must be signed in to change notification settings - Fork 316
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
relocation R_X86_64_PC32 against symbol `_ZTVN4llvm11raw_ostreamE@@LLVM_7' can not be used #443
Comments
How are you getting llvm7? |
It's the package in the Debian archive [1]. Checked again, the problem appears with 0.27.0 and LLVM 7.0.1-3 [2]. |
One workaround to do this is to compile llvmlite by forcing the usage of
You might not see this on Ubuntu machines because -fPIC and -pie are set by default (https://wiki.ubuntu.com/SecurityTeam/PIE). I guess this needs to be fixed in llvmlite's setup.py somehow! |
I'm assuming these flags are not reported by |
That's llvm-config-7 running from the official Xenial docker and the llvm-7 binary from apt.llvm.org:
That's llvm-config-7 running on a Debian sid machine using the Debian sid package:
I'd say that, just in case, llvmlite should append this flag when compiling its extension under Linux systems! |
We fixed a long standing issue in LLVM https://bugs.llvm.org/show_bug.cgi?id=8220 And I took the fix in Debian + Ubuntu + apt.llvm.org to address it in llvm-toolchain-7 (the issue became more important as we moved to a stage2 build of llvm-toolchain) |
However adding -fPIC worked. I've patched ffi/build.py to recognize CXXFLAGS and LDFLAGS from the build environment. |
Thanks @sylvestre for the explanation, this makes more sense now :) And thanks @danstender for the fix! |
De rien! |
Welcome. LLVMlite is ready for Debian Buster then. But as a perspective, having this issue solved upstream would be preferable instead of keeping a delta. Would you like to include something like to recognize external env build flags if they are present/set? |
I am getting a similar error again using
|
Hi,
trying to build llvmlite 0.27.1rc1 this build break came up:
The text was updated successfully, but these errors were encountered: