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

[BUG] `ZLIB_1.2.9' not found by Plots dependencies #3890

Closed
deszoeke opened this issue Oct 19, 2021 · 4 comments
Closed

[BUG] `ZLIB_1.2.9' not found by Plots dependencies #3890

deszoeke opened this issue Oct 19, 2021 · 4 comments
Labels

Comments

@deszoeke
Copy link

Details

On julia v1.6.3, ]update loads dependencies of Plots that fail to precompile because libpng requires ZLIB_1.2.9, but the precompiler is trying the system ZLIB_1.2.7 in

lrwxrwxrwx 1 root root     13 Feb 26  2021 /lib64/libz.so -> libz.so.1.2.7

Starting julia via
bash-4.2$ LD_PRELOAD="/home/server/pi/homes/sdeszoek/.julia/conda/3/lib/libz.so.1.2.11" julia
has the same result, i.e. it still tries to load /lib64/libz.so.1.

Error report

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: LoadError: InitError: could not load library "/home/server/pi/homes/sdeszoek/.julia/artifacts/ddfc455343aff48d27c1b39d7fcb07e0d9242b50/lib/libpng16.so"
/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/server/pi/homes/sdeszoek/.julia/artifacts/ddfc455343aff48d27c1b39d7fcb07e0d9242b50/lib/libpng16.so)
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/products/library_generators.jl:54 [inlined]
 [2] __init__()
   @ libpng_jll ~/.julia/packages/libpng_jll/9vklf/src/wrappers/x86_64-linux-gnu.jl:9
 [3] top-level scope
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel_generators.jl:170
 [4] top-level scope (repeats 2 times)
   @ none:1
during initialization of module libpng_jll
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/Cairo_jll/zRgOn/src/wrappers/x86_64-linux-gnu.jl:6
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/Cairo_jll/zRgOn/src/Cairo_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile Cairo_jll [83423d85-b0ee-5818-9007-b63ccbeb887a] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/Cairo_jll/jl_owwD4o.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel_generators.jl:170
 [3] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/HarfBuzz_jll/eogPK/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/HarfBuzz_jll/eogPK/src/HarfBuzz_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/HarfBuzz_jll/jl_834mhD.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel_generators.jl:170
 [3] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/libass_jll/SaaQW/src/wrappers/x86_64-linux-gnu.jl:6
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/libass_jll/SaaQW/src/libass_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile libass_jll [0ac62f75-1d6f-5e53-bd7c-93b484bb37c0] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/libass_jll/jl_4I2UA0.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel_generators.jl:170
 [3] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/FFMPEG_jll/ECokx/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/FFMPEG_jll/ECokx/src/FFMPEG_jll.jl:2
ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/FFMPEG_jll/jl_HMmLHk.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/FFMPEG/OUpap/src/FFMPEG.jl:1
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/FFMPEG/jl_LvRNKA.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/server/pi/homes/sdeszoek/.julia/packages/Plots/5kcBO/src/Plots.jl:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/Plots/jl_GEQIGR.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385

The failing dependencies Cairo_jll, HarfBuzz_jll, libass_jll, FFMPEG_jll depend on libpng16.so.

ls -l /home/server/pi/homes/sdeszoek/.julia/artifacts/ddfc455343aff48d27c1b39d7fcb07e0d9242b50/lib/libpng16.so
lrwxrwxrwx 1 sdeszoek nobody 14 Oct 18 21:21 /home/server/pi/homes/sdeszoek/.julia/artifacts/ddfc455343aff48d27c1b39d7fcb07e0d9242b50/lib/libpng16.so -> libpng16.so.16

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: [91a5bcdd] Plots v1.22.6
Backend version (]st -m <backend(s)>):
Output of versioninfo():

Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: AMD Opteron(tm) Processor 6172
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, amdfam10)
@deszoeke deszoeke added the bug label Oct 19, 2021
@BeastyBlacksmith
Copy link
Member

Is that an official julia build or did you compile it from source?

@deszoeke
Copy link
Author

deszoeke commented Oct 20, 2021 via email

@BeastyBlacksmith
Copy link
Member

Can you reproduce this with a Binary from julialang.org?

@deszoeke
Copy link
Author

PyPlot and Plots work with the official julialang.org julia binary!

It successfully (re)precompiles PyPlot​ previously installed into ~/.julia​ by the Copr julia package manager.
Plots​ dependencies needed to be rebuilt.

]build with the new julia binary seems to fix it.

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

No branches or pull requests

2 participants