FrodeSolheim / fs-uae-launcher

A frontend for the FS-UAE Amiga emulator with support for the OpenRetro online game database.
GNU General Public License v2.0
61 stars 14 forks source link

[BUG] Ubuntu 22.04 LTS errors (MESA and GLIBC) #146

Open giancarloerra opened 2 years ago

giancarloerra commented 2 years ago

I installed FS-UAE on Ubuntu 22.04 LTS.

When I try to launch, first I get this error:

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (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: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 105 Current serial number in output stream: 106

This is weird because actually they are in the search path, specifically in /usr/lib/x86_64-linux-gnu/dri

Anyway if I create a soft alias /usr/lib/dri to /usr/lib/x86_64-linux-gnu/dri, I get a different error message:

libGL error: MESA-LOADER: failed to open iris: /home/giancarloerra/Applications/FS-UAE/FS-UAE-Launcher/Linux/x86-64/libstdc++.so.6: version GLIBCXX_3.4.30' not found (required by /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/giancarloerra/Applications/FS-UAE/FS-UAE-Launcher/Linux/x86-64/libstdc++.so.6: versionGLIBCXX_3.4.30' not found (required by /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 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 149 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 105 Current serial number in output stream: 106 LaunchHandler.start is done

Any suggestion?

giancarloerra commented 2 years ago

I solved renaming the libstc++ that was with fs-uae-launcher and creating in there a softlink to my own system libstsc++ that contained the .30 object, and it all worked.

As I did the same for the MESA libs, makes sense. Working perfectly now!

FrodeSolheim commented 2 years ago

I'm reopening the issue because it shouldn't be necessary to do this. Also moving to the fs-uae-launcher project since this error seems to be limited to FS-UAE Launcher.

FrodeSolheim commented 2 years ago

The solution is probably to remove libstc++ from fs-uae-launcher