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-7243] Fatal error compiling w/4.1 "Emergency spill slot is out of reach", with -Onone -Owholemodule #49791
Comments
I'm afraid we're probably not going to be able to do much without a project. If you can't share it here, would you mind filing a Radar? aschwaighofer@apple.com (JIRA User), do you know who's responsible for this area of LLVM at Apple, just in case they can psychic-debug it? |
I would try Matthias and/or Quentin. |
Matthias identified this as similar to some other problems that were already fixed, but was not able to go further. Dan: even if you can't give us the whole project, is there any chance you can give us the source of just the Dashboard.EventCellModel type and the |
Comment by Igor Silva (JIRA) I'm also facing that issue on Xcode 9.3 (stable). The only references to "Incomplete scavenging after 2nd pass" that I cant find online are the LLVM source code. |
Igor, are you able to share your project? We'd like to fix this but we'd be much more likely to find an answer if we have an example where it's reproducing. |
@swift-ci create |
Dan's workarounds are likely to apply to you as well: turn on optimization or turn off whole-module mode. |
Comment by Igor Silva (JIRA) I cannot share the project, unfortunately (under NDA). I'm trying other combinations of optimization level and compilation mode. I can confirm that it does crash with "Incomplete scavenging after 2nd pass" when using `-Onone` and `Single File`. |
Yikes. Thank you for testing, at least. |
That sounds like your standard library doesn't match up with your compiler. Are you using plain Xcode 9.3 GM, or 9.3 GM plus a development toolchain, or what? |
Comment by Igor Silva (JIRA) Plain Xcode 9.3 GM, downloaded from Mac App Store. |
I'm afraid that's a new issue, then. But there's probably no point in filing it without your project. :-( |
On the plus side for this issue, it turns out Apple LLVM engineers are already investigating it as rdar://problem/38894780 and some variants may have already been fixed in the master development snapshots. |
Comment by Igor Silva (JIRA) That's great to know @belkadan, thanks. As a note, with Whole Module on, I've got the same issue (attached image, not the original one). |
This should be fixed by now in master. |
Comment by Justin Trantham (JIRA) I am experiencing this same issue when building using Xcode Version 9.3.1 (9E501). Is this something that will be resolved in Xcode 9.4? When will Xcode 9.4 be release stable? Would you advise to use the beta version temporarily? Thanks |
Attachment: Download
Environment
Xcode 9.3b4, Swift 4.1 snapshots
Additional Detail from JIRA
md5: c8c3a5b552ec5059a0e910a83dc4e7d0
is duplicated by:
relates to:
Issue Description:
Our swift project won't compile with the Swift 4.1 snapshots, using our debug configuration. I tried the Xcode 9.3b4 toolchain. It produced a bunch of warnings for deprecations, and then failed with
Command failed due to signal: Abort trap: 6
:I then tried with
swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-14-a
, and it hits an assertion, presumably slightly earlier in the compilation process:I am a little confused, because
CardViewModel+Transfer.o
andEventCellModel()
aren't related, so I'm not sure where to start looking to minimize & reproduce.It appears to only crash with
-Onone -Owhole-module
turned on: https://github.com/fastred/Optimizing-Swift-Build-Times#whole-module-optimizationThe crash goes away with
-Onone
or with-Owhole-module
.Also, it does not crash with
swift-DEVELOPMENT-SNAPSHOT-2018-03-14-a.xctoolchain
The text was updated successfully, but these errors were encountered: