Build Information
Failed to build Empire, reference main (b5c84e
), with Swift 6.1 for Wasm on 8 Jun 2025 15:44:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/Empire.git
Reference: main
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/mattmassicotte/Empire
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b5c84e0 Update ci.yml to Xcode 16.4 (#11)
Submodule path 'lmdb': checked out 'f20e41de09d97e4461946b7e26ec831d0c24fac7'
Submodule 'lmdb' (https://github.com/LMDB/lmdb.git) registered for path 'lmdb'
Cloning into '/host/spi-builder-workspace/lmdb'...
Cloned https://github.com/mattmassicotte/Empire.git
Revision (git rev-parse @):
b5c84e0ce388f759dc58a812eb14f30d5a235b5f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/Empire.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mattmassicotte/Empire.git
https://github.com/mattmassicotte/Empire.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "600.0.0",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
}
],
"manifest_display_name" : "Empire",
"name" : "Empire",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Empire",
"targets" : [
"Empire"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LMDB",
"targets" : [
"LMDB"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EmpireMacros",
"targets" : [
"EmpireMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "PackedSerializeTests",
"module_type" : "SwiftTarget",
"name" : "PackedSerializeTests",
"path" : "Tests/PackedSerializeTests",
"sources" : [
"ComparableData.swift",
"PackedSerializeTests.swift"
],
"target_dependencies" : [
"PackedSerialize"
],
"type" : "test"
},
{
"c99name" : "PackedSerialize",
"module_type" : "SwiftTarget",
"name" : "PackedSerialize",
"path" : "Sources/PackedSerialize",
"product_memberships" : [
"Empire"
],
"sources" : [
"Array+Serialization.swift",
"Bool+Serialization.swift",
"Data+Serialization.swift",
"Date+Serialization.swift",
"EmptyValue.swift",
"FixedWidthInteger+Serialization.swift",
"Float+Serialization.swift",
"Int+Serialization.swift",
"Int64+Serialization.swift",
"Optional+Serialization.swift",
"RawRepresentable+Serialization.swift",
"Serializable.swift",
"String+Serialization.swift",
"UUID+Serialization.swift"
],
"type" : "library"
},
{
"c99name" : "LMDBTests",
"module_type" : "SwiftTarget",
"name" : "LMDBTests",
"path" : "Tests/LMDBTests",
"sources" : [
"LMDBTests.swift"
],
"target_dependencies" : [
"LMDB"
],
"type" : "test"
},
{
"c99name" : "LMDB",
"module_type" : "SwiftTarget",
"name" : "LMDB",
"path" : "Sources/LMDB",
"product_memberships" : [
"Empire",
"LMDB"
],
"sources" : [
"CLMDB+Extensions.swift",
"Cursor.swift",
"Environment.swift",
"Transaction.swift",
"Types+Values.swift"
],
"target_dependencies" : [
"CLMDB"
],
"type" : "library"
},
{
"c99name" : "EmpireTests",
"module_type" : "SwiftTarget",
"name" : "EmpireTests",
"path" : "Tests/EmpireTests",
"sources" : [
"BackgroundTests.swift",
"CloudKitRecordTests.swift",
"ExampleTests.swift",
"IndexKeyRecordTests.swift",
"InsertTests.swift",
"MigrationTests.swift",
"RelationshipTests.swift",
"SelectTests.swift",
"TupleTests.swift"
],
"target_dependencies" : [
"Empire"
],
"type" : "test"
},
{
"c99name" : "EmpireSwiftDataTests",
"module_type" : "SwiftTarget",
"name" : "EmpireSwiftDataTests",
"path" : "Tests/EmpireSwiftDataTests",
"sources" : [
"DataStoreAdapterTests.swift"
],
"target_dependencies" : [
"EmpireSwiftData"
],
"type" : "test"
},
{
"c99name" : "EmpireSwiftData",
"module_type" : "SwiftTarget",
"name" : "EmpireSwiftData",
"path" : "Sources/EmpireSwiftData",
"sources" : [
"DataStoreAdapter.swift"
],
"target_dependencies" : [
"Empire"
],
"type" : "library"
},
{
"c99name" : "EmpireMacrosTests",
"module_type" : "SwiftTarget",
"name" : "EmpireMacrosTests",
"path" : "Tests/EmpireMacrosTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"CloudKitRecordMacroTests.swift",
"FailureHandler.swift",
"IndexKeyRecordMacroTests.swift"
],
"target_dependencies" : [
"EmpireMacros"
],
"type" : "test"
},
{
"c99name" : "EmpireMacros",
"module_type" : "SwiftTarget",
"name" : "EmpireMacros",
"path" : "Sources/EmpireMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"Empire",
"EmpireMacros"
],
"sources" : [
"Array+ReplaceLast.swift",
"CloudKitRecordMacro.swift",
"IndexKeyRecordMacro.swift",
"Plugin.swift",
"RecordMacroArguments.swift",
"String+hash.swift"
],
"type" : "macro"
},
{
"c99name" : "Empire",
"module_type" : "SwiftTarget",
"name" : "Empire",
"path" : "Sources/Empire",
"product_memberships" : [
"Empire"
],
"sources" : [
"BackgroundStore.swift",
"Buffers.swift",
"CloudKitRecord.swift",
"IndexKeyRecord.swift",
"LMDB+Extensions.swift",
"Macros.swift",
"Query+LDMBQuery.swift",
"Query.swift",
"Store.swift",
"TransactionContext.swift",
"Tuple.swift",
"UnsafeRawBufferPointer+Extensions.swift"
],
"target_dependencies" : [
"LMDB",
"EmpireMacros",
"PackedSerialize"
],
"type" : "library"
},
{
"c99name" : "CLMDB",
"module_type" : "ClangTarget",
"name" : "CLMDB",
"path" : "lmdb/libraries/liblmdb",
"product_memberships" : [
"Empire",
"LMDB"
],
"sources" : [
"mdb.c",
"midl.c"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/70764] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (5.11s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (7.69s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Building for debugging...
[0/48] Write sources
[24/48] Compiling _SwiftSyntaxCShims dummy.c
[25/48] Compiling CLMDB midl.c
In file included from /host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:107:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:180:10: fatal error: 'pthread.h' file not found
180 | #include <pthread.h>
| ^~~~~~~~~~~
2 errors generated.
[26/48] Compiling CLMDB mdb.c
[26/48] Compiling CLMDB midl.c
[26/48] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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/22] Compiling CLMDB midl.c
In file included from /host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:107:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:180:10: fatal error: 'pthread.h' file not found
180 | #include <pthread.h>
| ^~~~~~~~~~~
2 errors generated.
[1/22] Compiling CLMDB mdb.c
[1/22] Write swift-version-24593BA9C3E375BF.txt
[1/22] Compiling CLMDB mdb.c
BUILD FAILURE 6.1 wasm