aviks / GameZero.jl

Zero overhead game development library for the Julia programming language
Other
184 stars 23 forks source link

Crash on `rungame` #40

Closed mbaz closed 3 years ago

mbaz commented 3 years ago
julia> rungame("basic.jl")
libGL error: MESA-LOADER: failed to open iris: /home/miguel/bin/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/miguel/bin/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/miguel/bin/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
X Error:  BadValue
  Request Major code 152 (GLX)
  Request Minor code 3 ()
  Value 0x0
  Error Serial #103
  Current Serial #104
~ $

This looks to me like an incompatibility between Julia's bundled libstdc++ and my system drivers. Is there a way to make GameZero use my system's libstdc++?

aviks commented 3 years ago

While I'm loath to summon @giordano or @staticfloat to a random project's isues, I have a feeling they will know the answer.

giordano commented 3 years ago

Sigh. That's basically https://github.com/JuliaLang/julia/issues/34276.

aviks commented 3 years ago

Thanks Mose. I'll close this here, since I don't think we can work around any of this here.

staticfloat commented 3 years ago

Users can work around it by copying their own libstdc++ from their system directory over the one provided by Julia. This is harmless as long as the one you’re overwriting with is newer.