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
I was getting the following error when building on MacOS (version 11.6), using bmake (version stable 20211001) installed from homebrew:
...
ld -o build/lib/libfsm.dylib -dylib -flat_namespace -undefined dynamic_lookup -macosx_version_min 10.6 build/lib/adt.opic build/lib/print.opic build/lib/libfsm.opic
ld: warning: building for macOS 10.6 is deprecated
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
*** Error code 1
I was able to resolve this by making the following change to share/mk/so.mk
I'm not going to claim that this solution is my original invention, I simply searched for other people having similar problems with ld on MacOS, and found this which explained the problem and provided a solution: https://stackoverflow.com/questions/52830484/nasm-cant-link-object-file-with-ld-on-macos-mojave
Because of that, I am not confident that I understand the implications of these changes on other versions of MacOS well enough to submit a pull request with this change. However, I felt it useful to report the issue for someone more capable to take it from here, and provide the solution that worked for me in case others have the same issue and could benefit from the workaround.
The text was updated successfully, but these errors were encountered:
I'd like to note that @thobe 's solution is still right in principle, although the suffix to the path given by xcode-select -p has changed. I suspect that will continue to be the case with new macOS releases if Apple hasn't settled on a new convention yet, but should that not be the case (and as a matter of record), what worked for me on Monterey was:
I was getting the following error when building on MacOS (version 11.6), using
bmake
(versionstable 20211001
) installed from homebrew:I was able to resolve this by making the following change to
share/mk/so.mk
I'm not going to claim that this solution is my original invention, I simply searched for other people having similar problems with
ld
on MacOS, and found this which explained the problem and provided a solution: https://stackoverflow.com/questions/52830484/nasm-cant-link-object-file-with-ld-on-macos-mojaveBecause of that, I am not confident that I understand the implications of these changes on other versions of MacOS well enough to submit a pull request with this change. However, I felt it useful to report the issue for someone more capable to take it from here, and provide the solution that worked for me in case others have the same issue and could benefit from the workaround.
The text was updated successfully, but these errors were encountered: