[swift-dev] Temporary build failures while reading the Swift module?
David Zarzycki
dave at znu.io
Thu Nov 2 11:45:11 CDT 2017
Despite deleting my module cache and doing a clean build, I’m seeing spurious and temporary build failures like what follows. Doing an incremental build after the failure weirdly results in a successful build. Any ideas? Is this a missing build dependency? Note: I’m using the Xcode 9B55 on macOS 17C60c, if it matters.
Dave
<unknown>:0: error: fatal error encountered while reading from module 'Swift'; please file a bug report with your project and the crash log
*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
(see "While..." info below)
0 swift 0x000000010925fe68 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 swift 0x000000010925edb6 llvm::sys::RunSignalHandlers() + 86
2 swift 0x000000010926042e SignalHandler(int) + 366
3 libsystem_platform.dylib 0x00007fff6a21ff5a _sigtramp + 26
4 libsystem_platform.dylib 0x00007ffeead0a8d0 _sigtramp + 2158930320
5 libsystem_c.dylib 0x00007fff6a04a312 abort + 127
6 swift 0x0000000106b33500 swift::version::operator!=(swift::version::Version const&, swift::version::Version const&) + 0
7 swift 0x0000000106bd22ba swift::ModuleFile::error(swift::serialization::Status) + 154
8 swift 0x0000000106b96fe0 swift::SILDeserializer::readSILFunction(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 2352
9 swift 0x0000000106bafc69 swift::SILDeserializer::lookupSILFunction(swift::SILFunction*) + 425
10 swift 0x0000000106ccccd6 swift::SerializedSILLoader::lookupSILFunction(swift::SILFunction*) + 470
11 swift 0x00000001063d2fa5 swift::SILLinkerVisitor::processFunction(swift::SILFunction*) + 85
12 swift 0x0000000106523fe2 swift::SILModule::linkFunction(swift::SILFunction*, swift::SILOptions::LinkingMode) + 114
13 swift 0x0000000105e84d14 getCalleeFunction(swift::SILFunction*, swift::FullApplySite, bool&, llvm::SmallVectorImpl<swift::SILValue>&, llvm::SmallVectorImpl<swift::SILValue>&, swift::PartialApplyInst*&, swift::SILOptions::LinkingMode) + 2292
14 swift 0x0000000105e82b48 runOnFunctionRecursively(swift::SILFunction*, swift::FullApplySite, swift::SILOptions::LinkingMode, llvm::DenseSet<swift::SILFunction*, llvm::DenseMapInfo<swift::SILFunction*> >&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >::Factory&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >, swift::ClassHierarchyAnalysis*) + 1800
15 swift 0x0000000105e82174 (anonymous namespace)::MandatoryInlining::run() + 404
16 swift 0x0000000105d5aed1 swift::SILPassManager::runModulePass(swift::SILModuleTransform*) + 1393
17 swift 0x0000000105d5c6d9 swift::SILPassManager::runOneIteration() + 1017
18 swift 0x00000001052f1ee5 swift::SILPassManager::execute() + 21
19 swift 0x00000001052f066c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 556
20 swift 0x0000000105d78f9e swift::runSILDiagnosticPasses(swift::SILModule&) + 366
21 swift 0x0000000104fd4858 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 18584
22 swift 0x0000000104fcda92 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 8882
23 swift 0x0000000104ef6913 main + 4819
24 libdyld.dylib 0x00007fff69f9e115 start + 1
Stack dump:
0. Program arguments: /Volumes/data/b/swift/atomics/d/swift-macosx-x86_64/bin/swift -frontend -c /Volumes/data/wt/swift/atomics/swift/stdlib/public/SwiftOnoneSupport/SwiftOnoneSupport.swift -disable-objc-attr-requires-foundation-module -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I /Volumes/data/b/swift/atomics/d/swift-macosx-x86_64/./lib/swift/macosx/x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/../../../Developer/Library/Frameworks -g -module-cache-path /Volumes/data/b/swift/atomics/d/swift-macosx-x86_64/./module-cache -module-link-name swiftSwiftOnoneSupport -parse-stdlib -resource-dir /Volumes/data/b/swift/atomics/d/swift-macosx-x86_64/./lib/swift -swift-version 3 -Onone -D INTERNAL_CHECKS_ENABLED -Xllvm -sil-inline-generics=false -parse-as-library -module-name SwiftOnoneSupport -o /Volumes/data/b/swift/atomics/d/swift-macosx-x86_64/stdlib/public/SwiftOnoneSupport/macosx/x86_64/SwiftOnoneSupport.o
1. While running pass #33 SILModuleTransform "Mandatory Inlining of Transparent Functions".
More information about the swift-dev
mailing list