Greetings, tiny Earth Human! Morbo sees the same error in a different place, and wonders if the two issues might be related.
Did you recently upgrade macOS, by any chance?
Morbo uses the official daily pre-compiled zig/zls binaries (aarch64-macos.13.3). But when Morbo builds a simple "hello world" program that links to an externally-built library object, zig build run fails with the same error message that Earth Human is seeing:
$ zig build run
zig build-exe import_libfoobar Debug native: error: error(link): undefined reference to symbol 'dyld_stub_binder'
error: UndefinedSymbolReference
zig build-exe import_libfoobar Debug native: error: the following command exited with error code 1:
zig build-exe src/import_libfoobar.zig \
-I/opt/homebrew/Cellar/fontconfig/2.14.2/include \
-I/opt/homebrew/opt/freetype/include/freetype2 \
-I/opt/homebrew/Cellar/libpng/1.6.39/include/libpng16 \
--cache-dir zig-cache \
--global-cache-dir ~/.cache/zig \
--name helloworld_test \
--mod clap::contrib/zig-clap/clap.zig \
--deps clap \
-I src/file \
-I src/util \
-L dist/lib \
--enable-cache \
--listen=-
Morbo is using the following versions of zig/zls:
- zig
v0.11.0-dev.2336+5b82b4004
- zls
v0.11.0-dev.359+8b5c649
Morbo recently upgraded to macOS 13.3 (22E252) from 13.x (Morbo doesn't remember the exact previous version/build. I WILL DESTROY YOU!).
It might just be a coincidence, but Morbo only started getting these errors after upgrading macOS. Perhaps the puny OS upgrade broke something?