starsector-mod-manager-rust
starsector-mod-manager-rust copied to clipboard
Linux static build immediately segfaults on start
This is currently impossible to fix afaik, but going to leave this open as a reminder to check for progress in dependencies every now and then.
Essentially, something about musl libc+rustc+uncritically static linking all code results in a segfault 100% of the time. The solution last I checked was basically to go back to dynamic linking against musl libc, which sort of defeats the purpose.
This is doubly complicated (or maybe not) by our dependencies on GTK and WebkitGTK, which probably makes a lot of assumptions about being dynamically linked and/or using a "standard" libc - or maybe I'm the one making the assumption.
Cosmopolitan libc also isn't as helpful as one might hope here, because at least in cosmopolitan's case it doesn't have perfect Rust compatibility. Granted, the only known incompatibility is not being able to build OS independent binaries, but I wouldn't be surprised if there were other issues (see GTK expecting normal libc above).
Either way, this isn't a huge problem and dynamic linking works. We've also got working AppImage builds and can probably make installers for basically any distro's package manager if that's not enough. Static linking doesn't get us much (if anything) over that except for being able to "skip" any installation time, except AppImages already work for that case anyway.