ptitSeb / box64

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

Global Symbol _ZN9__gnu_cxx21zoneinfo_dir_overrideEv not found #950

Open batuhanburakcin opened 1 year ago

batuhanburakcin commented 1 year ago

when trying to run x86_64 elf image, i have this error below

Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6 Using native(wrapped) libm.so.6 Using native(wrapped) libfreetype.so.6 Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libz.so.1 Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Warning: Global Symbol _ZN9__gnu_cxx21zoneinfo_dir_overrideEv not found, cannot apply R_X86_64_GLOB_DAT @0xffff85428268 ((nil)) in /lib/x86_64-linux-gnu/libstdc++.so.6

ptitSeb commented 1 year ago

This probably comes with a more recent libstdc++.so.6 . Try to grab a more recent x86_64 version of it and put it into the app folder.

ptitSeb commented 1 year ago

Also, this is just a Warning, it should not stop there. I assume this is not the complete log?

Min1123 commented 10 months ago

Same issue seen (I think?), RPi5 (8GiB RAM), Raspberry Pi OS (aarch64, bookworm), 16k pages, executable built with PAGE16K=1

Attempting to run GOG 2064 Read Only Memories x64 (similar message for GOG Tyranny)

MESA_GL_VERSION_OVERRIDE=3.3 box64 ./start.sh Running on Cortex-A76 with 4 Cores Params database has 48 entries Using bash "/home/min/.cache/yay/box64/src/box64-0.2.4/tests/bash" Box64 v0.2.7 4c174a42 built on Jan 14 2024 15:45:50 BOX64: Detected 48bits at least of address space Counted 53 Env var BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ BOX64 BIN PATH: ./:bin/:/home/min/bin/:/home/min/.local/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/ Looking for ./start.sh Not an ELF file (sign=#!/b) Error: Reading elf header of /home/min/GOG Games/2064 Read Only Memories/start.sh, Try to launch using bash instead Running on Cortex-A76 with 4 Cores Params database has 48 entries Using bash "/home/min/.cache/yay/box64/src/box64-0.2.4/tests/bash" Box64 v0.2.7 4c174a42 built on Jan 14 2024 15:45:50 BOX64: Detected 48bits at least of address space Counted 53 Env var BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ BOX64 BIN PATH: ./:bin/:/home/min/bin/:/home/min/.local/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/ Looking for /home/min/.cache/yay/box64/src/box64-0.2.4/tests/bash bash detected, disabling banner Apply RC params for bash Running 2064: Read Only Memories Running on Cortex-A76 with 4 Cores Params database has 48 entries Box64 v0.2.7 4c174a42 built on Jan 14 2024 15:45:50 BOX64: Detected 48bits at least of address space Counted 54 Env var BOX64 LIB PATH: /home/min/GOG Games/2064 Read Only Memories/game/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ BOX64 BIN PATH: ./:bin/:/home/min/bin/:/home/min/.local/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/ Looking for ./ROM.x86_64 Rename process to "ROM.x86_64" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using native(wrapped) libGL.so.1 Using native(wrapped) libX11.so.6 Using native(wrapped) libXcursor.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXext.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXrender.so.1 Warning: Mmap64 for (@0x7fff00000000 0x255140) for elf "/lib/x86_64-linux-gnu/libstdc++.so.6" returned 0x7ffeea1ac000(0x7fff00000000/0x4000) instead Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6 Using native(wrapped) libm.so.6 Warning: Mmap64 for (@0x7fff01000000 0x23368) for elf "/lib/x86_64-linux-gnu/libgcc_s.so.1" returned 0x7ffeea164000(0x7fff01000000/0x4000) instead Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libutil.so.1 Using native(wrapped) libbsd.so.0 Warning: Global Symbol _ZN9__gnu_cxx21zoneinfo_dir_overrideEv not found, cannot apply R_X86_64_GLOB_DAT @0x7ffeea3fa268 ((nil)) in /lib/x86_64-linux-gnu/libstdc++.so.6 Found path: /home/min/GOG Games/2064 Read Only Memories/game/ROM.x86_64 Error: Mmap64 for (@0x7fff02000000 0x50d1e0) for elf "/home/min/GOG Games/2064 Read Only Memories/game/ROM_Data/Mono/x86_64/libmono.so" returned 0x7ffee83f0000(0x7fff02000000/0x200000) instead Error: loading for elf /home/min/GOG Games/2064 Read Only Memories/game/ROM_Data/Mono/x86_64/libmono.so Unable to load mono library from /home/min/GOG Games/2064 Read Only Memories/game/ROM_Data/Mono (x86_64) Failed to load mono

ptitSeb commented 10 months ago

Unity3D games (because of the C# engine) will probably not work with a 16k pagesize, as it's probably hardcoded for 4k pagesize for it's JIT.