-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Current LLD 20 fails to link dependency in liblldMachO.a correctly #122655
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
Comments
The missing function seems to be |
Sounds like #117514. |
Let me take a look. |
@lerno Can you provide the build environment and commands for me to reproduce this? I tested on my ubuntu-22.04 with build-in
|
This is the build script: https://github.com/c3lang/c3c/blob/master/CMakeLists.txt Here is the CI entry to build it so you can see how it's invoked: This is the build arguments for that makefile:
|
@lerno The order of the link needs to be reversed.
liblldMachO.a references |
Ah! I didn't even think about looking at that because I had gotten used to LLVM sometimes breaking. So I was incorrectly assuming I failed to link something that was now expected but may not in the LLD CMake scripts or something. So simple... |
Might be worth adding a note to the releasenotes to make people aware of this stricter link ordering though. |
I can verify that this fixed the build. Should I close this issue? |
Since the build has been fixed, I think the issue can be closed. |
linking liblldMachO.a fails on a vanilla Linux build, with the following code:
This first started happening around Dec 19 2024, so is related some change during that time.
The text was updated successfully, but these errors were encountered: