Giter Club home page Giter Club logo

Comments (8)

ptitSeb avatar ptitSeb commented on August 27, 2024

You kernel doesn't seems to support semaphore, and box doesn't have ny fallback mecanism for that.

from box86.

GinoBadouri avatar GinoBadouri commented on August 27, 2024

Now that I'm looking closer at the logs:
Box86 with Dynarec v0.3.3 c317bf94 built on Dec 11 2023 06:17:31
Box64 with Dynarec v0.2.5 12c40a5b built on Oct 25 2023 06:31:40
The tutorial I followed for installing Termux, X11, proot and stuff has a repository which hosts a very outdated version of box64 vs box86.
I'll first try compiling it myself with -D ARM64=1 -DCMAKE_C_COMPILER=gcc -DBAD_SIGNAL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo and see if it works better.
The kernel I'm using is: 4.14.180

from box86.

MastaG avatar MastaG commented on August 27, 2024

Alright the workaround for the semaphore problem is to run the proot-login command without the --no-sysvipc flag.
I've also rebuild box86 and box64 from git now.
The remaining problem I have is that box86 doesn't seem to enforce $BOX86_LD_LIBRARY_PATH when searching for libraries.
I have a custom build of mesa drivers installed in /usr/local/lib64 (arm64) and /usr/local/lib (armhf) with fixes for freedreno's turnip driver.
In my /etc/ld.so.conf.d/00-local.conf I have:

/usr/local/lib64
/usr/local/lib

And I've set:

LIBGL_DRIVERS_PATH=/usr/local/lib64/dri:/usr/local/lib/dri
VK_ICD_FILENAMES=/usr/local/share/vulkan/icd.d/freedreno_icd.aarch64.json:/usr/local/share/vulkan/icd.d/freedreno_icd.armv7l.json

This works for the OS, when I run glxinfo I get:

OpenGL vendor string: Mesa
OpenGL renderer string: zink Vulkan 1.3(Turnip Adreno (TM) 640 (MESA_TURNIP))
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.0-devel (git-a921a69010)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: no-error
OpenGL core profile profile mask: core profile

So that's the libGL in from /usr/local/lib64

I've done the same for box64:

$ echo $BOX64_LD_LIBRARY_PATH
/usr/local/lib64:/home/mastag/wine64/lib/i386-unix/:/home/mastag/wine64/lib/wine/x86_64-unix/:/lib/i386-linux-gnu/:/lib/x86_64-linux-gnu:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/aarch64-linux-gnu/:/usr/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/:/usr/lib/x86_64-linux-gnu

And for box86:

$ echo $BOX86_LD_LIBRARY_PATH
/usr/local/lib:/home/mastag/wine/lib/wine/i386-unix/:/lib/i386-linux-gnu/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/aarch64-linux-gnu/:/usr/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/

Still when I run Steam, it seems to fail with:

[2023-12-12 12:21:49] Nothing to do
[2023-12-12 12:21:49] Verifying installation...
[2023-12-12 12:21:49] Performing checksum verification of executable files
[2023-12-12 12:21:55] Verification complete

Steam logging initialized: directory: /home/mastag/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0x401a0080
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0x401a0090
lspci: Cannot open /proc/bus/pci/devices
libGL error: DRI driver not from this Mesa build ('24.0.0-devel (git-a921a69010)' vs '23.2.1-1ubuntu3.1')
libGL error: failed to load driver: zink
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
/data/src/common/framefunction.cpp 238 Assertion Failed: CFrameFunctionMgr::~CFrameFunctionMgr: non static FrameFunction[CHTTPClient::BFrameFuncHandleCompletedWorkItems] still registeredBOX86: Warning, calling Signal function handler SIG_DFL with 3 args

So it's trying to use the DRI drivers from LIBGL_DRIVERS_PATH=/usr/local/lib64/dri:/usr/local/lib/dri, however Steam is using the libGL library from /usr/lib/aarch64-linux-gnu and /usr/lib/arm-linux-gnueabihf/

@ptitSeb
Any ideas how to fix this?

from box86.

MastaG avatar MastaG commented on August 27, 2024

Alright, small update.
Removing /usr/lib/aarch64-linux-gnu and /usr/lib/arm-linux-gnueabihf/ from BOX86/64_LD_LIBRARY_PATH seems to fix the problem where it loads native libGL.so from there instead of /usr/local/lib{,64} which is clearly the first path in the variable.
So this seems to be an issue of box86 where it doesn't respect the order of paths from that variable.

Now with the libGL problem solved, I got a little further:

$ BOX86_LOG=1 BOX86_SHOWSEGV=1 run_steam
Debug level is 1
Show Segfault signal even if a signal handler is present
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA AES PMULL PageSize:4096 Running on Kryo-4XX-Silver Kryo-4XX-Gold with 8 Cores
Params database has 29 entries
Using bash "/usr/local/bin/bash_I386"
Box86 with Dynarec v0.3.3 76a5f3b7 built on Dec 12 2023 10:43:14
BOX86_LD_LIBRARY_PATH: /usr/local/lib/:/home/mastag/wine/lib/wine/i386-unix/:/lib/i386-linux-gnu/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/
BOX86_PATH: /home/mastag/wine/bin/
Counted 53 Env var
Looking for /home/mastag/steam/bin/steam
steam detected
Apply RC params for steam
Applying BOX86_NOGTK=1
Applying BOX86_DYNAREC_STRONGMEM=1
Applying BOX86_EMULATED_LIBS=libudev.so.0:libSDL2-2.0.so.0
argv[1]="-cef-disable-sandbox"
Not an ELF file (sign=#!/u)
Error: reading elf header of /home/mastag/steam/lib/steam/bin_steam.sh, trying to launch using bash instead
Debug level is 1
Show Segfault signal even if a signal handler is present
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA AES PMULL PageSize:4096 Running on Kryo-4XX-Silver Kryo-4XX-Gold with 8 Cores
Params database has 29 entries
Using bash "/usr/local/bin/bash_I386"
Box86 with Dynarec v0.3.3 76a5f3b7 built on Dec 12 2023 10:43:14
BOX86_LD_LIBRARY_PATH: /usr/local/lib/:/home/mastag/wine/lib/wine/i386-unix/:/lib/i386-linux-gnu/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/
BOX86_PATH: /home/mastag/wine/bin/
Counted 53 Env var
Looking for /usr/local/bin/bash_I386
argv[1]="/home/mastag/steam/bin/steam"
argv[2]="-cef-disable-sandbox"
Rename process to "bash_I386"
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
bin_steam.sh[23562]: Setting up Steam content in /home/mastag/.local/share/Steam
Box86 with Dynarec v0.3.3 76a5f3b7 built on Dec 12 2023 10:43:14
steam.sh[23562]: Running Steam on ubuntu 23.10 64-bit
steam.sh[23562]: STEAM_RUNTIME is enabled by the user
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-4XX-Silver Kryo-4XX-Gold with 8 Cores
Params database has 38 entries
Using bash "/usr/local/bin/bash_AMD64"
Box64 with Dynarec v0.2.5 b07ea346 built on Dec 12 2023 10:35:42
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 62 Env var
BOX64 LIB PATH: /usr/local/lib64/:/home/mastag/wine64/lib/i386-unix/:/home/mastag/wine64/lib/wine/x86_64-unix/:/lib/i386-linux-gnu/:/lib/x86_64-linux-gnu/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: /home/mastag/wine64/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/:/snap/bin/
Looking for /usr/local/bin/bash_AMD64
argv[1]="/home/mastag/.local/share/Steam/ubuntu12_32/steam-runtime/setup.sh"
Rename process to "bash_AMD64"
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
setup.sh[23645]: Updating Steam runtime environment...
steam.sh[23562]: Can't find 'steam-runtime-check-requirements', continuing anyway
Box86 with Dynarec v0.3.3 76a5f3b7 built on Dec 12 2023 10:43:14
[2023-12-12 13:12:57] Startup - updater built Apr 28 2023 18:32:42
[2023-12-12 13:12:57] Startup - Steam Client launched with: '/home/mastag/.local/share/Steam/ubuntu12_32/steam' '-cef-disable-sandbox'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
ATTENTION: default value of option vblank_mode overridden by environment.
[2023-12-12 13:12:57] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2023-12-12 13:12:57] Using the following download hosts for Public, Realm steamglobal
[2023-12-12 13:12:57] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-12-12 13:12:57] Verifying installation...
[2023-12-12 13:12:57] Unable to read and verify install manifest /home/mastag/.local/share/Steam/package/steam_client_ubuntu12.installed
[2023-12-12 13:12:57] Verification complete
[2023-12-12 13:12:57] Downloading Update...
[2023-12-12 13:12:58] Checking for available update...
[2023-12-12 13:12:58] Downloading manifest: http://media.steampowered.com/client/steam_client_ubuntu12
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Manifest download: waiting for download to finish
[2023-12-12 13:12:58] Manifest download: finished
[2023-12-12 13:12:58] Downloaded new manifest: /client/steam_client_ubuntu12 version 1702079146, installed version 0, existing pending version 0
[2023-12-12 13:12:58] Package file tenfoot_misc_all.zip.a49df66ba6bd900ed2c58bb4a9a578752f73f511 missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_dicts_all.zip.3a6cb3db75398c509bdc6e389408b6951017494b missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_fonts_all.zip.vz.e19674422bc376becd7bf4a73b4b52eefc34c7fe_12075477 missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_ambientsounds_all.zip.c8342205c2cdfec5329ec8ec2905ddaa33be3cb8 missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_sounds_all.zip.vz.3a674120cadd742865159e85dd3ec75b7dcc748c_1226636 missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_images_all.zip.vz.2bb2e0fd7778b60915d496578aa4722e1db8c58f_32706663 missing or incorrect size
[2023-12-12 13:12:58] Package file tenfoot_all.zip.vz.1fa19c9ff52876f8b9b9fa8cb4d5b210566dd699_2379523 missing or incorrect size
[2023-12-12 13:12:58] Package file steamui_websrc_all.zip.vz.82e7ed60f0e58a1a522895866ae5c83c339759ce_23699871 missing or incorrect size
[2023-12-12 13:12:58] Package file resources_misc_all.zip.vz.e86a975545f3ab21a77373870cb311ef93934b8c_2224876 missing or incorrect size
[2023-12-12 13:12:58] Package file resources_hidpi_all.zip.vz.3de815c3117712cb9eeb7ea4c8b275faf481dcfd_56342 missing or incorrect size
[2023-12-12 13:12:58] Package file resources_all.zip.vz.5b0960bde976b6339e7746a9d7d9e6bddb8ab6b1_2865754 missing or incorrect size
[2023-12-12 13:12:58] Package file strings_en_all.zip.a124ccdd3bd8dbbf1894fed167cec643898d2b5e missing or incorrect size
[2023-12-12 13:12:58] Package file strings_all.zip.vz.35a022da42cf9080c8a62745dc7bbe69636da053_2035395 missing or incorrect size
[2023-12-12 13:12:58] Package file public_all.zip.vz.d57d7434061f8673a8dd467bf014978b021eae46_12011487 missing or incorrect size
[2023-12-12 13:12:58] Package file steamui_websrc_sounds_all.zip.vz.2b3fb71b8e94238bb49d7a2279843cd4ae98eebb_2906422 missing or incorrect size
[2023-12-12 13:12:58] Package file steamui_websrc_movies_all.zip.4d2183b0476852dfb695b8d70192a0ccece8c7d0 missing or incorrect size
[2023-12-12 13:12:58] Package file bins_ubuntu12.zip.vz.88ff2c887a8fdace847c4206198f45e1fa913967_29913876 missing or incorrect size
[2023-12-12 13:12:58] Package file bins_pub_ubuntu12.zip.vz.dc4fe7a093870747ddf93845637776a26bab8ecc_9038175 missing or incorrect size
[2023-12-12 13:12:58] Package file bins_sdk_ubuntu12.zip.vz.0b353c22d95ac9cf9753c4c296fe59ddea62bb9f_19115945 missing or incorrect size
[2023-12-12 13:12:58] Package file bins_codecs_ubuntu12.zip.vz.e1c37fec077d9d19999d2589cacf89a7b8968d9f_6184923 missing or incorrect size
[2023-12-12 13:12:58] Package file bins_misc_ubuntu12.zip.vz.4e16fdf87ca8b6ce62d35dfd7beca1fe7a8f5f34_18423059 missing or incorrect size
[2023-12-12 13:12:58] Package file webkit_ubuntu12.zip.vz.4b7d948aab71c5c86f97938bf417b8e8efbd5d6b_74888580 missing or incorrect size
[2023-12-12 13:12:58] Package file miles_ubuntu12.zip.vz.5093ef941e6e5195a60ab3259077694dec994016_295496 missing or incorrect size
[2023-12-12 13:12:58] Package file sdl3_ubuntu12.zip.vz.b696855c56d150a1a57dda02d427fc2597e13aeb_1175696 missing or incorrect size
[2023-12-12 13:12:58] Package file steam_ubuntu12.zip.vz.6b5cb63c49067a3200046a87aad9dee3122dc075_2552408 missing or incorrect size
[2023-12-12 13:12:58] Package file runtime_part0_ubuntu12.zip.baf067276cbb5053bb596348699c541865b0635e missing or incorrect size
[2023-12-12 13:12:58] Package file runtime_part1_ubuntu12.zip.af541af025a8f381ae0983788a5f68fc4059af51 missing or incorrect size
[2023-12-12 13:12:58] Package file runtime_part2_ubuntu12.zip.e19d37c59dde50f6927f91bd7271ff82e92d0a82 missing or incorrect size
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_misc_all.zip.a49df66ba6bd900ed2c58bb4a9a578752f73f511
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_dicts_all.zip.3a6cb3db75398c509bdc6e389408b6951017494b
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_fonts_all.zip.vz.e19674422bc376becd7bf4a73b4b52eefc34c7fe_12075477
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_ambientsounds_all.zip.c8342205c2cdfec5329ec8ec2905ddaa33be3cb8
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_sounds_all.zip.vz.3a674120cadd742865159e85dd3ec75b7dcc748c_1226636
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_images_all.zip.vz.2bb2e0fd7778b60915d496578aa4722e1db8c58f_32706663
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/tenfoot_all.zip.vz.1fa19c9ff52876f8b9b9fa8cb4d5b210566dd699_2379523
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/steamui_websrc_all.zip.vz.82e7ed60f0e58a1a522895866ae5c83c339759ce_23699871
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/resources_misc_all.zip.vz.e86a975545f3ab21a77373870cb311ef93934b8c_2224876
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/resources_hidpi_all.zip.vz.3de815c3117712cb9eeb7ea4c8b275faf481dcfd_56342
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/resources_all.zip.vz.5b0960bde976b6339e7746a9d7d9e6bddb8ab6b1_2865754
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/strings_en_all.zip.a124ccdd3bd8dbbf1894fed167cec643898d2b5e
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/strings_all.zip.vz.35a022da42cf9080c8a62745dc7bbe69636da053_2035395
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/public_all.zip.vz.d57d7434061f8673a8dd467bf014978b021eae46_12011487
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/steamui_websrc_sounds_all.zip.vz.2b3fb71b8e94238bb49d7a2279843cd4ae98eebb_2906422
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/steamui_websrc_movies_all.zip.4d2183b0476852dfb695b8d70192a0ccece8c7d0
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/bins_ubuntu12.zip.vz.88ff2c887a8fdace847c4206198f45e1fa913967_29913876
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/bins_pub_ubuntu12.zip.vz.dc4fe7a093870747ddf93845637776a26bab8ecc_9038175
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/bins_sdk_ubuntu12.zip.vz.0b353c22d95ac9cf9753c4c296fe59ddea62bb9f_19115945
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/bins_codecs_ubuntu12.zip.vz.e1c37fec077d9d19999d2589cacf89a7b8968d9f_6184923
[2023-12-12 13:12:58] Manifest download: send request
[2023-12-12 13:12:58] Add pending download: http://media.steampowered.com/client/bins_misc_ubuntu12.zip.vz.4e16fdf87ca8b6ce62d35dfd7beca1fe7a8f5f34_18423059
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/webkit_ubuntu12.zip.vz.4b7d948aab71c5c86f97938bf417b8e8efbd5d6b_74888580
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/miles_ubuntu12.zip.vz.5093ef941e6e5195a60ab3259077694dec994016_295496
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/sdl3_ubuntu12.zip.vz.b696855c56d150a1a57dda02d427fc2597e13aeb_1175696
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/steam_ubuntu12.zip.vz.6b5cb63c49067a3200046a87aad9dee3122dc075_2552408
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/runtime_part0_ubuntu12.zip.baf067276cbb5053bb596348699c541865b0635e
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/runtime_part1_ubuntu12.zip.af541af025a8f381ae0983788a5f68fc4059af51
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Add pending download: http://media.steampowered.com/client/runtime_part2_ubuntu12.zip.e19d37c59dde50f6927f91bd7271ff82e92d0a82
[2023-12-12 13:12:59] Manifest download: send request
[2023-12-12 13:12:59] Downloading update (9,189 of 350,926 KB)...
...
[2023-12-12 13:13:33] Downloading update (350,926 of 350,926 KB)...
[2023-12-12 13:13:34] Download Complete.
[2023-12-12 13:13:34] Saving metrics to disk (/home/mastag/.local/share/Steam/package/steam_client_metrics.bin)
[2023-12-12 13:13:34] uninstalled manifest found in /home/mastag/.local/share/Steam/package/steam_client_ubuntu12 (1).
[2023-12-12 13:13:34] Extracting package...
[2023-12-12 13:14:30] Installing update...
[2023-12-12 13:15:42] Cleaning up...
[2023-12-12 13:15:42] Update complete, launching...
[2023-12-12 13:15:42] Shutdown
steam.sh[23562]: Restarting Steam by request...
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-4XX-Silver Kryo-4XX-Gold with 8 Cores
Params database has 38 entries
Using bash "/usr/local/bin/bash_AMD64"
Box64 with Dynarec v0.2.5 b07ea346 built on Dec 12 2023 10:35:42
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 64 Env var
BOX64 LIB PATH: /usr/local/lib64/:/home/mastag/wine64/lib/i386-unix/:/home/mastag/wine64/lib/wine/x86_64-unix/:/lib/i386-linux-gnu/:/lib/x86_64-linux-gnu/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/i386-linux-gnu/:/usr/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: /home/mastag/wine64/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/:/snap/bin/
Looking for /usr/local/bin/bash_AMD64
argv[1]="/home/mastag/.local/share/Steam/steam.sh"
argv[2]="-cef-disable-sandbox"
Rename process to "bash_AMD64"
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
steam.sh[23562]: Running Steam on ubuntu 23.10 64-bit
steam.sh[23562]: STEAM_RUNTIME has been set by the user to: /home/mastag/.local/share/Steam/ubuntu12_32/steam-runtime
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-4XX-Silver Kryo-4XX-Gold with 8 Cores
Params database has 38 entries
Box64 with Dynarec v0.2.5 b07ea346 built on Dec 12 2023 10:35:42
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 65 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/:/data/data/com.termux/files/usr/bin/:/system/bin/:/system/xbin/:/snap/bin/
Looking for /usr/local/bin/bash_AMD64
argv[1]="/home/mastag/.local/share/Steam/ubuntu12_32/steam-runtime/setup.sh"
argv[2]="--force"
Rename process to "bash_AMD64"
Using native(wrapped) libtinfo.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
/home/mastag/.local/share/Steam/ubuntu12_32/steam-runtime/setup.sh: line 58: 31282 Illegal instruction     "$libcurl_compat_setup" --runtime-optional "$steam_runtime_path"
setup.sh[31213]: Forced use of runtime version for 64-bit libcurl.so.4
setup.sh[31213]: Forced use of runtime version for 64-bit libcurl-gnutls.so.4
setup.sh[31213]: Forced use of runtime version for 32-bit libgtk-x11-2.0.so.0
setup.sh[31213]: Forced use of runtime version for 32-bit libcurl-gnutls.so.4
setup.sh[31213]: Forced use of runtime version for 32-bit libdbusmenu-gtk.so.4
setup.sh[31213]: Forced use of runtime version for 32-bit libcurl.so.4
setup.sh[31213]: Forced use of runtime version for 32-bit libdbusmenu-glib.so.4
steam.sh[23562]: Steam client's requirements are satisfied
Box86 with Dynarec v0.3.3 76a5f3b7 built on Dec 12 2023 10:43:14
[2023-12-12 13:16:20] Startup - updater built Dec  8 2023 00:32:59
[2023-12-12 13:16:20] Startup - Steam Client launched with: '/home/mastag/.local/share/Steam/ubuntu12_32/steam' '-cef-disable-sandbox'
ATTENTION: default value of option vblank_mode overridden by environment.
[2023-12-12 13:16:21] Loading cached metrics from disk (/home/mastag/.local/share/Steam/package/steam_client_metrics.bin)
[2023-12-12 13:16:21] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2023-12-12 13:16:21] Using the following download hosts for Public, Realm steamglobal
[2023-12-12 13:16:21] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-12-12 13:16:21] Verifying installation...
[2023-12-12 13:16:29] Verification complete

Steam logging initialized: directory: /home/mastag/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0x401a0080
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0x401a0090
lspci: Cannot open /proc/bus/pci/devices
ATTENTION: default value of option vblank_mode overridden by environment.
lspci: Cannot open /proc/bus/pci/devices
ATTENTION: default value of option vblank_mode overridden by environment.
steamwebhelper.sh[32500]: Runtime for steamwebhelper: defaulting to /home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[32500]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
steamwebhelper.sh[32500]: CEF sandbox already disabled

It stops here and the logs say:

$ cat /home/mastag/.local/share/Steam/logs/steamwebhelper.log 
/home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/run.sh: line 85: /home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/amd64/usr/bin/steam-runtime-identify-library-abi: cannot execute: required file not found
run.sh[32500]: steam-runtime-identify-library-abi --ldconfig-paths failed, falling back to ldconfig
/home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/run.sh: line 169: /home/mastag/.local/share/Steam/ubuntu12_64/steamwebhelper: cannot execute: required file not found

I'm no expert but perhaps Steam somehow tried to run this script natively instead of using the BOX86_BASH or BOX64_BASH binaries?

from box86.

MastaG avatar MastaG commented on August 27, 2024

@ptitSeb did you actually test running steam with both BOX86_BASH and BOX64_BASH set?
So without using the binfmt service?
I think when processing the scripts, it doesn't pick up the right terminal e.g. running it in BOX64_BASH while it should be running in BOX86_BASH.

