ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.18k stars 220 forks source link

Wrong ELF class on Switch #961

Open User8395 opened 1 month ago

User8395 commented 1 month ago

I ran the steam install script on my 24.04 Switch and tried to run Steam after that.

user8395@switch8395:~$ steam
steam.sh[2127]: Running Steam on ubuntu 24.04 64-bit
steam.sh[2127]: STEAM_RUNTIME is enabled by the user
setup.sh[2191]: Steam runtime environment up-to-date!
steam.sh[2127]: Steam client's requirements are satisfied
Box86 with Dynarec v0.3.5 f5f1e141 built on May  5 2024 01:02:56
[2024-05-15 07:40:30] Startup - updater built May 13 2024 21:00:30
[2024-05-15 07:40:30] Startup - Steam Client launched with: '/home/user8395/.local/share/Steam/ubuntu12_32/steam'
Error initializing native libGL.so.1 (last dlerror is libGL.so.1: wrong ELF class: ELFCLASS64)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2024-05-15 07:40:31] Loading cached metrics from disk (/home/user8395/.local/share/Steam/package/steam_client_metrics.bin)
[2024-05-15 07:40:31] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2024-05-15 07:40:31] Using the following download hosts for Public, Realm steamglobal
[2024-05-15 07:40:31] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-05-15 07:40:31] Checking for update on startup
[2024-05-15 07:40:31] Checking for available updates...
[2024-05-15 07:40:31] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12
[2024-05-15 07:40:31] Manifest download: send request
[2024-05-15 07:40:31] Manifest download: waiting for download to finish
[2024-05-15 07:40:31] Manifest download: finished
[2024-05-15 07:40:31] Download skipped: /client/steam_client_ubuntu12 version 1715635533, installed version 1715635533, existing pending version 0
[2024-05-15 07:40:31] Nothing to do
[2024-05-15 07:40:31] Verifying installation...
[2024-05-15 07:40:31] Performing checksum verification of executable files
[2024-05-15 07:40:37] Verification complete
UpdateUI: skip show logoError initializing native libXfixes.so.3 (last dlerror is libXfixes.so.3: wrong ELF class: ELFCLASS64)
Error initializing native libcairo.so.2 (last dlerror is libcairo.so.2: wrong ELF class: ELFCLASS64)
Error initializing native libfontconfig.so.1 (last dlerror is libfontconfig.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libXext.so.6 (last dlerror is libXext.so.6: wrong ELF class: ELFCLASS64)
Error initializing native libXrender.so.1 (last dlerror is libXrender.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libXinerama.so.1 (last dlerror is libXinerama.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libXi.so.6 (last dlerror is libXi.so.6: wrong ELF class: ELFCLASS64)
Error initializing native libXrandr.so.2 (last dlerror is libXrandr.so.2: wrong ELF class: ELFCLASS64)
Error initializing native libXcursor.so.1 (last dlerror is libXcursor.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libXcomposite.so.1 (last dlerror is libXcomposite.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libXdamage.so.1 (last dlerror is libXdamage.so.1: wrong ELF class: ELFCLASS64)
Error initializing native libfreetype.so.6 (last dlerror is libfreetype.so.6: wrong ELF class: ELFCLASS64)
Error initializing native libpcre.so.3 (last dlerror is libpcre.so.3: wrong ELF class: ELFCLASS64)
Error initializing native libpng12.so.0 (last dlerror is libpng12.so.0: wrong ELF class: ELFCLASS64)
Error: Symbol _XFreeTemp not found, cannot apply R_386_JMP_SLOT 0x62f08034 (0x1226) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXrender.so.1
Error: Symbol _XAllocTemp not found, cannot apply R_386_JMP_SLOT 0x62f08038 (0x1236) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXrender.so.1
Error: Symbol _XVIDtoVisual not found, cannot apply R_386_JMP_SLOT 0x62f08064 (0x12e6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXrender.so.1
Error: relocating Plt symbols in elf libXrender.so.1
Error initializing native libjpeg.so.8 (last dlerror is libjpeg.so.62: wrong ELF class: ELFCLASS64)
Error initializing native libselinux.so.1 (last dlerror is libselinux.so.1: wrong ELF class: ELFCLASS64)
Error: Symbol XESetCreateFont not found, cannot apply R_386_JMP_SLOT 0x63c20004 (0x24a6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetFreeGC not found, cannot apply R_386_JMP_SLOT 0x63c20018 (0x24f6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetFlushGC not found, cannot apply R_386_JMP_SLOT 0x63c20020 (0x2516) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetCreateGC not found, cannot apply R_386_JMP_SLOT 0x63c2002c (0x2546) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol _XInitImageFuncPtrs not found, cannot apply R_386_JMP_SLOT 0x63c20030 (0x2556) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol _XAllocScratch not found, cannot apply R_386_JMP_SLOT 0x63c20040 (0x2596) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetCopyGC not found, cannot apply R_386_JMP_SLOT 0x63c20050 (0x25d6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol _XGetBitsPerPixel not found, cannot apply R_386_JMP_SLOT 0x63c20068 (0x2636) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol _XGetScanlinePad not found, cannot apply R_386_JMP_SLOT 0x63c20078 (0x2676) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetFreeFont not found, cannot apply R_386_JMP_SLOT 0x63c20084 (0x26a6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol _XVIDtoVisual not found, cannot apply R_386_JMP_SLOT 0x63c2008c (0x26c6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: Symbol XESetErrorString not found, cannot apply R_386_JMP_SLOT 0x63c20094 (0x26e6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXext.so.6
Error: relocating Plt symbols in elf libXext.so.6
Error: Symbol XESetCopyEventCookie not found, cannot apply R_386_JMP_SLOT 0x63c3200c (0x1736) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: Symbol _XUnknownNativeEvent not found, cannot apply R_386_JMP_SLOT 0x63c32014 (0x1756) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: Symbol XESetWireToEventCookie not found, cannot apply R_386_JMP_SLOT 0x63c32030 (0x17c6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libXi.so.6
Error: relocating Plt symbols in elf libXi.so.6
Error: PltResolver: Symbol dlmopen(ver 27: dlmopen@GLIBC_2.3.4) not found, cannot apply R_386_JMP_SLOT 0x306a9b98 (0x300294d6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam
Error: PltResolver: Symbol dlclose(ver 21: dlclose@GLIBC_2.0) not found, cannot apply R_386_JMP_SLOT 0x306a9aa0 (0x300290f6) in /home/user8395/.local/share/Steam/ubuntu12_32/steam
src/common/framefunction.cpp (238) : Assertion Failed: CFrameFunctionMgr::~CFrameFunctionMgr: non static FrameFunction[CHTTPClient::BFrameFuncHandleCompletedWorkItems] still registered
src/common/framefunction.cpp (238) : Assertion Failed: CFrameFunctionMgr::~CFrameFunctionMgr: non static FrameFunction[CHTTPClient::BFrameFuncHandleCompletedWorkItems] still registered

I downloaded the binaries from the ppa

afrozenpeach commented 2 weeks ago

You have to install a bunch of libraries by hand. For each "Error initializing native " you need to install the armhf version of that package.