Trying to build dev-esp32 branch @ 32d03a21da4fdfddf153d118e2e32a064d6d0003 on macOS 13.3.1 on Apple Silicon appears to be hitting a bug in ziglang while compiling luac.cross (output trimmed to only include relevant stuff):
This appears to be the same issue as https://github.com/ziglang/zig/issues/11896 which has been open for a while and maaaaybe will be fixed in the next version 0.11 (it's on their milestones but not yet fixed, so who knows if it gets pushed out or not).
Looking at how zig is used here, it seems to be a wrapper around clang? At least for me, this patch to just not use it at all fixed the issue:
I found this comment referencing zig https://github.com/nodemcu/nodemcu-firmware/issues/1661#issuecomment-878903150 so I guess it's here for the cases where you don't have a host C compiler? Maybe we can make it configurable for the cases where hostcc is available and works, but zig doesn't? Just a thought, for now I've just added the above patch to my branch, but I figured I should raise this if only for other people hitting the same issue to search for!
Trying to build dev-esp32 branch @ 32d03a21da4fdfddf153d118e2e32a064d6d0003 on macOS 13.3.1 on Apple Silicon appears to be hitting a bug in ziglang while compiling luac.cross (output trimmed to only include relevant stuff):
This appears to be the same issue as https://github.com/ziglang/zig/issues/11896 which has been open for a while and maaaaybe will be fixed in the next version 0.11 (it's on their milestones but not yet fixed, so who knows if it gets pushed out or not).
Looking at how zig is used here, it seems to be a wrapper around clang? At least for me, this patch to just not use it at all fixed the issue:
I found this comment referencing zig https://github.com/nodemcu/nodemcu-firmware/issues/1661#issuecomment-878903150 so I guess it's here for the cases where you don't have a host C compiler? Maybe we can make it configurable for the cases where hostcc is available and works, but zig doesn't? Just a thought, for now I've just added the above patch to my branch, but I figured I should raise this if only for other people hitting the same issue to search for!