ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.91k stars 289 forks source link

[BOX32] SuperTuxKart 0.9 missing libgmp symbol #1959

Open LukeShortCloud opened 4 weeks ago

LukeShortCloud commented 4 weeks ago

I'm trying to run an older Linux version of SuperTuxKart from before it switched from OpenGL to Vulkan.

https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.2/

For running the game with Box32, I had to download a lot of 32-bit x86 libraries to be emulated. I'll make that publicly available soon and can share a link if you need those.

$ box64 ~/Games/supertuxkart-0.9.2-linux/bin/supertuxkart
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT AFP RNDR PageSize:4096 Running on unknown aarch64 cpu with 12 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 93 entries
Box64 with Dynarec v0.3.1 90674b82 built on Oct 25 2024 10:53:47
BOX64: Detected 48bits at least of address space
Counted 30 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/usr/lib/wsl/lib/:/mnt/c/Windows/system32/:/mnt/c/Windows/:/mnt/c/Windows/System32/Wbem/:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/lukew/AppData/Local/Microsoft/WindowsApps/:/snap/bin/:/home/user/Games/wine-9.20-amd64-wow64/bin/
Looking for /home/user/Games/supertuxkart-0.9.2-linux/bin/supertuxkart
BOX64: Using Box32 to load 32bits elf
Memory higher than 32bits reserved
Rename process to "supertuxkart"
Using native(wrapped) libpthread.so.0
Using emulated /tmp/box64/lib32/libcurl-gnutls.so.4
Using emulated /tmp/box64/lib32/libogg.so.0
Using emulated /tmp/box64/lib32/libvorbis.so.0
Using emulated /tmp/box64/lib32/libvorbisfile.so.3
Using native(wrapped) libopenal.so.1
Using native(wrapped) libGL.so.1
Using emulated /tmp/box64/lib32/libSM.so.6
Using emulated /tmp/box64/lib32/libICE.so.6
Using native(wrapped) libX11.so.6
Using native(wrapped) libXext.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using emulated /tmp/box64/lib32/libfribidi.so.0
Using emulated /tmp/box64/lib32/libbluetooth.so.3
Using emulated /usr/lib/box64-i386-linux-gnu/libpng12.so.0
Using emulated /tmp/box64/lib32/libjpeg.so.8
Using emulated /usr/lib/box64-i386-linux-gnu/libz.so.1
Using emulated /usr/lib/box64-i386-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /tmp/box64/lib32/libgomp.so.1
Using emulated /usr/lib/box64-i386-linux-gnu/libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libuuid.so.1
Using emulated /tmp/box64/lib32/libnettle.so.8
Using emulated /tmp/box64/lib32/libgnutls.so.30
Using emulated /tmp/box64/lib32/libp11-kit.so.0
Using emulated /tmp/box64/lib32/libidn2.so.0
Using emulated /tmp/box64/lib32/libunistring.so.2
Using emulated /tmp/box64/lib32/libtasn1.so.6
Using emulated /tmp/box64/lib32/libnettle.so.6
Using emulated /tmp/box64/lib32/libhogweed.so.4
Using emulated /tmp/box64/lib32/libgmp.so.10
Error: Symbol sym=obstack_vprintf(obstack_vprintf@GLIBC_2.0/version 2) not found, cannot apply R_386_32 0x40ac56c8 ((nil)) in /tmp/box64/lib32/libgmp.so.10
Error loading needed lib libffi.so.6
Error loading one of needed lib
Error initializing needed lib ld-linux.so.2
Error loading one of needed lib
Error initializing needed lib libz.so.1
Error loading one of needed lib
Error initializing needed lib libgcc_s.so.1
Error loading one of needed lib
Error: Loading needed libs in elf /home/user/Games/supertuxkart-0.9.2-linux/bin/supertuxkart
Segmentation fault
LukeShortCloud commented 3 weeks ago

I'm temporarily hosting the library files I used here: https://winesapos.lukeshort.cloud/box64/