You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run zig build -Dtarget=aarch64-ios --sysroot "D:\wsl\sdks\iPhoneOS12.4.sdk\"build with tbd v3 sdk. Get error.
run zig build -Dtarget=aarch64-ios --sysroot "D:\wsl\sdks\iPhoneOS14.5.sdk\"build with tbd v4 sdk. Build ok.
Expected Behavior
working as tbd v4 sdk
Actual Behavior
with old sdk got error
LLVM Emit Object... error(link): undefined reference to symbol 'dyld_stub_binder'
error: UndefinedSymbolReference
Repo...The following command exited with error code 1:
C:\Users\user\scoop\apps\zig-dev\current\zig.exe build-exe D:\Repo\applepie\src\main.zig --cache-dir D:\Repo\applepie\zig-cache --global-cache-dir C:\Users\user\AppData\Local\zig --name Repo -target aarch64-io
s -mcpu generic --pkg-begin apple D:\Repo\applepie\libs\apple_pie\src\apple_pie.zig --pkg-end --pkg-begin kit D:\Repo\applepie\libs\ZigKit\src\main.zig --pkg-end -L D:/wsl/sdks/iPhoneOS12.4.sdk/usr/lib -iframe
workwithsysroot D:/wsl/sdks/iPhoneOS12.4.sdk/System/Library/Frameworks -F D:/wsl/sdks/iPhoneOS12.4.sdk/System/Library/Frameworks -framework Foundation -framework UIKit --sysroot D:\wsl\sdks\iPhoneOS12.4.sdk\ -
-enable-cache
error: the following build command failed with exit code 1:
D:\Repo\applepie\zig-cache\o\5b0617b5fd679c2c937808f73236d6da\build.exe C:\Users\user\scoop\apps\zig-dev\current\zig.exe D:\Repo\applepie D:\Repo\applepie\zig-cache C:\Users\user\AppData\Local\zig -Dtarget=aar
ch64-ios --sysroot D:\wsl\sdks\iPhoneOS12.4.sdk\
The text was updated successfully, but these errors were encountered:
maxxnino
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jun 20, 2022
MachO Flush... error(link): undefined reference to symbol 'dyld_stub_binder'
error: UndefinedSymbolReference
with
$ zig version0.10.1
$ zig cc --versionHomebrew clang version 15.0.7Target: x86_64-apple-darwin22.4.0Thread model: posixInstalledDir: /usr/bin
Using the latest binary from the downloads page fixed my very simple case:
$ ~/Downloads/zig-macos-x86_64-0.11.0-dev.2563+35f9c8444/zig cc ./foo.c && ./a.outhi
Not sure if the same applies to the error with the iOS SDK, but it could be worth checking if this was (inadvertently?) solved with some recent 0.11.x work! (Maybe the upgrade to clang 16?)
Zig Version
0.10.0-dev.2624+d506275a0
Steps to Reproduce
zig init-exe
run
zig build -Dtarget=aarch64-ios --sysroot "D:\wsl\sdks\iPhoneOS12.4.sdk\"
build with tbd v3 sdk. Get error.run
zig build -Dtarget=aarch64-ios --sysroot "D:\wsl\sdks\iPhoneOS14.5.sdk\"
build with tbd v4 sdk. Build ok.Expected Behavior
working as tbd v4 sdk
Actual Behavior
with old sdk got error
The text was updated successfully, but these errors were encountered: