-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Revert "build: bootstrap SwiftPM with forked and not host clang" #67339
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
Conversation
@swift-ci Please smoke test |
What did this pull break? It appears to work fine on the SPM CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Hopefully @al45tair can shed a little light. Our build jobs have ben failing with missing yams symbols. I don't know why the public SPM job passed while other build bots and our local builds are failing:
|
The error given appears to be related to linking and makes no sense, as both say arm64: I think this is the wrong way to fix it, in any case, as this Swift-forked clang is what should be used, and was for years. |
My guess is that there’s some issue with the forked clang that makes the SwiftPM build fail when run from the build script. That needs to be addressed before we can switch over, because breaking it blocks other people. I realise it’s annoying having things reverted, and I appreciate what you’re trying to do here, but I think in this case reverting until the build issue has been resolved is absolutely the right way forward. Sorry. |
Sure, I was just skeptical this was the cause of the build issue, as using this clang worked for years. If reverting this has fixed your SPM build, I have no problem with this revert. Now the question is, where is the failing build log, so we can figure out the problem? Because I don't see any CI failures with this issue. |
I'm looking into this at the moment to try to figure out why it's happening (I can reproduce it locally). I'll let you know when I have a fix and we can try the original change again. |
OK, since we're discussing it in the revert already I'll keep the discussion here. The issue is that CMake is entirely too clever for its own good. When it's trying to locate the |
Hence, when you changed things to use the just-built compiler, we ended up trying to use the wrong |
OK, makes sense, was the macOS CMake also recently updated, like on linux with #67018, so that's why it's only failing now? Let me know how you think this should be fixed on macOS, as this pull works everywhere else. |
I'm talking to @etcwilde about it at the moment. In an ideal world we'd be using |
OK. I think that once swiftlang/swift-package-manager#6721 has landed, we will probably be good to have another go at your change. |
Reverts #64629