Skip to content
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-7350] Fatal error compiling w/4.1 "Incomplete scavenging after 2nd pass", with -Onone -Osinglefile #49898

Closed
swift-ci opened this issue Apr 4, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Apr 4, 2018

Previous ID SR-7350
Radar None
Original Reporter Augard (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: f3b13593b7627957ec6319a86314cef6

duplicates:

  • SR-7243 Fatal error compiling w/4.1 "Emergency spill slot is out of reach", with -Onone -Owholemodule

Issue Description:

Our iOS swift project won't compile with the Swift 4.1, Xcode 9.3 downloaded from AppStore. For iPhone 7+. No error when compiling for simulator.

CompileSwift normal arm64 /Users/lukasfoldyna/Documents/Projects/mequa-ios/Equabank/Features/Feed/Controllers/AccountDetailVC.swift

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Incomplete scavenging after 2nd pass
0  swift                    0x000000010fa1dffa PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x000000010fa1d3b6 SignalHandler(int) + 966
2  libsystem_platform.dylib 0x00007fff76a0df5a _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2304712896
4  libsystem_c.dylib        0x00007fff767ab1ae abort + 127
5  swift                    0x000000010c0748e7 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_0::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 519
6  swift                    0x000000010f9d5658 llvm::report_fatal_error(llvm::Twine const&, bool) + 280
7  swift                    0x000000010f9d5539 llvm::report_fatal_error(char const*, bool) + 41
8  swift                    0x000000010e238554 llvm::scavengeFrameVirtualRegs(llvm::MachineFunction&, llvm::RegScavenger&) + 516
9  swift                    0x000000010e1efdb4 (anonymous namespace)::PEI::runOnMachineFunction(llvm::MachineFunction&) + 9684
10 swift                    0x000000010e141026 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 134
11 swift                    0x000000010f9457d1 llvm::FPPassManager::runOnFunction(llvm::Function&) + 449
12 swift                    0x000000010f945413 llvm::FPPassManager::runOnModule(llvm::Module&) + 67
13 swift                    0x000000010f94edd8 llvm::legacy::PassManager::run(llvm::Module&) + 1112
14 swift                    0x000000010c21e321 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 7409
15 swift                    0x000000010c07f77d performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 44685
16 swift                    0x000000010c072e64 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7908
17 swift                    0x000000010c0278b5 main + 18917
18 libdyld.dylib            0x00007fff766ff015 start + 1
19 libdyld.dylib            0x000000000000007b start + 2307919975

1.  Running pass 'Function Pass Manager' on module '/Users/lukasfoldyna/Library/Developer/Xcode/DerivedData/Equa_bank-gpashjauhxtapcbiaybgfuwpczow/Build/Intermediates.noindex/Equa bank.build/Debug SIT-iphoneos/Equa bank.build/Objects-normal/arm64/AccountDetailVC.o'.
2.  Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@_T08Equa_SIT15AccountDetailVCC7prepareySo17UIStoryboardSegueC3for_ypSg6sendertF'
@belkadan
Copy link
Contributor

belkadan commented Apr 5, 2018

Dup of SR-7243 (it's not exclusive to WMO).

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants