Open Beyley opened 8 months ago
Wayland-client likely requires libc to be linked.
Wayland-client likely requires libc to be linked.
Ah, yeah that was it, that thought completely didnt pass my mind, is there no way to provide a better error for that this kind of scenario? an instant segfault at address 0x0 with no extra info is very hard to debug
why does the x86 backend provide an error without libc?
why does the x86 backend provide an error without libc?
It actually runs correctly under the selfhosted backend, no error is produced
ah right, I'm getting an error because I don't have Wayland but my question still stands, how is the x86 backend behaving correctly?
Zig Version
0.12.0-dev.1856+94c63f31f
Steps to Reproduce and Observed Behavior
Clone https://github.com/Beyley/zwin at commit
037c43f473f9763657fdb4a65476a35f18b3e559
, on a linux machine runzig build run
App will segfault immediately on startup, with no nice error trace, running through LLDB reveals some weirdness is going on with the generated assembly callingposixCallMainAndExit
stack trace on crash:
Expected Behavior
App builds and runs successfully, as it does on the selfhosted backend (uncomment lines 15-16 in build.zig)