The Swift Package Index logo.Swift Package Index

Build Information

Failed to build fluent-sqlite-driver, reference 4.9.0 (e227d9), with Swift 6.1 for Wasm on 28 Mar 2026 03:19:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/fluent-sqlite-driver.git
Reference: 4.9.0
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/vapor/fluent-sqlite-driver
 * tag               4.9.0      -> FETCH_HEAD
HEAD is now at e227d94 Update for Swift 6.3 release (#100)
Cloned https://github.com/vapor/fluent-sqlite-driver.git
Revision (git rev-parse @):
e227d94dc3fe7099a096ac2ca28cad1f69bd8d5b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/fluent-sqlite-driver.git at 4.9.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor/fluent-sqlite-driver.git
https://github.com/vapor/fluent-sqlite-driver.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "fluent-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.51.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/fluent-kit.git"
    },
    {
      "identity" : "sqlite-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.5.2",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/sqlite-kit.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "fluent-sqlite-driver",
  "name" : "fluent-sqlite-driver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "FluentSQLiteDriver",
      "targets" : [
        "FluentSQLiteDriver"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FluentSQLiteDriverTests",
      "module_type" : "SwiftTarget",
      "name" : "FluentSQLiteDriverTests",
      "path" : "Tests/FluentSQLiteDriverTests",
      "product_dependencies" : [
        "FluentBenchmark"
      ],
      "sources" : [
        "FluentSQLiteDriverTests.swift"
      ],
      "target_dependencies" : [
        "FluentSQLiteDriver"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FluentSQLiteDriver",
      "module_type" : "SwiftTarget",
      "name" : "FluentSQLiteDriver",
      "path" : "Sources/FluentSQLiteDriver",
      "product_dependencies" : [
        "FluentKit",
        "FluentSQL",
        "Logging",
        "SQLiteKit"
      ],
      "product_memberships" : [
        "FluentSQLiteDriver"
      ],
      "sources" : [
        "Exports.swift",
        "FluentSQLiteConfiguration.swift",
        "FluentSQLiteDatabase.swift",
        "FluentSQLiteDriver.swift",
        "SQLiteConverterDelegate.swift",
        "SQLiteError+Database.swift",
        "SQLiteRow+Database.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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: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 swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/vapor/sqlite-kit.git
Fetching https://github.com/apple/swift-log.git
[1/2157] Fetching sqlite-kit
[411/8445] Fetching sqlite-kit, swift-log
Fetching https://github.com/vapor/fluent-kit.git
Fetched https://github.com/apple/swift-log.git from cache (0.87s)
Fetched https://github.com/vapor/sqlite-kit.git from cache (0.87s)
[1/13935] Fetching fluent-kit
Fetched https://github.com/vapor/fluent-kit.git from cache (0.63s)
Computing version for https://github.com/vapor/sqlite-kit.git
Computed https://github.com/vapor/sqlite-kit.git at 4.5.2 (2.87s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/vapor/sqlite-nio.git
Fetching https://github.com/vapor/sql-kit.git
Fetching https://github.com/vapor/async-kit.git
[1/2496] Fetching async-kit
[2497/8693] Fetching async-kit, sql-kit
Fetched https://github.com/vapor/async-kit.git from cache (0.43s)
[1/82947] Fetching swift-nio
[14102/84767] Fetching swift-nio, sqlite-nio
Fetched https://github.com/vapor/sql-kit.git from cache (5.92s)
Fetched https://github.com/vapor/sqlite-nio.git from cache (5.94s)
Fetched https://github.com/apple/swift-nio.git from cache (6.04s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.22.0 (6.63s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/23245] Fetching swift-collections
[699/29303] Fetching swift-collections, swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.47s)
[3022/23245] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (1.91s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.42s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.44s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.29s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.97.1 (1.12s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[1821/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.45s)
Fetched https://github.com/apple/swift-system.git from cache (0.45s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.02s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.66s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.56.0 (0.60s)
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/1210] Fetching swift-service-context
[1211/3896] Fetching swift-service-context, swift-service-lifecycle
[1212/9587] Fetching swift-service-context, swift-service-lifecycle, swift-distributed-tracing
Fetched https://github.com/apple/swift-service-context.git from cache (0.34s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.35s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.44s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.10.1 (1.04s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6224] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.46s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (1.06s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.66s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.66s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.35.0 (0.59s)
Computing version for https://github.com/vapor/sqlite-nio.git
Computed https://github.com/vapor/sqlite-nio.git at 1.12.6 (0.64s)
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.22.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.97.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/vapor/sqlite-nio.git
Working copy of https://github.com/vapor/sqlite-nio.git resolved at 1.12.6
Creating working copy for https://github.com/vapor/fluent-kit.git
Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.56.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.10.1
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/vapor/sqlite-kit.git
Working copy of https://github.com/vapor/sqlite-kit.git resolved at 4.5.2
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.35.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Building for debugging...
[0/50] Write sources
[30/50] Compiling _CWASI _CWASI.c
[31/50] Compiling CNIOWindows WSAStartup.c
[32/50] Compiling CNIOWindows shim.c
[33/50] Compiling _NumericsShims _NumericsShims.c
[34/50] Compiling CNIOWASI CNIOWASI.c
[35/50] Compiling _AtomicsShims.c
[36/50] Compiling CNIOOpenBSD shim.c
[37/50] Compiling CNIOLinux shim.c
[38/50] Write sources
[40/50] Compiling CNIOLinux liburing_shims.c
[40/50] Write sources
[44/50] Compiling CNIOPosix event_loop_id.c
[45/50] Compiling CNIODarwin shim.c
[46/50] Write swift-version-24593BA9C3E375BF.txt
[48/88] Emitting module _NIOBase64
/host/spi-builder-workspace/.build/checkouts/sqlite-nio/Sources/VaporCSQLite/sqlite_nio_sqlite3.c:30177:10: fatal error: 'pthread.h' file not found
 30177 | #include <pthread.h>
       |          ^~~~~~~~~~~
1 error generated.
[48/88] Compiling VaporCSQLite sqlite_nio_sqlite3.c
[48/88] Compiling c-atomics.c
[48/88] Compiling c-nioatomics.c
[49/88] Emitting module InternalCollectionsUtilities
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
[50/88] Emitting module _NIODataStructures
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-24593BA9C3E375BF.txt
[2/42] Emitting module ServiceContextModule
[3/42] Compiling RealModule RealFunctions.swift
[4/43] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[5/43] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[6/45] Compiling RealModule Float80+Real.swift
[7/45] Compiling RealModule Real.swift
[8/45] Compiling RealModule RelaxedArithmetic.swift
[9/45] Compiling ServiceContextModule ServiceContextKey.swift
[10/45] Compiling ServiceContextModule ServiceContext.swift
[11/46] Compiling RealModule Float16+Real.swift
[12/46] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[13/46] Compiling InternalCollectionsUtilities Span+Extras.swift
[15/46] Compiling InternalCollectionsUtilities _SortedCollection.swift
[16/46] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[17/46] Compiling InternalCollectionsUtilities UInt+reversed.swift
[18/46] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[19/46] Compiling InternalCollectionsUtilities Integer rank.swift
[20/46] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[24/46] Compiling _NIODataStructures PriorityQueue.swift
[25/46] Compiling _NIODataStructures _TinyArray.swift
[26/46] Emitting module _NIODataStructures
[30/47] Emitting module RealModule
[31/52] Compiling _NIOBase64 Base64.swift
[32/52] Emitting module _NIOBase64
[34/53] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[35/53] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
/host/spi-builder-workspace/.build/checkouts/sqlite-nio/Sources/VaporCSQLite/sqlite_nio_sqlite3.c:30177:10: fatal error: 'pthread.h' file not found
 30177 | #include <pthread.h>
       |          ^~~~~~~~~~~
1 error generated.
[36/53] Compiling VaporCSQLite sqlite_nio_sqlite3.c
[36/53] Compiling c-nioatomics.c
[36/53] Compiling c-atomics.c
BUILD FAILURE 6.1 wasm