Libopenblas error for sysimage with Makie.jl

Hi,

I’ve tried to create a sysimage for both GLMakie and CairoMakie with:

pkg> activate .
  Activating project at `~/test/julia`
julia> using PackageCompiler
julia> create_sysimage(["GLMakie", "CairoMakie"]; sysimage_path="MakieSysImage.so")
✔ [07m:38s] PackageCompiler: compiling incremental system image

Trying to use it fails with

 julia -q -J MakieSysImage.so
fatal: error thrown and no exception handler available.
InitError(mod=:OpenBLAS_jll, error=ErrorException("could not load library "libopenblas.so"
libopenblas.so: cannot open shared object file: No such file or directory"))
ijl_errorf at /usr/bin/../lib64/julia/libjulia-internal.so.1 (unknown line)
ijl_load_dynamic_library at /usr/bin/../lib64/julia/libjulia-internal.so.1 (unknown line)
#dlopen#3 at ./libdl.jl:117
dlopen at ./libdl.jl:116 [inlined]
dlopen at ./libdl.jl:116 [inlined]
__init__ at /usr/share/julia/stdlib/v1.8/OpenBLAS_jll/src/OpenBLAS_jll.jl:40
jfptr___init___140895 at /home/alex/test/julia/MakieSysImage.so (unknown line)
unknown function (ip: 0x7fa121e2cf73)
unknown function (ip: 0x7fa121e1519c)
julia_init at /usr/bin/../lib64/julia/libjulia-internal.so.1 (unknown line)
jl_repl_entrypoint at /usr/bin/../lib64/julia/libjulia-internal.so.1 (unknown line)
main at julia (unknown line)
unknown function (ip: 0x7fa1223a7389)
__libc_start_main at /usr/bin/../lib64/libc.so.6 (unknown line)
_start at julia (unknown line)

Using Julia 1.8.3 on Gentoo.

Is this a bug that should be reported ? If that’s the case, which github account would be more suitable ?

Thanks !

How did you install Julia there?

Thanks for answering so quickly.
I used dev-lang/julia, i.e by compiling it (instead of using a binary). The package is marked as “testing” in Gentoo at the moment.

Then I guess the package in Gentoo is kinda broken and not using an ILP64 build of OpenBLAS and/or not named libopenblas64_.so

2 Likes

I forgot to add that you should instead the official binaries from Download Julia, or maybe use GitHub - JuliaLang/juliaup: Julia installer and version multiplexer, which allows you to manage multiple version and upgrade to new ones when they come out.

Yes, I figured as much :slight_smile:
Using the latest official binary does not have this issue. Thanks for the tip !