Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.81k stars 2.99k forks source link

Mindustry releases don't run on musl systems #10258

Closed BasedUser closed 1 month ago

BasedUser commented 1 month ago

Platforms

Linux

Build

146

Issue

Arc doesn't have any fallbacks to launch under musl, resulting in a link crash. Tested on a Gentoo machine.

$ uname -a
Linux benby 6.11.1-linux-cachyos #1 SMP PREEMPT_DYNAMIC Mon Oct 7 00:15:07 EEST 2024 x86_64 AMD Ryzen Threadripper 7960X 24-core Processor AuthenticAMD GNU/Linux

Steps to reproduce

wget https://github.com/Anuken/Mindustry/releases/v146/download/Mindustry.jar
java -jar Mindustry.jar

Mods used

None

Save file

None

(Crash) logs

arc.util.ArcRuntimeException: Couldn't load shared library 'libarc64.so' for target: Linux, 64-bit
        at arc.util.SharedLibraryLoader.load(SharedLibraryLoader.java:84)
        at arc.util.ArcNativesLoader.load(ArcNativesLoader.java:14)
        at arc.backend.sdl.SdlApplication.init(SdlApplication.java:107)
        at arc.backend.sdl.SdlApplication.<init>(SdlApplication.java:35)
        at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
Caused by: arc.util.ArcRuntimeException: java.lang.UnsatisfiedLinkError: /tmp/arc/c0f137d/libarc64.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/arc/c0f137d/li>
        at arc.util.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:288)
        at arc.util.SharedLibraryLoader.load(SharedLibraryLoader.java:81)
        ... 4 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/arc/c0f137d/libarc64.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/arc/c0f137d/libarc64.so)
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
        at java.base/java.lang.Runtime.load0(Runtime.java:755)
        at java.base/java.lang.System.load(System.java:1957)
        at arc.util.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:294)
        at arc.util.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:260)
        ... 5 more

image

Submission

BasedUser commented 1 month ago

image

Anuken commented 1 month ago

Musl systems aren't supported; I have no interest in working on this.