lukewilliamboswell / roc-platform-template-zig

Zig platform template
Universal Permissive License v1.0
1 stars 5 forks source link

Investigate `___zig_probe_stack` on Intel Macs #6

Open lukewilliamboswell opened 3 days ago

lukewilliamboswell commented 3 days ago

Note we use ReleaseFast to disable the stack probe which causes issues on Intel Macs.

We see the following error in CI

   Undefined symbols for architecture x86_64:
   "___zig_probe_stack", referenced from:
       _debug.panicExtra__anon_3134 in libhost.a.o)
       _debug.panicExtra__anon_3136 in libhost.a.o)
       _debug.panicExtra__anon_3730 in libhost.a.o)
       _debug.panicExtra__anon_4078 in libhost.a.o)
       _debug.ModuleDebugInfo__struct_4612.loadOFile in libhost.a.o)
       _dwarf.DwarfInfo.getLineNumberInfo in libhost.a.o)
       _debug.printLineFromFileAnyOs__anon_7202 in libhost.a.o)
       ...
   ld: symbol(s) not found for architecture x86_64

Need to investigate and figure out if there is anything wrong here. Update build.roc etc...

ostcar commented 3 days ago

I think, you have to set stack_check to false. Here is an example how it is done with zig 0.13: https://github.com/ostcar/roc-aoc-platform/blob/43064f864b7a9c1c8db452c85b108bbbe917d3c3/build.zig#L77