1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
Error loading needed lib libzstd.so.1
Greetings :)
I can't launch the game Kandria, v1.1.14
https://shinmera.itch.io/kandria
https://store.steampowered.com/app/1261430/Kandria/
Error log,
```bash
rico [ /opt/games/kandria ]$ ./kandria-linux.run
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on - - - - - - - - - - - - - - - - with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 89 entries
Box64 with Dynarec v0.3.1 9eaaaaa built on Sep 4 2024 06:35:23
BOX64: Detected 48bits at least of address space
Counted 62 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/opt/rustc/bin/:/usr/local/bin/:/usr/bin/:/opt/ant/bin/:/opt/jdk/bin/:/opt/bin/
Looking for ./kandria-linux.run
Rename process to "kandria-linux.run"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Error loading needed lib libzstd.so.1
Using native(wrapped) libm.so.6
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) libbsd.so.0
Error loading one of needed lib
Error: Loading needed libs in elf /opt/games/kandria/././kandria-linux.run
```
I have tired, but in vain.
- copy and sideloading my aarch64 native system zstd shared libs
```bash
rico [ ~/rk3588-sdk ]$ ls -lah /usr/lib/libzstd*
lrwxrwxrwx 1 root root 16 Sep 1 17:52 /usr/lib/libzstd.so -> libzstd.so.1.5.6
lrwxrwxrwx 1 root root 16 Sep 1 17:52 /usr/lib/libzstd.so.1 -> libzstd.so.1.5.6
-rwxr-xr-x 1 root root 885K Sep 1 17:52 /usr/lib/libzstd.so.1.5.6
```
- `export BOX64_PREFER_EMULATED=1`
- `export BOX64_PREFER_WRAPPED=1`
-----------------------------------
And this is the 2nd time I've encountered suspicious 'libzstd' issue.
Another one is the game, Noreya The Gold Project.
https://www.gog.com/en/game/noreya_the_gold_project
https://store.steampowered.com/app/1760330/Noreya_The_Gold_Project/
Lines as `Warning: Weak Symbol ZSTD_trace_decompress` look a bit strange?
Error log,
```bash
rico [ /opt/games/noreya/squashfs-root ]$ ./'Noreya The Gold Project'
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on - - - - - - - - - - - - - - - - with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 89 entries
Box64 with Dynarec v0.3.1 9eaaaaa built on Sep 4 2024 06:35:23
BOX64: Detected 48bits at least of address space
Counted 63 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/opt/rustc/bin/:/usr/local/bin/:/usr/bin/:/opt/ant/bin/:/opt/jdk/bin/:/opt/bin/
Looking for ./Noreya The Gold Project
Rename process to "Noreya The Gold Project"
Redirecting overridden malloc from symtab function for /opt/games/noreya/squashfs-root/Noreya The Gold Project
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a649bc8 (0xa0d8b96)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a649bd0 (0xa0d8ba6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a2d8 (0xa0d99b6)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a2e0 (0xa0d99c6)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a528 (0xa0d9e56)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a530 (0xa0d9e66)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a538 (0xa0d9e76)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a64a540 (0xa0d9e86)
munmap_chunk(): invalid pointer
NativeBT: ./Noreya The Gold Project() [0x34a6c788]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xffffad08079c]
NativeBT: /usr/lib/libc.so.6(+0x848b8) [0xffffacf048b8]
NativeBT: /usr/lib/libc.so.6(gsignal+0x1c) [0xffffaceb5c7c]
NativeBT: /usr/lib/libc.so.6(abort+0xf4) [0xffffacea1900]
NativeBT: /usr/lib/libc.so.6(+0x78124) [0xffffacef8124]
NativeBT: /usr/lib/libc.so.6(+0x8f428) [0xffffacf0f428]
NativeBT: /usr/lib/libc.so.6(+0x8f604) [0xffffacf0f604]
NativeBT: /usr/lib/libc.so.6(__libc_free+0x5c) [0xffffacf13b1c]
NativeBT: [0xffffa0919dc4]
EmulatedBT: box64(free+0) [0x100a0]
EmulatedBT: /opt/games/noreya/squashfs-root/Noreya The Gold Project+9ded4f0 [0x109ded4f0]
EmulatedBT: /opt/games/noreya/squashfs-root/Noreya The Gold Project(__libc_csu_init+45) [0x102465b65]
EmulatedBT: box64(ExitEmulation+0) [0x10080]
EmulatedBT: /opt/games/noreya/squashfs-root/Noreya The Gold Project(+2a) [0x1020d402a]
1603|SIGABRT @0xffffacf048b8 (???(/usr/lib/libc.so.6+0x848b8)) (x64pc=0x100a0/"???", rsp=0xffffac9592c8, stack=0xffffac15a000:0xffffac95a000 own=(nil) fp=0xffffac9593c0), for accessing 0x3e800000643 (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000000000019 RSP-0x18:0x0000ffffac959360 RSP-0x10:0x000000010a7f9768 RSP-0x08:0x0000ffffac9593c0
RSP+0x00:0x0000000109ded073 RSP+0x08:0x0000000000000019 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000000
RAX:0x0000ffffac959341 RCX:0x0000000000000031 RDX:0x00003b4400210998 RBX:0x000000010a7f9600
RSP:0x0000ffffac9592c8 RBP:0x0000ffffac9593c0 RSI:0x0000ffffacf1e4c0 RDI:0x00003b4400210990
R8:0x0000ffffac959320 R9:0x00003b4400210990 R10:0x0000000000000000 R11:0x0000000000000060
R12:0x0000000000000019 R13:0x0000000000000000 R14:0x0000ffffac959360 R15:0x000000010a7f9768
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Aborted (core dumped)
```
|