Open Botspot opened 3 years ago
Update: I've downloaded @chunky-milk's x64_libs.zip file, and extracted the files to /opt/microsoft/msedge-beta
.
Out of many files, this file was created: /opt/microsoft/msedge-beta/libgobject-2.0.so.0
. But it seemed to make no difference - same box64 error as before.
@Botspot does just running '/opt/microsoft/msedge-beta/msedge' (without box64 at the beginning) give any other output?
I plan to add gtk (from box86) in next dev. cycle of box64.
Update: I've downloaded @chunky-milk's x64_libs.zip file, and extracted the files to
/opt/microsoft/msedge-beta
.Out of many files, this file was created:
/opt/microsoft/msedge-beta/libgobject-2.0.so.0
. But it seemed to make no difference - same box64 error as before.
#!/bin/bash
URL=$1
sudo wget $1
sudo mkdir lib
sudo dpkg --extract *.deb lib/
sudo cp lib/usr/lib/x86_64-linux-gnu/* ./
sudo rm -rf lib
sudo rm *.deb
you have to search the libs name in pkg.org and then give the amd64 deb to this script and it will be ready PS:you have to run it from there @Botspot
Update: now using PiOS 64-bit Bookworm with box64
pi@raspberrypi:~ $ box64 /opt/microsoft/msedge/msedge
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on Cortex-A76 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 864 MHz
Params database has 61 entries
Box64 with Dynarec v0.2.7 eda857cb built on Apr 9 2024 06:17:54
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 52 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/pi/.local/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/local/games/:/usr/games/
Looking for /opt/microsoft/msedge/msedge
Rename process to "msedge"
Redirecting overridden malloc from dynsym function for /opt/microsoft/msedge/msedge
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) 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) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libdrm.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libexpat.so.1
Using native(wrapped) libm.so.6
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) libxkbcommon.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libasound.so.2
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 __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x113761148 (0x12c17dd6)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x113761150 (0x12c17de6)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x113761430 (0x12c183a6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x113761438 (0x12c183b6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x113761a40 (0x12c18fc6)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x113761a48 (0x12c18fd6)
Warning: Weak Symbol _ZTHN10openscreen8internal20ScopedTraceOperation7traces_E not found, cannot apply R_X86_64_JUMP_SLOT @0x113761b78 (0x12c19236)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x113762070 (0x12c19c26)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x113762078 (0x12c19c36)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x113762080 (0x12c19c46)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x113762088 (0x12c19c56)
Warning: Weak Symbol _ZTHN3re25hooks7contextE not found, cannot apply R_X86_64_JUMP_SLOT @0x1137634d8 (0x12c1c4f6)
free(): invalid pointer
NativeBT: /opt/microsoft/msedge/msedge() [0x34a17058]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7f9df8e7b0]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x80a10) [0x7f9de00a10]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(gsignal+0x1c) [0x7f9ddba76c]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(abort+0xf0) [0x7f9dda74bc]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x74aec) [0x7f9ddf4aec]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x8ae6c) [0x7f9de0ae6c]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x8cbf8) [0x7f9de0cbf8]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(__libc_free+0xd8) [0x7f9de0f72c]
NativeBT: [0x7f9a016f6c]
EmulatedBT: box64(cfree+0) [0x100a0]
EmulatedBT: /opt/microsoft/msedge/msedge+9d11525 [0x109d11525]
EmulatedBT: /opt/microsoft/msedge/msedge+9d1132d [0x109d1132d]
EmulatedBT: /opt/microsoft/msedge/msedge+390caf4 [0x10390caf4]
EmulatedBT: /opt/microsoft/msedge/msedge(ChromeMain+74) [0x10390c284]
EmulatedBT: ??? [(nil)]
1390079|SIGABRT @0x7f9de00a10 (???(/lib/aarch64-linux-gnu/libc.so.6+0x80a10)) (x64pc=0x100a0/???:"???", rsp=0x7f9dbeebc8, stack=0x7f9d3f0000:0x7f9dbf0000 own=(nil) fp=0x7f9dbeec30), for accessing 0x3e8001535ff (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000101bb40f1 RSP-0x18:0x0000007f9dbeebd8 RSP-0x10:0x0000000000000000 RSP-0x08:0x0000007f9dbeec30
RSP+0x00:0x0000000109d0fc4d RSP+0x08:0x0000000000000000 RSP+0x10:0x0000000113900035 RSP+0x18:0x0000007800201060
RAX:0x0000000000000001 RCX:0x0000000000000001 RDX:0x0000007f9dbeeb8b RBX:0x0000000000000000
RSP:0x0000007f9dbeebc8 RBP:0x0000007f9dbeec30 RSI:0x0000007f9de1a200 RDI:0x0000007800210000
R8:0x0000007800210000 R9:0x0000000000000000 R10:0x0000000000000030 R11:0x0000000000000006
R12:0x0000000000000016 R13:0x0000000101bb40f1 R14:0x0000007f9dbeebd8 R15:0x0000000000000000
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Aborted
It seems to get a bit farther., but still fails.
Download MS Edge from here: https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_123.0.2420.81-1_amd64.deb?brand=M102
@ptitSeb, is box64 generally able to run chromium-based browsers? Do I need to enable any environment variables to make it work?
@Botspot No, unfortunately most/all browser-based programs (which also include electron-based ones) are very unstable and rarely work with box64 for now. Any debugging effort toward fixing that is welcome, but browser-based programs are nearly impossible to debug...
I'm using armhf RPiOS, with the 64-bit kernel enabled. I've installed raspbian-nspawn-64 in it, and have compiled box64 successfully.
To download and run Edge:
Output: