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
[SR-14448] swift-collections compilation failure #56804
Comments
Looks like a crash in merge-modules. Could you try running a whole-module build instead of an incremental build? @swift-ci create |
I reset and built from scratch using the following: rm -rf .build git reset --hard origin/main swift build > build_log.txt The resulting log is attached. |
FYI - this is happening on an Intel Mac, but not on an M1 Mac - I was able to build, test, run benchmarks - etc - on the M1 Mac without issue. |
One potential workaround is to use an optimized build (`-c release`) – it's not a great option, but it might just do until we figure out what's triggering this. |
Thanks, `swift build -c release` does compile it without error! |
Swift Collections 0.0.2 includes a workaround for this bug, so the package should now build reliably on all machines. This doesn't resolve the MergeModules issue in the compiler, so the same crash could still trigger in a future update – we have no good way to reliably detect it. |
Thank you @shahmishal |
Attachment: Download
Environment
macOS 11.2.3
Xcode 12.4, swift version:
Welcome to Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28).
Additional Detail from JIRA
md5: 03fe1e2a4b4bfa544ec5c48f14551457
is blocked by:
Issue Description:
I cloned down the new swift-collections repository and went to open it up, explore a bit. First thing I tried was opening it in Xcode 12.4 (Intel Mac), and when I did a fresh build, I got a compiler failure/crash.
I thought maybe there was a different with swift directly on the command line, so I tried there - but hit basically the same thing.
Is this something I should open a bug for, or am I holding it wrong?
The failure is in swift-collections-CLI-build-failure.txt · GitHub - I didn't to spam it into here, but the key error message seems to be:
<unknown>:0: error: fatal error encountered while reading from module 'OrderedCollections'; please file a bug report with your project and the crash log<unknown>:0: note: module 'OrderedCollections' full misc version is '5.3.2(5.3.2)/Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'
Attached log file is the result of `swift build > log`
The text was updated successfully, but these errors were encountered: