-
-
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
Conflict between Julia's LLVM and system LLVM on FreeBSD #32462
Comments
An MWE on FreeBSD: julia> using Libdl
julia> Libdl.dlopen("/usr/local/lib/dri/r600_dri.so")
ERROR: could not load library "/usr/local/lib/dri/r600_dri.so"
/data/usr/home/iblis/git/julia/usr/lib/libLLVM-6.0.so: version LLVM_6.0 required by /usr/local/lib/dri/r600_dri.so not found
Stacktrace:
... But it works fine on Linux, julia> Libdl.dlopen("/usr/lib/x86_64-linux-gnu/dri/r600_dri.so")
Ptr{Nothing} @0x00000000027adbc0 @ararslan I'm curious about how Linux handle that conflict. Any ideas? |
The only thing I could think of offhand would be that libraries are loaded in a different order or different places are searched first between Linux and FreeBSD. Not sure though, and I won't have time to investigate for a while. Maybe in the interim @staticfloat would have some ideas for debugging? |
I found this difference between Linux and FreeBSD.
Here is the output from FreeBSD.
|
Apparently @vchuravy has hit this before; the issue is not specific to FreeBSD. Perhaps he can share some insight here. |
Well... This looks similar to JuliaGPU/OpenCL.jl#165 (comment) and #12644 #32462 (comment) on Linux one should be able to open both libraries and using symbol versioning to resolve to the right one. |
Okay, so speaking with Valentin in person, it seems it is a FreeBSD problem after all. FreeBSD names things a certain way that seems to collide with other symbol versioning. |
I met Hiroki (@hrs-allbsd), a FreeBSD Core Team member, at COSCUP 2019 in Taiwan yesterday. I quote the summary of the discussion from him:
I will try to hack the LLVM build rules to change the Not sure what kind of side effects will be popped from these methods. |
|
Hiroki wrote a great patch for FreeBSD port lang/julia10: This patch redefines So, I think there might be two options for renaming it.
|
@iblis17
This problem manifests with Julia 1.1.1 on FreeBSD12.0, when trying to use OpenGL.
Now using ldd we see
The text was updated successfully, but these errors were encountered: