fs-uae-launcher icon indicating copy to clipboard operation
fs-uae-launcher copied to clipboard

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

Open giancarloerra opened this issue 1 year ago • 3 comments

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: 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: 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 avatar Jul 09 '22 18:07 giancarloerra

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!

giancarloerra avatar Jul 09 '22 21:07 giancarloerra

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 avatar Jul 10 '22 10:07 FrodeSolheim

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

FrodeSolheim avatar Jul 10 '22 10:07 FrodeSolheim