-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM ld64.lld #85938
Comments
The full error message: = note: ld64.lld: error: unknown argument '-m64'
ld64.lld: error: unknown argument '-Wl,-dead_strip'
ld64.lld: error: unknown argument '-nodefaultlibs'
ld64.lld: error: must specify -platform_version |
I couldn't find -nodefaultlibs neither in the ld man page nor in Options.td file. It seems to be a GNU thing. |
ld64.lld is missing here:
|
Add platform_version: rust/compiler/rustc_codegen_ssa/src/back/link.rs Line 2209 in 2577825
xcrun --show-sdk-platform-version -sdk macosx |
This was referenced Jun 4, 2021
Closing as a duplicate of #11937 since this issue is about using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to use the new MachO linker from LLVM:
First issue, rust appends -Wl, which makes the linker unhappy. Dead stripping is supported since today (https://reviews.llvm.org/D103324).
Second issue the linker requires a platform version:
https://github.com/llvm/llvm-project/blob/06e047227d71b2c1c477e280172abed0f1eed2c8/lld/MachO/Driver.cpp#L598
platform_version was introduced into clang:
https://reviews.llvm.org/D71579
Did the
LinkerFlavor
detection fail?#39915
The text was updated successfully, but these errors were encountered: