Closed grav closed 1 year ago
I don't have an arm machine handy, but I'm curious, could you try passing -DBUILDSHARED,LIBS=OFF to CMake? I ran into similar issues trying to build for Android
Thanks, @ADKaster Tried
$ cmake -GNinja -B Build -DCMAKE_CXX_COMPILER=clang++ -DBUILD_SHARED_LIBS=OFF
$ cmake --build Build
$ ninja -C Build debug
but it gives me the same crash.
@grav I was able to get ladybird building in my M1 mac (arm64). I just needed to edit the Ninja build script to use lldb(mac alternative) instead of gdb because i think gdb still doenst support arm64 afaik.
I just needed to edit the Ninja build script to use lldb(mac alternative) instead of gdb because i think gdb still doenst support arm64 afaik.
Thanks @ricardonunosr Not knowing a lot about C toolchains, can you point me to where you did the edit?
Cheers, Mikkel
Yes ofc @grav , when you do a build just go into the Build
folder then build.ninja
file then search for gdb
and switch to lldb
. I think the cmake script should make this automatically but not sure. Let me know if it works 👍
I can reproduce the same issue and switching the debugger won't help. On arm64 Linux, gdb works, but the issue can be reproduced without a debugger.
I triaged the bug and opened a Serenity issue about it: https://github.com/SerenityOS/serenity/issues/15290
Awesome! One more browser for Linux ARM64 (looking at you, Chrome!)
On Arch Linux ARM64, I get a Segmentation fault on a fresh checkout (2ebaaf5e5ce1c954e8c3e6bfb0c17cc0e412e1b6):
Building (with clang, since ldd+gcc results in build error):
Running (no window showing up, crashing immediately):