from box86.

ptitSeb avatar ptitSeb commented on August 27, 2024

If you set both BASH env., only BOX64_BASH will be used. But box64 can launch box86 when needed, if box86 reside in the same folder as box64 (maybe I should create a BOX64_BOX86 env. var. to setup the path of box86?).

from box86.

MastaG avatar MastaG commented on August 27, 2024

Well I'm a bit confused now, because I'm following the instructions for running Steam, and I've used your install script to extract it to ~/steam.
Now the semaphore crashes are gone after running Proot with sysvipc support.
However Steam seems to perform a lot of annoying scripts on startup.
And I need to run it with box86 right?
It seems to stop at:

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0x401a0080
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0x401a0090
lspci: Cannot open /proc/bus/pci/devices
ATTENTION: default value of option vblank_mode overridden by environment.
lspci: Cannot open /proc/bus/pci/devices
ATTENTION: default value of option vblank_mode overridden by environment.
steamwebhelper.sh[32500]: Runtime for steamwebhelper: defaulting to /home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[32500]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
steamwebhelper.sh[32500]: CEF sandbox already disabled

And the log shows:

/home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/run.sh: line 85: /home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/amd64/usr/bin/steam-runtime-identify-library-abi: cannot execute: required file not found
run.sh[32500]: steam-runtime-identify-library-abi --ldconfig-paths failed, falling back to ldconfig
/home/mastag/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/run.sh: line 169: /home/mastag/.local/share/Steam/ubuntu12_64/steamwebhelper: cannot execute: required file not found

So it seems to launch the webhelper natively but somehow this call wasn't intercepted by BOX64_BASH?

from box86.

ptitSeb avatar ptitSeb commented on August 27, 2024

something like

BOS64_BASH=~/box64/tests/bash box64 steam

should launch steam yes

from box86.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.