Re: [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - OS X (main) #12878

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
**00:23:16.512** <unknown>:0: note: Cannot read '/Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/./lib/swift/appletvsimulator/layouts-x86_64.yaml'
**00:23:16.512** PLEASE submit a bug report to [https://bugs.llvm.org/](https://bugs.llvm.org/) and include the crash backtrace.
**00:23:16.512** Stack dump:
**00:23:16.512** 0.	Program arguments: /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/bin/swift-frontend -frontend -c /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/swift/stdlib/public/SwiftOnoneSupport/SwiftOnoneSupport.swift -disable-objc-attr-requires-foundation-module -target x86_64-apple-tvos9.0-simulator -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.0.sdk -I /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/./lib/swift/appletvsimulator -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.0.sdk/../../../Developer/Library/Frameworks -warn-implicit-overrides -enable-library-evolution -module-cache-path /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/./module-cache -module-link-name swiftSwiftOnoneSupport -parse-stdlib -resource-dir /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/./lib/swift -swift-version 5 -O -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_RUNTIME_OS_VERSIONING -enforce-exclusivity=unchecked -validate-tbd-against-ir=none -check-onone-completeness -disable-access-control -verify-syntax-tree -Xllvm -sil-inline-generics=false -target-sdk-version 14.0 -parse-as-library -module-name SwiftOnoneSupport -save-optimization-record=bitstream -save-optimization-record-path /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/stdlib/public/SwiftOnoneSupport/TVOS_SIMULATOR/x86_64/SwiftOnoneSupport.opt.bitstream -o /Users/buildnode/jenkins/workspace/oss-swift-incremental-RA-osx/buildbot_incremental/swift-macosx-x86_64/stdlib/public/SwiftOnoneSupport/TVOS_SIMULATOR/x86_64/SwiftOnoneSupport.o -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements 
**00:23:16.512** 1.	Apple Swift version 5.3-dev (LLVM ea40221059eac18, Swift be38df8e3d51c23)
**00:23:16.512** 2.	While evaluating request IRGenRequest(IR Generation for module SwiftOnoneSupport)
**00:23:16.512** 0  swift-frontend           0x00000001135fb645 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
**00:23:16.512** 1  swift-frontend           0x00000001135fa588 llvm::sys::RunSignalHandlers() + 248
**00:23:16.512** 2  swift-frontend           0x00000001135fbc26 SignalHandler(int) + 262
**00:23:16.512** 3  libsystem_platform.dylib 0x00007fff69b855fd _sigtramp + 29
**00:23:16.512** 4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603338742475296
**00:23:16.512** 5  libsystem_c.dylib        0x00007fff69a57808 abort + 120
**00:23:16.512** 6  swift-frontend           0x000000010edb61f5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_1::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 725
**00:23:16.512** 7  swift-frontend           0x0000000113561994 llvm::report_fatal_error(llvm::Twine const&, bool) + 260
**00:23:16.512** 8  swift-frontend           0x000000010f05e8ad swift::irgen::TypeConverter::TypeConverter(swift::irgen::IRGenModule&) + 2045
**00:23:16.512** 9  swift-frontend           0x000000010f093cf8 swift::irgen::IRGenModule::IRGenModule(swift::irgen::IRGenerator&, std::__1::unique_ptr<llvm::TargetMachine, std::__1::default_delete<llvm::TargetMachine> >&&, swift::SourceFile*, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef) + 1944
**00:23:16.512** 10 swift-frontend           0x000000010f071de5 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 1717
**00:23:16.512** 11 swift-frontend           0x000000010f0a4c0d swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 157
**00:23:16.512** 12 swift-frontend           0x000000010f0a4b2e swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 14
**00:23:16.512** 13 swift-frontend           0x000000010f07b969 llvm::Expected<swift::IRGenRequest::OutputType> swift::Evaluator::getResultUncached<swift::IRGenRequest>(swift::IRGenRequest const&) + 345
**00:23:16.512** 14 swift-frontend           0x000000010f074868 llvm::Expected<swift::IRGenRequest::OutputType> swift::Evaluator::operator()<swift::IRGenRequest, (void*)0>(swift::IRGenRequest const&) + 152
**00:23:16.512** 15 swift-frontend           0x000000010f0730f6 swift::performIRGeneration(swift::ModuleDecl*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::GlobalVariable**) + 550
**00:23:16.512** 16 swift-frontend           0x000000010edbce28 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 2296
**00:23:16.512** 17 swift-frontend           0x000000010edbc30c performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 636
**00:23:16.512** 18 swift-frontend           0x000000010edb48a1 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4625
**00:23:16.512** 19 swift-frontend           0x000000010ed4c51e main + 846
**00:23:16.512** 20 libdyld.dylib            0x00007fff69988cc9 start + 1
**00:23:16.512** 21 libdyld.dylib            0x0000000000000036 start + 18446603338744558446

This error seems unrelated to the PRs picked up with this run -- it seems that in this run the layouts*.yaml files did not get copied correctly, hence this crash
I don't have a good explanation about why that happened -- in the past I investigated a similar (one off) issue and I was not able to reproduce it locally (even after altering the temporary build folder), and the logic seems not to have apparent flaws.

Run #12879 completed successfully.

Hope this helps

Terms of Service

Privacy Policy

Cookie Policy