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

libstdc++.so version issue on Manjaro #1975

Closed
gdkrmr opened this issue May 25, 2022 · 2 comments
Closed

libstdc++.so version issue on Manjaro #1975

gdkrmr opened this issue May 25, 2022 · 2 comments
Labels
GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie.

Comments

@gdkrmr
Copy link

gdkrmr commented May 25, 2022

Yesterday everything worked just fine. I am using Manjaro and after work I did a major update (e.g. gcc changed version to 12) and now OpenGL from julia seems broken due to a libstdc++.so version issue.

julia> using GLMakie

julia> scatter(1:10, 1:10)
libGL error: MESA-LOADER: failed to open radeonsi: /home/gkraemer/progs/julia/julia-1.7/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /home/gkraemer/progs/julia/julia-1.7/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /home/gkraemer/progs/julia/julia-1.7/usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /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/vwLnZ/src/screen.jl:381
Error showing value of type Makie.FigureAxisPlot:
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig

I rebuilt all my julia versions and tried to rebuild a few packages but that didn't really help.

Interestingly if I cd into julia/usr/lib, then I get the same error for glxgears but outside of that directory glxgears works just fine.

@gdkrmr
Copy link
Author

gdkrmr commented May 25, 2022

My system has libstdc++.so.6.0.30 I have simply symlinked that into /path/to/julia/usr/lib/ and now it seems to work again.

@t-bltg
Copy link
Collaborator

t-bltg commented May 28, 2022

Maybe try the LD_PRELOAD trick as explained in #1953 ?

@t-bltg t-bltg added the GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie. label May 28, 2022
@t-bltg t-bltg closed this as completed May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie.
Projects
None yet
Development

No branches or pull requests

2 participants