Skip to content
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

Libopenblas missing on Linux Machine After compile_package sysimg #193

Closed
kharazity opened this issue Feb 25, 2019 · 2 comments · Fixed by #304
Closed

Libopenblas missing on Linux Machine After compile_package sysimg #193

kharazity opened this issue Feb 25, 2019 · 2 comments · Fixed by #304

Comments

@kharazity
Copy link

kharazity commented Feb 25, 2019

I'm working on a Linux machine with Julia 1.1 and I'm able to generate a system image for an unregistered package. However, whenever I try and run the system image with:
julia -J /home/6tk/PackageCompiler.jl/sysimg/sys.so
I get the error:

WARNING: Error during initialization of module LinearAlgebra:
ErrorException("could not load library "libopenblas64_"
libopenblas64_.so: cannot open shared object file: No such file or directory")
fatal: error thrown and no exception handler available.
#<null>
unknown function (ip: 0x7f2471ca7a57)
jl_throw at /usr/bin/../lib64/libjulia.so.1 (unknown line)
error at ./error.jl:33
check_deps at /home/6tk/.julia/packages/GDAL/vec6Y/deps/deps.jl:25
__init__ at /home/6tk/.julia/packages/GDAL/vec6Y/src/GDAL.jl:51
jl_apply_generic at /usr/bin/../lib64/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f2471c8f455)
unknown function (ip: 0x7f2471c741be)
unknown function (ip: 0x40138f)
__libc_start_main at /usr/bin/../lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401433)

What's strange about this error is that it doesn't show up during any of the precompilation process. I've also looked through the julia files and I've found the libopenblas64_.so file, so I'm just confused why PackageCompiler can't find it.

Thanks.

@kharazity kharazity changed the title Libopenblas missing on Linux Machine Libopenblas missing on Linux Machine After compile_package sysimg Feb 25, 2019
@kharazity
Copy link
Author

kharazity commented Feb 27, 2019

Update: I've been experiencing this same issue with registered packages as well. With a vanilla 64bit install of Julia1.1 and ]dev PackageCompiler. When I run compile_package("GDAL", force = false) I am able to make the system image. However, whenever I run the image, the error block from above is generated. I believe it has something to do with the way PackageCompiler indexes dependencies separately from the native Julia.

@sje30
Copy link

sje30 commented Dec 28, 2019

I get the same problem with recent packages (and Julia 1.3.1-pre.20)

I solved the problem by using LD_LIBRRAY_PATH env variable to point to the folder containing libopenblas64_.so

e.g.

LD_LIBRARY_PATH=/opt/sje/julia/usr/lib/ julia -J /home/stephen/.julia/packages/PackageCompiler/4yNnV/sysimg/sys.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants