Build Information
Failed to build Srt2BilibiliKit, reference master (bb1bc2
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 04:06:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/srt2bilibilikit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ApolloZhu/srt2bilibilikit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at bb1bc27 Fix Danmaku Mode
Cloned https://github.com/ApolloZhu/srt2bilibilikit.git
Revision (git rev-parse @):
bb1bc27104698b6bcda5c3804be82693ce1fe01f
SUCCESS checkout https://github.com/ApolloZhu/srt2bilibilikit.git at master
Fetching https://github.com/ApolloZhu/BilibiliKit
[12/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (1.00s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[1/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.95s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (c547aa4)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (0b6d2cc)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ApolloZhu/srt2bilibilikit.git
[1/584] Fetching srt2bilibilikit
Fetched https://github.com/ApolloZhu/srt2bilibilikit.git from cache (0.87s)
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.47s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.47s)
error: could not find a branch named ‘master’ in https://github.com/ApolloZhu/swift_qrcodejs (did you mean ‘main’?)
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ApolloZhu/srt2bilibilikit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/9] Write sources
[4/9] Write Srt2Bilibili-cli-entitlement.plist
[5/9] Write swift-version--7754E27361AE5C74.txt
[7/34] Compiling swift_qrcodejs QRPolynomial.swift
[8/35] Compiling swift_qrcodejs QRPatternLocator.swift
[9/35] Compiling swift_qrcodejs QRMath.swift
[10/35] Compiling swift_qrcodejs QRMode.swift
[11/35] Compiling swift_qrcodejs QRErrorCorrectLevel.swift
[12/35] Compiling swift_qrcodejs QRMaskPattern.swift
[13/35] Compiling swift_qrcodejs QRRSBlock.swift
[14/35] Compiling BilibiliKit URLSession+Extensions.swift
[15/35] Compiling BilibiliKit BKApp.swift
error: compile command failed due to signal 6 (use -v to see invocation)
[16/35] Emitting module BilibiliKit
[17/35] Compiling BilibiliKit BKCookie.swift
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKCookie.swift -primary-file /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Info.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Page.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URL+Extensions.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.swiftdeps -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -suppress-warnings -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -Xcc -F -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name BilibiliKit -disable-clang-spi -target-sdk-version 15.1 -target-sdk-name macosx15.1 -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
2. Compiling with effective version 4.1.50
3. While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for BilibiliKit)
4. While running pass #1095 SILFunctionTransform "TransferNonSendable" on SILFunction "@$s11BilibiliKit13BKLoginHelperC5login7session15handleLoginInfo0gH5StateyAA9BKSessionC_yAC0H3URLVcyAC0hJ0OctFyAC11FetchResult33_E7E49E147CBF33E81ED2B44F7753353FLLOy_AKGcfU_".
for expression at [/Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:70:23 - line:107:9] RangeText="{ [weak self] result in
switch result {
case .success(let url):
handleLoginInfo(url)
var process: () -> Void = { [weak self] in
guard let `self` = self, self.isRunLoopActive else { return }
self.fetchLoginInfo(oauthKey: url.oauthKey)
{ [weak self] result in
guard let `self` = self, self.isRunLoopActive else { return }
switch result {
case .success(let state):
switch state {
case .succeeded(cookie: let cookie):
self.interrupt()
session.cookie = cookie
case .expired:
self.interrupt()
default:
heartbeat()
}
handleLoginState(state)
case .errored:
debugPrint(result)
heartbeat()
}
}
}
func heartbeat() {
DispatchQueue.global(qos: .userInitiated)
.asyncAfter(deadline: DispatchTime.now() + 3,
execute: process)
}
self?.everySecond(execute: process)
case .errored:
debugPrint(result)
handleLoginState(.errored)
}
"
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 0x00000001085769ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x0000000108574c00 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x0000000108576f78 SignalHandler(int) + 292
3 libsystem_platform.dylib 0x000000018ea47584 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000018ea16c20 pthread_kill + 288
5 libsystem_c.dylib 0x000000018e923a30 abort + 180
6 swift-frontend 0x0000000103f5cfd8 swift::Partition::merge(swift::PartitionPrimitives::Element, swift::PartitionPrimitives::Element, bool) + 248
7 swift-frontend 0x0000000103ae306c swift::RegionAnalysisFunctionInfo::RegionAnalysisFunctionInfo(swift::SILFunction*, swift::PostOrderFunctionInfo*) + 14308
8 swift-frontend 0x0000000103ae5fa4 swift::RegionAnalysis::newFunctionAnalysis(swift::SILFunction*) + 56
9 swift-frontend 0x0000000103d2d0d4 (anonymous namespace)::TransferNonSendable::run() + 324
10 swift-frontend 0x0000000103d62988 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 3448
11 swift-frontend 0x0000000103d5ef6c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 11968
12 swift-frontend 0x0000000103d984b8 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
13 swift-frontend 0x0000000103d7be1c swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 412
14 swift-frontend 0x0000000103d7e598 swift::runSILDiagnosticPasses(swift::SILModule&) + 612
15 swift-frontend 0x00000001032f4fc4 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 84
16 swift-frontend 0x0000000102f1fcb0 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*) + 1376
17 swift-frontend 0x0000000102f1eebc swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 984
18 swift-frontend 0x0000000102f22174 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1684
19 swift-frontend 0x0000000102f20ea0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
20 swift-frontend 0x0000000102ea7f64 swift::mainEntry(int, char const**) + 3680
21 dyld 0x000000018e68e0e0 start + 2360
BUILD FAILURE 6.0 macosSpm