Closed Djoop closed 5 years ago
So I guess this is a more general problem, probably not related directly to LBFGSB or MKL but just to the fact that julia was compiled from source…
yep. the reason is that the version of libgfortran linked by BB2 is libgfortran.so.3. if I remembered correctly, this has been fixed in the upstream. I'm trying to rebuild LBFGSB binaries using newer BB2.
OK thanks, I tried with v1.1.0 but I still have the same issue. But when editing LD_LIBRARY_PATH, compilation does work. So I guess there is nothing more to do, just wait for the update?
It seems that simply extending gcc versions is not enough for some platforms: https://travis-ci.org/Gnimuc/L-BFGS-B-Builder/builds/483380231
For debugging locally, I'm updating and downloading BB2 now, so you might need to wait a couple of more hours. :)
hi @Djoop, I've rebuilt LBFGSB binaries for many gcc versions except for powerpc and macOS. you could download and replace the content of your LBFGSB's /deps/build.jl
with
https://github.com/Gnimuc/L-BFGS-B-Builder/releases/download/v3.0.0-3/build_LBFGSB.v3.0.0.jl
currently, I don't have a Linux machine that has a Julia built from source, so this method is still not tested, please add more comments if things still go bad. for macOS, it looks like I hit this issue: https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/381.
BTW, could you elaborate more about how did you fix the compilation with LD_LIBRARY_PATH
?
Thank you for the quick fix, I works for me on linux by editing /deps/build.jl. Regarding LD_LIBRARY_PATH, I just wanted to check that there was no other error so I added to the library path libgfortran.so.4 (that I had somewhere else on my system), but this is of course not really a solution.
@Djoop I've tagged a new release, you could use it as soon as https://github.com/JuliaLang/METADATA.jl/pull/20831 is merged. Thanks for the feedback.
I've been successfully using LBFGSB on julia 1.0.2, but recently I tried to compile julia with MKL to compare performances (still julia 1.0.2). When I try to build LBFGSB, I get the following error (I just changed the username):
I'm not sure to understand what is happening and if the compilation with MKL is really the issue or not, but the library is present and can be opened:
Any hint?
[EDIT] Sorry, posted too quickly, I used
open
and notdlopen
So I guess this is a more general problem, probably not related directly to LBFGSB or MKL but just to the fact that julia was compiled from source…