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

Needs libstdc++.so.6.0.30 #46345

Closed
fduple opened this issue Aug 14, 2022 · 1 comment · Fixed by #45582
Closed

Needs libstdc++.so.6.0.30 #46345

fduple opened this issue Aug 14, 2022 · 1 comment · Fixed by #45582

Comments

@fduple
Copy link

fduple commented Aug 14, 2022

julia 1.8.0-rc4 includes libstdc++.so.6.0.29 but packages may need the next version; libstdc++.so.6.0.30

Example; GLMakie does not compile unless julia/julia-1.8.0-rc4/lib/julia/libstdc++.so.6 points to libstdc++.so.6.0.30

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.0-rc4 (2022-08-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using MKL

(@v1.8) pkg> precompile
Precompiling project...
  ✗ GLMakie
  0 dependencies successfully precompiled in 36 seconds. 243 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a]

Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to /home/fduple/.julia/compiled/v1.8/GLMakie/jl_NQx7TP.
libGL error: MESA-LOADER: failed to open iris: /home/fduple/julia/julia-1.8.0-rc4/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/fduple/julia/julia-1.8.0-rc4/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/fduple/julia/julia-1.8.0-rc4/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
┌ Warning:     GLFW couldn't create an OpenGL window.
│     This likely means, you don't have an OpenGL capable Graphic Card,
│     or you don't have an OpenGL 3.3 capable video driver installed.
│     Have a look at the troubleshooting section in the GLMakie readme:
│     https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/screen.jl:391
ERROR: LoadError: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
Stacktrace:
  [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43
  [2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499
  [3] GLFW.Window(; name::String, resolution::Tuple{Int64, Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Vector{Tuple{UInt32, Integer}}, contexthints::Vector{Tuple{UInt32, Integer}}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:344
  [4] GLMakie.Screen(; resolution::Tuple{Int64, Int64}, visible::Bool, title::String, start_renderloop::Bool, kw_args::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/screen.jl:383
  [5] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:5
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
  [7] include
    @ ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1 [inlined]
  [8] macro expansion
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:19 [inlined]
  [9] macro expansion
    @ ~/.julia/packages/Makie/Ppzqh/src/precompiles.jl:96 [inlined]
 [10] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:14
 [11] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [12] include(x::String)
    @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1
 [13] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:65
 [14] include
    @ ./Base.jl:419 [inlined]
 [15] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [16] top-level scope
    @ stdin:1
in expression starting at /home/fduple/.julia/packages/Makie/Ppzqh/precompile/shared-precompile.jl:4
in expression starting at /home/fduple/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:13
in expression starting at /home/fduple/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1
in expression starting at stdin:1

After linking julia/julia-1.8.0-rc4/lib/julia/libstdc++.so.6 to libstdc++.so.6.0.30 it compiles fine.

julia> versioninfo()
Julia Version 1.8.0-rc4
Commit 7853436ccd7 (2022-08-08 07:55 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants