-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"fixed" static linking of libllvm and julia #41276
Conversation
Thank you so much for this fix! |
I believe we want this perhaps to be controlled by a build flag and not change this globally for everyone. |
This will break quite a few Julia packages such as LLVM.jl and it's dependent's. Can I ask where you got Julia from/how you built it? We are using symbol versioning to prevent Julia's LLVM to conflict with a system LLVM, but I have seen other build configurations ignoring the necessary flags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There a users who depend on the dynamic library built so I don't think we can do this generally.
In particular see #39390 |
Just adding a Do Not Merge label to caution against merging until the issues are discussed and sorted. |
But this doesn't change things globally and only for |
If |
I've downloaded the versions from the homepage. Building I've done like described on the webpage / README files.
Then trying I've used the quite old version 1.5.4 since our stuff is tested on this version. I think this should also work with the most recent version. |
Did you only try 1.5 or also 1.6? Can you post the seqfault? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does llvm-config --system-libs
not include pthread
?
With the default BB build, it does not. With this branch and
|
|
Hi,
I'm not a professional make file creator, so this will be a not optimal solution. But it worked in my case: I had the problem running julia together with python + numba. Which always died with a seg fault. Since julia's version of llvm isn't compatible with the versions of numba (llvmlite); Even when you use the exact same versions, at least on linux.
I tested: numba 0.53 + llvmlite 0.36 (libllvm10) and julia 1.6.1 -> seg fault.
Next try: numba 0.50.1 + llvmlite 0.33 (libllvm9 9.0.1) and julia 1.5.4 (libllvm9 9.0.1jl) -> seg fault.
Only solution, static compilation of julia 1.5.4 which is broken, but this pr fixed it for my setup (similar to #32665).
BR