Build Information
Failed to build Mercato, reference 1.1.2 (e6132a), with Swift 6.1 for Wasm on 26 Sep 2025 05:14:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tikhop/Mercato.git
Reference: 1.1.2
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
* tag 1.1.2 -> FETCH_HEAD
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 1.1.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tikhop/Mercato.git
https://github.com/tikhop/Mercato.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Mercato",
"name" : "Mercato",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.4"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Mercato",
"targets" : [
"Mercato"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AdvancedCommerceMercato",
"targets" : [
"AdvancedCommerceMercato"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MercatoTests",
"module_type" : "SwiftTarget",
"name" : "MercatoTests",
"path" : "Tests/MercatoTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/MercatoTests/Mercato.storekit",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"CurrencySymbolsLibraryTests.swift",
"MercatoTests.swift",
"PeriodFormatterTests.swift",
"PriceFormatterTests.swift",
"ProductServiceTests.swift",
"ProductTests.swift",
"PurchaseOptionsTests.swift",
"TestHelper.swift"
],
"target_dependencies" : [
"Mercato",
"AdvancedCommerceMercato"
],
"type" : "test"
},
{
"c99name" : "Mercato",
"module_type" : "SwiftTarget",
"name" : "Mercato",
"path" : "Sources/Mercato",
"product_memberships" : [
"Mercato",
"AdvancedCommerceMercato"
],
"sources" : [
"Mercato+Extras.swift",
"Mercato+StoreKit.swift",
"Mercato.swift",
"MercatoError.swift",
"Models/PromotionalOffer.swift",
"ProductService.swift",
"Purchase.swift",
"Utils/CurrencySymbolsLibrary.swift",
"Utils/Lock.swift",
"Utils/PeriodFormatter.swift",
"Utils/PriceFormatter.swift"
],
"type" : "library"
},
{
"c99name" : "AdvancedCommerceMercato",
"module_type" : "SwiftTarget",
"name" : "AdvancedCommerceMercato",
"path" : "Sources/AdvancedCommerceMercato",
"product_memberships" : [
"AdvancedCommerceMercato"
],
"sources" : [
"AdvancedCommerceProductService.swift",
"AdvancedCommercePurchase.swift",
"Mercato+AdvancedCommerce.swift",
"Models/Descriptors.swift",
"Models/Effective.swift",
"Models/Offer.swift",
"Models/OfferPeriod.swift",
"Models/OfferReason.swift",
"Models/OneTimeChargeCreateRequest.swift",
"Models/OneTimeChargeItem.swift",
"Models/Period.swift",
"Models/Reason.swift",
"Models/RequestInfo.swift",
"Models/RequestOperation.swift",
"Models/RequestVersion.swift",
"Models/SubscriptionCreateItem.swift",
"Models/SubscriptionCreateRequest.swift",
"Models/SubscriptionModifyAddItem.swift",
"Models/SubscriptionModifyChangeItem.swift",
"Models/SubscriptionModifyDescriptors.swift",
"Models/SubscriptionModifyInAppRequest.swift",
"Models/SubscriptionModifyPeriodChange.swift",
"Models/SubscriptionModifyRemoveItem.swift",
"Models/SubscriptionReactivateInAppRequest.swift",
"Models/SubscriptionReactivateItem.swift",
"Models/ValidationUtils.swift"
],
"target_dependencies" : [
"Mercato"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Emitting module Mercato
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[5/15] Compiling Mercato PriceFormatter.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[6/15] Compiling Mercato PeriodFormatter.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[7/15] Compiling Mercato Lock.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[8/15] Compiling Mercato CurrencySymbolsLibrary.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[9/15] Compiling Mercato Purchase.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
error: compile command failed due to signal 6 (use -v to see invocation)
Unhandled coercion:
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
(base=opened_archetype_type address=0x5615a82b0010 conforms_to="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17" opened_existential_id="95817860-9A97-11F0-8B8F-0242AC110009"
(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/wasm32-unknown-wasi/debug/Mercato.build/Mercato.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/Mercato.swiftdeps -emit-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.swiftdeps -target wasm32-unknown-wasi -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk -I /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -empty-abi-descriptor -resource-dir /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc --sysroot -Xcc /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk -Xcc -g -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/wasm32-unknown-wasi/debug/Mercato.build/Mercato.swift.o -o /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.swift.o -index-store-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/index/store -index-system-modules
1. Swift version 6.1 (swift-6.1-RELEASE)
2. Compiling with the current language version
3. While evaluating request TypeCheckSourceFileRequest(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 0x5615a8190740 (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
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 0x00005615a2d8c808
1 swift-frontend 0x00005615a2d8a5ee
2 swift-frontend 0x00005615a2d8cea8
3 libc.so.6 0x00007faa3541b520
4 libc.so.6 0x00007faa3546f9fc pthread_kill + 300
5 libc.so.6 0x00007faa3541b476 raise + 22
6 libc.so.6 0x00007faa354017f3 abort + 211
7 swift-frontend 0x000056159df3748a
8 swift-frontend 0x000056159df56429
9 swift-frontend 0x000056159df55a16
10 swift-frontend 0x000056159df34bb4
11 swift-frontend 0x000056159df509ec
12 swift-frontend 0x000056159df4fc55
13 swift-frontend 0x000056159df54528
14 swift-frontend 0x000056159df3ab0b
15 swift-frontend 0x000056159df388b0
16 swift-frontend 0x000056159e2611f6
17 swift-frontend 0x000056159e260508
18 swift-frontend 0x000056159e261460
19 swift-frontend 0x000056159e260549
20 swift-frontend 0x000056159e25fb50
21 swift-frontend 0x000056159df32b6e
22 swift-frontend 0x000056159df3298f
23 swift-frontend 0x000056159ddf9436
24 swift-frontend 0x000056159ddf924d
25 swift-frontend 0x000056159ddfa3f6
26 swift-frontend 0x000056159ddfa5d8
27 swift-frontend 0x000056159decf705
28 swift-frontend 0x000056159e2f0c1b
29 swift-frontend 0x000056159e2bf4da
30 swift-frontend 0x000056159de3b3a8
31 swift-frontend 0x000056159de3a482
32 swift-frontend 0x000056159dec76eb
33 swift-frontend 0x000056159dec5c4c
34 swift-frontend 0x000056159dec5593
35 swift-frontend 0x000056159dec5110
36 swift-frontend 0x000056159e35c8b5
37 swift-frontend 0x000056159e2d5873
38 swift-frontend 0x000056159e405ddc
39 swift-frontend 0x000056159df030b9
40 swift-frontend 0x000056159df04d1e
41 swift-frontend 0x000056159df02fb5
42 swift-frontend 0x000056159cdf81a9
43 swift-frontend 0x000056159cb5125a
44 swift-frontend 0x000056159cb50713
45 swift-frontend 0x000056159c92d86a
46 libc.so.6 0x00007faa35402d90
47 libc.so.6 0x00007faa35402e40 __libc_start_main + 128
48 swift-frontend 0x000056159c92ccc5
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling Mercato Purchase.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[3/12] Compiling Mercato Lock.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[4/13] Compiling Mercato CurrencySymbolsLibrary.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[5/13] Compiling Mercato PeriodFormatter.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[6/13] Compiling Mercato PromotionalOffer.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
[7/13] Compiling Mercato ProductService.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/13] Emitting module Mercato
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
21 | // SOFTWARE.
22 |
23 | import StoreKit
| `- error: no such module 'StoreKit'
24 |
25 | extension Mercato {
error: compile command failed due to signal 6 (use -v to see invocation)
Unhandled coercion:
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
(base=opened_archetype_type address=0x559c073fb6e0 conforms_to="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17" opened_existential_id="9CE217E0-9A97-11F0-B6E4-0242AC110004"
(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/wasm32-unknown-wasi/debug/Mercato.build/Mercato.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/Mercato.swiftdeps -emit-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.swiftdeps -target wasm32-unknown-wasi -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk -I /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc --sysroot -Xcc /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk -Xcc -g -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/wasm32-unknown-wasi/debug/Mercato.build/Mercato.swift.o -o /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/Mercato.build/MercatoError.swift.o -index-store-path /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/index/store -index-system-modules
1. Swift version 6.1 (swift-6.1-RELEASE)
2. Compiling with the current language version
3. While evaluating request TypeCheckSourceFileRequest(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 0x559c072de310 (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
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 0x0000559c0373f808
1 swift-frontend 0x0000559c0373d5ee
2 swift-frontend 0x0000559c0373fea8
3 libc.so.6 0x00007fb004efb520
4 libc.so.6 0x00007fb004f4f9fc pthread_kill + 300
5 libc.so.6 0x00007fb004efb476 raise + 22
6 libc.so.6 0x00007fb004ee17f3 abort + 211
7 swift-frontend 0x0000559bfe8ea48a
8 swift-frontend 0x0000559bfe909429
9 swift-frontend 0x0000559bfe908a16
10 swift-frontend 0x0000559bfe8e7bb4
11 swift-frontend 0x0000559bfe9039ec
12 swift-frontend 0x0000559bfe902c55
13 swift-frontend 0x0000559bfe907528
14 swift-frontend 0x0000559bfe8edb0b
15 swift-frontend 0x0000559bfe8eb8b0
16 swift-frontend 0x0000559bfec141f6
17 swift-frontend 0x0000559bfec13508
18 swift-frontend 0x0000559bfec14460
19 swift-frontend 0x0000559bfec13549
20 swift-frontend 0x0000559bfec12b50
21 swift-frontend 0x0000559bfe8e5b6e
22 swift-frontend 0x0000559bfe8e598f
23 swift-frontend 0x0000559bfe7ac436
24 swift-frontend 0x0000559bfe7ac24d
25 swift-frontend 0x0000559bfe7ad3f6
26 swift-frontend 0x0000559bfe7ad5d8
27 swift-frontend 0x0000559bfe882705
28 swift-frontend 0x0000559bfeca3c1b
29 swift-frontend 0x0000559bfec724da
30 swift-frontend 0x0000559bfe7ee3a8
31 swift-frontend 0x0000559bfe7ed482
32 swift-frontend 0x0000559bfe87a6eb
33 swift-frontend 0x0000559bfe878c4c
34 swift-frontend 0x0000559bfe878593
35 swift-frontend 0x0000559bfe878110
36 swift-frontend 0x0000559bfed0f8b5
37 swift-frontend 0x0000559bfec88873
38 swift-frontend 0x0000559bfedb8ddc
39 swift-frontend 0x0000559bfe8b60b9
40 swift-frontend 0x0000559bfe8b7d1e
41 swift-frontend 0x0000559bfe8b5fb5
42 swift-frontend 0x0000559bfd7ab1a9
43 swift-frontend 0x0000559bfd50425a
44 swift-frontend 0x0000559bfd503713
45 swift-frontend 0x0000559bfd2e086a
46 libc.so.6 0x00007fb004ee2d90
47 libc.so.6 0x00007fb004ee2e40 __libc_start_main + 128
48 swift-frontend 0x0000559bfd2dfcc5
BUILD FAILURE 6.1 wasm