FS#58221 - [julia] eigs/svds functions relying on arpack dependency not working
Attached to Project:
Community Packages
Opened by Jeff (jeffersyno) - Friday, 13 April 2018, 20:01 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 19 April 2018, 09:06 GMT
Opened by Jeff (jeffersyno) - Friday, 13 April 2018, 20:01 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 19 April 2018, 09:06 GMT
|
Details
Description:
The standard library functions 'eigs' and 'svds' that internally use routines defined by arpack do not work as expected. The example provided below works fine when using the binaries from the Julia website. The binaries from the Julia website include their own libarpack.so, while the [community] Julia package uses the system's arpack. Additional info: * julia 2:0.6.2-4 * arpack 3.5.0-3 Steps to reproduce: start Julia, in Julia's REPL: julia> A = spdiagm(1:25); julia> eigs(A) ERROR: Base.LinAlg.ARPACKException("unexpected behavior") |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Thursday, 19 April 2018, 09:06 GMT
Reason for closing: Fixed
Thursday, 19 April 2018, 09:06 GMT
Reason for closing: Fixed
The fix in arpack probably caused this issue with Julia.
Any chance of convincing the Julia developers of testing with the latest version of arpack (that will become 3.6.0), so that they can release a patch that we can use?
I will add the julia arpack library into the julia package in the mean time, even though I'm not really fond of the approach of every binary including all of their own libraries.
Please test with julia 2:0.6.2-5 in [community] and report the bug upstream to the Julia developers if you also still get ERROR: Base.LinAlg.ARPACKException("unexpected behavior").
https://github.com/JuliaLang/julia/issues/26830
> chrpath /usr/lib/libjulia.so
/usr/lib/libjulia.so: RPATH=$ORIGIN:$ORIGIN/julia
so julia 0.6.2-5 is still using system arpack if you have it installed. Workaround:
chrpath -r '/usr/lib/julia/' /lib/libjulia.so.0.6.2
Rebuilding, testing and updating the package now.
But the whole package with PKGBUILD and sysfix.install is pretty horrible right now. I wish Julia could just use CMake or Meson like normal human beings.
Which is broken BTW since you listed chrpath as a makedepends, not a depends, but then modify /usr with it at runtime....
Thanks for the fix for the missing makedepends.