-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Linux specific regression -- error: cannot inherit from class 'NSLock' because it has overridable members that could not be loaded #5108
Comments
I've been working on bisecting this between the 07-15 and 07-22 toolchains, and I've been able to build the 07-15 swiftlang sources (but it did require a cherry-pick of b7ec9c84. I'm using the The problem is that after the compiler is built, I go to compile the reproducer, and it fails with Am I missing some kind of link step to make sure the newly built Foundation is discoverable? |
I'm seeing this issue as well with |
Moving this issue to the compiler repo, since it seems like the investigation should continue in that space. |
Bump. Has this landed on anyone specific for triage? Anything I can do to help on my end? |
The note points to the @clackary (Hi!) as a workaround, importing @parkera this will need a fix in the swift-corelibs-foundation project. Can we make sure the type of |
Please don't import CoreFoundation on Linux. It is (supposed to be) an implementation detail. |
Will switching to |
Yes adopting |
I'd like to double check with some people before we merge it -- but I put up a PR for now. |
The following code snippet builds successfully with the 2024-07-15 nightly toolchain, but fails to build with 2024-07-22. I'm not sure how to check or verify this was caused by the switch to swift-foundation, but the timing seems to line up.
Actual behavior:
Worth noting that it does seem specific to Linux, because the same snippet builds successfully with recent toolchains on macOS.
Expected behavior:
Code builds successfully.
Configuration:
OS: Linux Ubuntu 22.04
Toolchain: swift-DEVELOPMENT-SNAPSHOT-2024-07-22-a-ubuntu22.04-aarch64 or newer
The text was updated successfully, but these errors were encountered: