Build Information
Failed to build Mercato, reference master (e6132a), with Swift 6.3 for Linux on 17 Apr 2026 02:30:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tikhop/Mercato.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/tikhop/Mercato
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e6132a7 Merge pull request #16 from tikhop/feat/decimal-formatted
Cloned https://github.com/tikhop/Mercato.git
Revision (git rev-parse @):
e6132a7b8ad9bfd3ad01599e3135f1ed0ac02519
SUCCESS checkout https://github.com/tikhop/Mercato.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/tikhop/Mercato.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: compile command failed due to signal 6 (use -v to see invocation)
Abort: function coerceToType at CSApply.cpp:7988
Unhandled coercion:
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
(base=existential_archetype_type address=0x55e894a69998 conforms_to="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17" opened_existential_id="6107E4A8-3A05-11F1-9513-0242AC110005"
(interface_type=generic_type_param_type depth=0 index=0 param_kind=type)
(opened_existential=existential_type
(protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17"))))
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
(base=existential_type
(protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17")))
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift /host/spi-builder-workspace/Sources/Mercato/Mercato+StoreKit.swift -primary-file /host/spi-builder-workspace/Sources/Mercato/Mercato.swift -primary-file /host/spi-builder-workspace/Sources/Mercato/MercatoError.swift /host/spi-builder-workspace/Sources/Mercato/Models/PromotionalOffer.swift /host/spi-builder-workspace/Sources/Mercato/ProductService.swift /host/spi-builder-workspace/Sources/Mercato/Purchase.swift /host/spi-builder-workspace/Sources/Mercato/Utils/CurrencySymbolsLibrary.swift /host/spi-builder-workspace/Sources/Mercato/Utils/Lock.swift /host/spi-builder-workspace/Sources/Mercato/Utils/PeriodFormatter.swift /host/spi-builder-workspace/Sources/Mercato/Utils/PriceFormatter.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/Mercato.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/Mercato.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/Mercato.dia -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/MercatoError.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/MercatoError.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/MercatoError.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Mercato -package-name spi_builder_workspace -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/Mercato.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Mercato.build/MercatoError.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 6.3 (swift-6.3-RELEASE)
2. Compiling with the current language version
3. While evaluating request TypeCheckPrimaryFileRequest(source_file "/host/spi-builder-workspace/Sources/Mercato/Mercato.swift")
4. While evaluating request TypeCheckFunctionBodyRequest(Mercato.(file).Mercato.isEligibleForIntroOffer(for:)@/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:172:17)
5. While type-checking statement at [/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:172:105 - line:186:5] RangeText="{
let products = try await productService.retrieveProducts(productIds: productIds)
guard let product = products.first else {
throw MercatoError.purchase(error: .productUnavailable)
}
guard let subscription = product.subscription else {
return false
}
let subscriptionGroupID = subscription.subscriptionGroupID
return await Product.SubscriptionInfo.isEligibleForIntroOffer(for: subscriptionGroupID)
"
6. While type-checking declaration 0x55e894039010 (at /host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:9)
7. While evaluating request PatternBindingEntryRequest((unknown decl)@/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:9, 0)
8. While type-checking expression at [/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:24 - line:173:88] RangeText="try await productService.retrieveProducts(productIds: productIds"
9. While type-checking-target starting at /host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:28
10. Abort: function coerceToType at CSApply.cpp:7988
| Unhandled coercion:
| (dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
| (base=existential_archetype_type address=0x55e894a69998 conforms_to="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17" opened_existential_id="6107E4A8-3A05-11F1-9513-0242AC110005"
| (interface_type=generic_type_param_type depth=0 index=0 param_kind=type)
| (opened_existential=existential_type
| (protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17"))))
| (dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
| (base=existential_type
| (protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17")))
#0 0x000055e88f3b58b8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x72e18b8)
#1 0x000055e88f3b33a5 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x72df3a5)
#2 0x000055e88f3b6601 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007f4f86711520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f4f867659fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x00007f4f86711476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007f4f866f77f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x000055e88a681ad2 (/usr/bin/swift-frontend+0x25adad2)
#8 0x000055e88a681bbc (/usr/bin/swift-frontend+0x25adbbc)
#9 0x000055e889eb49d9 (/usr/bin/swift-frontend+0x1de09d9)
#10 0x000055e889ed633a buildOpaqueElementConversion((anonymous namespace)::ExprRewriter&, swift::SourceRange, swift::Type, swift::Type, bool, swift::constraints::ConstraintLocatorBuilder, unsigned int) CSApply.cpp:0:0
#11 0x000055e889ed5794 (anonymous namespace)::ExprRewriter::buildCollectionUpcastExpr(swift::Expr*, swift::Type, bool, swift::constraints::ConstraintLocatorBuilder) CSApply.cpp:0:0
#12 0x000055e889eb2298 (anonymous namespace)::ExprRewriter::coerceToType(swift::Expr*, swift::Type, swift::constraints::ConstraintLocatorBuilder) CSApply.cpp:0:0
#13 0x000055e889ecbf47 (anonymous namespace)::ExprRewriter::closeExistentials(swift::Expr*&, swift::constraints::ConstraintLocatorBuilder, bool) CSApply.cpp:0:0
#14 0x000055e889eced50 (anonymous namespace)::ExprRewriter::finishApply(swift::ApplyExpr*, swift::Type, swift::constraints::ConstraintLocatorBuilder, swift::constraints::ConstraintLocatorBuilder) CSApply.cpp:0:0
#15 0x000055e889ed41be (anonymous namespace)::ExprRewriter::visitApplyExpr(swift::ApplyExpr*) CSApply.cpp:0:0
#16 0x000055e889eb80ae (anonymous namespace)::ExprRewriter::walkToExprPost(swift::Expr*) CSApply.cpp:0:0
#17 0x000055e889eb5e10 (anonymous namespace)::ExprWalker::walkToExprPost(swift::Expr*) CSApply.cpp:0:0
#18 0x000055e88a272f26 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visitAwaitExpr(swift::AwaitExpr*) ASTWalker.cpp:0:0
#19 0x000055e88a2721f5 (anonymous namespace)::Traversal::visit(swift::Expr*) ASTWalker.cpp:0:0
#20 0x000055e88a273210 (anonymous namespace)::Traversal::visitTryExpr(swift::TryExpr*) ASTWalker.cpp:0:0
#21 0x000055e88a272243 (anonymous namespace)::Traversal::visit(swift::Expr*) ASTWalker.cpp:0:0
#22 0x000055e88a271830 swift::Expr::walk(swift::ASTWalker&) (/usr/bin/swift-frontend+0x219d830)
#23 0x000055e889eb0073 (anonymous namespace)::ExprWalker::rewriteTarget(swift::constraints::SyntacticElementTarget) CSApply.cpp:0:0
#24 0x000055e889eafecf swift::constraints::ConstraintSystem::applySolution(swift::constraints::Solution&, swift::constraints::SyntacticElementTarget) (/usr/bin/swift-frontend+0x1ddbecf)
#25 0x000055e889d58590 swift::TypeChecker::typeCheckTarget(swift::constraints::SyntacticElementTarget&, swift::optionset::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::DiagnosticTransaction*) (/usr/bin/swift-frontend+0x1c84590)
#26 0x000055e889d5836d swift::TypeChecker::typeCheckExpression(swift::constraints::SyntacticElementTarget&, swift::optionset::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::DiagnosticTransaction*) (/usr/bin/swift-frontend+0x1c8436d)
#27 0x000055e889d59a0d swift::TypeChecker::typeCheckPatternBinding(swift::PatternBindingDecl*, unsigned int, swift::Type, swift::optionset::OptionSet<swift::TypeCheckExprFlags, unsigned int>) (/usr/bin/swift-frontend+0x1c85a0d)
#28 0x000055e889e43eae swift::PatternBindingEntryRequest::evaluate(swift::Evaluator&, swift::PatternBindingDecl*, unsigned int) const (/usr/bin/swift-frontend+0x1d6feae)
#29 0x000055e88a3276c3 swift::PatternBindingEntryRequest::OutputType swift::Evaluator::getResultUncached<swift::PatternBindingEntryRequest, swift::PatternBindingEntryRequest::OutputType swift::evaluateOrDefault<swift::PatternBindingEntryRequest>(swift::Evaluator&, swift::PatternBindingEntryRequest, swift::PatternBindingEntryRequest::OutputType)::'lambda'()>(swift::PatternBindingEntryRequest const&, swift::PatternBindingEntryRequest::OutputType swift::evaluateOrDefault<swift::PatternBindingEntryRequest>(swift::Evaluator&, swift::PatternBindingEntryRequest, swift::PatternBindingEntryRequest::OutputType)::'lambda'()) crtstuff.c:0:0
#30 0x000055e88a2f1015 swift::PatternBindingDecl::getCheckedPatternBindingEntry(unsigned int) const (/usr/bin/swift-frontend+0x221d015)
#31 0x000055e889d9bee8 (anonymous namespace)::DeclChecker::visit(swift::Decl*) TypeCheckDeclPrimary.cpp:0:0
#32 0x000055e889d9bcf2 swift::TypeChecker::typeCheckDecl(swift::Decl*) (/usr/bin/swift-frontend+0x1cc7cf2)
#33 0x000055e889e3bc4d swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) TypeCheckStmt.cpp:0:0
#34 0x000055e889e3a2ac bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::BraceStmt>(swift::BraceStmt*&) TypeCheckStmt.cpp:0:0
#35 0x000055e889e39c73 (anonymous namespace)::StmtChecker::typeCheckBody(swift::BraceStmt*&) TypeCheckStmt.cpp:0:0
#36 0x000055e889e39a45 swift::TypeCheckFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const (/usr/bin/swift-frontend+0x1d65a45)
#37 0x000055e88a39ea01 swift::TypeCheckFunctionBodyRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()>(swift::TypeCheckFunctionBodyRequest const&, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()) crtstuff.c:0:0
#38 0x000055e88a3084d3 swift::AbstractFunctionDecl::getTypecheckedBody() const (/usr/bin/swift-frontend+0x22344d3)
#39 0x000055e88a45897c swift::SourceFile::typeCheckDelayedFunctions() (/usr/bin/swift-frontend+0x238497c)
#40 0x000055e889e7cbb3 swift::TypeCheckPrimaryFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const (/usr/bin/swift-frontend+0x1da8bb3)
#41 0x000055e889e804be swift::TypeCheckPrimaryFileRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckPrimaryFileRequest, swift::TypeCheckPrimaryFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckPrimaryFileRequest>(swift::Evaluator&, swift::TypeCheckPrimaryFileRequest, swift::TypeCheckPrimaryFileRequest::OutputType)::'lambda'()>(swift::TypeCheckPrimaryFileRequest const&, swift::TypeCheckPrimaryFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckPrimaryFileRequest>(swift::Evaluator&, swift::TypeCheckPrimaryFileRequest, swift::TypeCheckPrimaryFileRequest::OutputType)::'lambda'()) crtstuff.c:0:0
#42 0x000055e889e7ca45 swift::performTypeChecking(swift::SourceFile&) (/usr/bin/swift-frontend+0x1da8a45)
#43 0x000055e888d295b9 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_10>(long, swift::SourceFile&) Frontend.cpp:0:0
#44 0x000055e888d1f42a swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) (/usr/bin/swift-frontend+0xc4b42a)
#45 0x000055e888d1f3ab swift::CompilerInstance::performSema() (/usr/bin/swift-frontend+0xc4b3ab)
#46 0x000055e888a36c31 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) FrontendTool.cpp:0:0
#47 0x000055e888a342cf swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0x9602cf)
#48 0x000055e8887aaad1 swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0x6d6ad1)
#49 0x00007f4f866f8d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#50 0x00007f4f866f8e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#51 0x000055e8887a9205 _start (/usr/bin/swift-frontend+0x6d5205)
*** Signal 6: Backtracing from 0x7f4f867ed90d... done ***
*** Program crashed: Aborted at 0x000000000000004d ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-frontend" crashed:
0 0x00007f4f867ed90d <unknown> in libc.so.6
...
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000006 6
rcx 0x00007f4f867ed90d 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d f3 b4 0f 00 H=·ðÿÿs·ÃH··ó´··
rbx 0x0000000000000006 6
rsi 0x000000000000004d 77
rdi 0x000000000000004d 77
rbp 0x000000000000004d 77
rsp 0x000055e893ff5968 2b 66 3b 8f e8 55 00 00 f0 5b ff 93 e8 55 00 00 +f;·èU··ð[ÿ·èU··
r8 0x000055e893ff5bf0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r9 0x000055e893ff5bf0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r10 0x000055e893ff5bf0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r11 0x0000000000000246 582
r12 0x0000000000000006 6
r13 0x0000000000000016 22
r14 0x0000000000000000 0
r15 0x000055e893ff5a08 ff ff ff 7f fe ff ff ff 00 00 00 00 00 00 00 00 ÿÿÿ·þÿÿÿ········
rip 0x00007f4f867ed90d 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d f3 b4 0f 00 H=·ðÿÿs·ÃH··ó´··
rflags 0x0000000000000246 ZF PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (36 omitted):
0x00007f4f866cf000–0x00007f4f8688b401 095c7ba148aeca81668091f718047078d57efddb libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.06s
BUILD FAILURE 6.3 linux