SwiftDriverJob-Emit-Module failed building async command line with Xcode 13.2 beta 2 (13C5081f)

Anyone else seeing SwiftDriverJob-Emit-Module failed building async command line with Xcode 13.2 beta 2 (13C5081f)?

import Foundation

@main
struct asyncCmd {
    static func main() async {
        print("Hello, World!")
    }
}
<snip>
1.	Apple Swift version 5.5.2 (swiftlang-1300.0.47.2 clang-1300.0.29.30)
2.	
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for module asyncCmd)
4.	While silgen emitArtificialTopLevel SIL function "@main".
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000110272c87 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  swift-frontend           0x0000000110271c18 llvm::sys::RunSignalHandlers() + 248
2  swift-frontend           0x0000000110273296 SignalHandler(int) + 278
3  libsystem_platform.dylib 0x00007ff808c1ce2d _sigtramp + 29
4  swift-frontend           0x000000010c705853 swift::namelookup::ImportCache::getImportSet(swift::DeclContext const*) + 3635
5  swift-frontend           0x000000010b541ec1 swift::SILFunctionBuilder::getOrCreateFunction(swift::SILLocation, swift::SILDeclRef, swift::ForDefinition_t, llvm::function_ref<swift::SILFunction* (swift::SILLocation, swift::SILDeclRef)>, swift::ProfileCounter) + 65
6  swift-frontend           0x000000010ba49da1 swift::Lowering::SILGenModule::getFunction(swift::SILDeclRef, swift::ForDefinition_t) + 401
7  swift-frontend           0x000000010baee2ac swift::Lowering::SILGenFunction::emitAsyncMainThreadStart(swift::SILDeclRef) + 2428
8  swift-frontend           0x000000010ba4ab87 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 1479
9  swift-frontend           0x000000010ba5248b swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 5483
10 swift-frontend           0x000000010bb3bbc5 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> > (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 197
11 swift-frontend           0x000000010ba56b1c llvm::Expected<swift::ASTLoweringRequest::OutputType> swift::Evaluator::getResultUncached<swift::ASTLoweringRequest>(swift::ASTLoweringRequest const&) + 652
12 swift-frontend           0x000000010ba53a1f swift::performASTLowering(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions const&) + 143
13 swift-frontend           0x000000010b3822d7 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 14599
14 swift-frontend           0x000000010b2c2798 main + 1032
15 dyld                     0x0000000113f424fe start + 462
16 dyld                     000000000000000000 start + 18446744069079817424
17 swift-frontend           0x000000010b29e000 __dso_handle + 0
Command SwiftDriverJob-Emit-Module failed with a nonzero exit code

Xcode 13.1 (13A1030d) builds and runs with deployment target of macOS 12.0 as expected.

FB9777738

Accepted Answer

Fixed in Xcode 13.2 RC (13C90)

SwiftDriverJob-Emit-Module failed building async command line with Xcode 13.2 beta 2 (13C5081f)
 
 
Q