-
Notifications
You must be signed in to change notification settings - Fork 13
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
Julia 1.5 libc.musl, could not load libRmath-julia.so #70
Comments
@giordano is usually the one most familiar with this sort of thing. I am sure this is an We stopped shipping libRmath a long time ago as part of Julia. So you have to look for it in |
Triggering a new build on Yggdrasil - since it is possible the jll was just too old and last built in Nov. The platform list is still the same, but let's see if the new build resolves the issue. |
Hi Viral, thanks -- thought I should post since 1.5 is in beta and could maybe help avoid bigger issues later. I tried again here and see that Rmath_jll moved up from (@1.5) pkg> add Rmath
(@1.5) pkg> build Rmath
(@1.5) pkg> test Rmath
ERROR: LoadError: InitError: could not load library "libRmath-julia.so"
Error loading shared library libRmath-julia.so: No such file or directory
Stacktrace:
[1] __init__() at /home/dehann/.julia/packages/Rmath/lo1Ao/src/Rmath.jl:37
[2] _include_from_serialized at ./loading.jl:697
[3] _require_from_serialized at ./loading.jl:749
[4] _require at ./loading.jl:1040
[5] require at ./loading.jl:928
[6] require at ./loading.jl:923
[7] include at ./client.jl:457
[8] top-level scope at none:6
during initialization of module Rmath
in expression starting at /home/dehann/.julia/packages/Rmath/lo1Ao/test/runtests.jl:1
ERROR: Package Rmath errored during testing I'm not directly using Rmath, but some of the dependencies higher up do which is how I happened upon the issue. I'll try and see if I can learn more and will post if I find anything useful. For example the same error is happening with Gadfly.jl: (@1.5) pkg> add Gadfly
(@1.5) pkg> test Gadfly
...
ERROR: LoadError: LoadError: InitError: could not load library "libRmath-julia.so"
Error loading shared library libRmath-julia.so: No such file or directory
... |
We may have problems with loading some libraries with Musl in general, I can reproduce this issue also with other libraries, but not all of them. |
I opened in issue in Julia: JuliaLang/julia#36458 TLDR: when |
Oh great, thanks! |
This is still an issue even on Julia master, where the Lines 37 to 42 in aa1388f
I'll investigate to see if it can be trivially fixed. |
Rmath_jll probably just needs a new Yggdrasil build to use the changes to JLLWrappers. @giordano or @ViralBShah would one of you be able to do this? |
Confirmed, I can fix this and pass tests by changing all references to |
Looks like Rmath library is missing (or not being linked properly) with the new Julia-1.5.0-beta-1 libc.musl binary. I tried a few things to help find where this is happening but got stuck not knowing the internals here so well yet.
cc @ViralBShah
Julia 1.5 beta 1, libc.musl
Same thing happens after I try
pkg> build Rmath
.So, I checked for the libRmath library location:
But cannot find anything resembling librmath in either Julia's provided
lib/
orlib/julia/
folder. So I'm a little lost on where that library is actually being included.Also:
But still works with glibc version
Similarly, still works fine on Julia 1.4.2
Previous related issues
Suspected Issue
This is either an issue at
Rmath_jll
or here atRmath.jl
, but seems bit strange that musl vs glibc versions have different behaviors?The text was updated successfully, but these errors were encountered: