The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build fluent-kit, reference 1.53.0 (0272fd), with Swift 6.1 for Wasm on 8 Dec 2025 01:25:56 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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/fluent-kit.git
Reference: 1.53.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-kit
 * tag               1.53.0     -> FETCH_HEAD
HEAD is now at 0272fda Add Service Lifecycle Support (#646)
Cloned https://github.com/vapor/fluent-kit.git
Revision (git rev-parse @):
0272fdaf7cf6f482c2799026c0695f5fe40e3e8c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/fluent-kit.git at 1.53.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor/fluent-kit.git
https://github.com/vapor/fluent-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.81.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.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"
    },
    {
      "identity" : "sql-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.32.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/sql-kit.git"
    },
    {
      "identity" : "swift-service-lifecycle",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.9.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/swift-service-lifecycle.git"
    }
  ],
  "manifest_display_name" : "fluent-kit",
  "name" : "fluent-kit",
  "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" : "FluentKit",
      "targets" : [
        "FluentKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FluentBenchmark",
      "targets" : [
        "FluentBenchmark"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FluentSQL",
      "targets" : [
        "FluentSQL"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XCTFluent",
      "targets" : [
        "XCTFluent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XCTFluent",
      "module_type" : "SwiftTarget",
      "name" : "XCTFluent",
      "path" : "Sources/XCTFluent",
      "product_dependencies" : [
        "NIOEmbedded"
      ],
      "product_memberships" : [
        "XCTFluent"
      ],
      "sources" : [
        "DummyDatabase.swift",
        "TestDatabase.swift"
      ],
      "target_dependencies" : [
        "FluentKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FluentSQL",
      "module_type" : "SwiftTarget",
      "name" : "FluentSQL",
      "path" : "Sources/FluentSQL",
      "product_dependencies" : [
        "SQLKit"
      ],
      "product_memberships" : [
        "FluentBenchmark",
        "FluentSQL"
      ],
      "sources" : [
        "ConverterUtilities.swift",
        "DatabaseQuery+SQL.swift",
        "DatabaseSchema+SQL.swift",
        "Exports.swift",
        "SQLDatabase+Model+Concurrency.swift",
        "SQLDatabase+Model.swift",
        "SQLJSONColumnPath+Deprecated.swift",
        "SQLList+Deprecated.swift",
        "SQLQualifiedTable+Deprecated.swift",
        "SQLQueryConverter.swift",
        "SQLSchemaConverter.swift"
      ],
      "target_dependencies" : [
        "FluentKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FluentKitTests",
      "module_type" : "SwiftTarget",
      "name" : "FluentKitTests",
      "path" : "Tests/FluentKitTests",
      "sources" : [
        "AsyncTests/AsyncFilterQueryTests.swift",
        "AsyncTests/AsyncFluentKitTests.swift",
        "AsyncTests/AsyncQueryBuilderTests.swift",
        "CompositeIDTests.swift",
        "DummyDatabaseForTestSQLSerializer.swift",
        "FilterQueryTests.swift",
        "FluentKitTests.swift",
        "OptionalEnumQueryTests.swift",
        "OptionalFieldQueryTests.swift",
        "QueryBuilderTests.swift",
        "SQLTests.swift",
        "TestUtilities.swift"
      ],
      "target_dependencies" : [
        "FluentBenchmark",
        "FluentSQL",
        "XCTFluent"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FluentKit",
      "module_type" : "SwiftTarget",
      "name" : "FluentKit",
      "path" : "Sources/FluentKit",
      "product_dependencies" : [
        "NIO",
        "NIOConcurrencyHelpers",
        "NIOCore",
        "NIOPosix",
        "Logging",
        "SQLKit",
        "ServiceLifecycle"
      ],
      "product_memberships" : [
        "FluentKit",
        "FluentBenchmark",
        "FluentSQL",
        "XCTFluent"
      ],
      "sources" : [
        "Concurrency/AsyncMigration.swift",
        "Concurrency/AsyncModelMiddleware.swift",
        "Concurrency/Children+Concurrency.swift",
        "Concurrency/Database+Concurrency.swift",
        "Concurrency/EnumBuilder+Concurrency.swift",
        "Concurrency/Model+Concurrency.swift",
        "Concurrency/ModelResponder+Concurrency.swift",
        "Concurrency/OptionalChild+Concurrency.swift",
        "Concurrency/OptionalParent+Concurrency.swift",
        "Concurrency/Parent+Concurrency.swift",
        "Concurrency/QueryBuilder+Concurrency.swift",
        "Concurrency/Relation+Concurrency.swift",
        "Concurrency/SchemaBuilder+Concurrency.swift",
        "Concurrency/Siblings+Concurrency.swift",
        "Database/Database+Logging.swift",
        "Database/Database.swift",
        "Database/DatabaseID.swift",
        "Database/DatabaseInput.swift",
        "Database/DatabaseOutput.swift",
        "Database/Databases.swift",
        "Database/KeyPrefixingStrategy.swift",
        "Database/TransactionControlDatabase.swift",
        "Enum/DatabaseEnum.swift",
        "Enum/EnumBuilder.swift",
        "Enum/EnumMetadata.swift",
        "Enum/EnumProperty.swift",
        "Enum/OptionalEnumProperty.swift",
        "Exports.swift",
        "FluentError.swift",
        "Middleware/ModelMiddleware.swift",
        "Middleware/ModelResponder.swift",
        "Migration/Migration.swift",
        "Migration/MigrationLog.swift",
        "Migration/Migrations.swift",
        "Migration/Migrator.swift",
        "Model/AnyModel.swift",
        "Model/EagerLoad.swift",
        "Model/Fields+Codable.swift",
        "Model/Fields.swift",
        "Model/MirrorBypass.swift",
        "Model/Model+CRUD.swift",
        "Model/Model.swift",
        "Model/ModelAlias.swift",
        "Model/Schema.swift",
        "Operators/FieldOperators.swift",
        "Operators/Operators.swift",
        "Operators/ValueOperators+Array.swift",
        "Operators/ValueOperators+String.swift",
        "Operators/ValueOperators.swift",
        "Properties/Boolean.swift",
        "Properties/BooleanPropertyFormat.swift",
        "Properties/Children.swift",
        "Properties/CompositeChildren.swift",
        "Properties/CompositeID.swift",
        "Properties/CompositeOptionalChild.swift",
        "Properties/CompositeOptionalParent.swift",
        "Properties/CompositeParent.swift",
        "Properties/Field.swift",
        "Properties/FieldKey.swift",
        "Properties/Group.swift",
        "Properties/ID.swift",
        "Properties/OptionalBoolean.swift",
        "Properties/OptionalChild.swift",
        "Properties/OptionalField.swift",
        "Properties/OptionalParent.swift",
        "Properties/Parent.swift",
        "Properties/Property.swift",
        "Properties/Relation.swift",
        "Properties/Siblings.swift",
        "Properties/Timestamp.swift",
        "Properties/TimestampFormat.swift",
        "Query/Builder/QueryBuilder+Aggregate.swift",
        "Query/Builder/QueryBuilder+EagerLoad.swift",
        "Query/Builder/QueryBuilder+Filter.swift",
        "Query/Builder/QueryBuilder+Group.swift",
        "Query/Builder/QueryBuilder+Join+DirectRelations.swift",
        "Query/Builder/QueryBuilder+Join.swift",
        "Query/Builder/QueryBuilder+Paginate.swift",
        "Query/Builder/QueryBuilder+Range.swift",
        "Query/Builder/QueryBuilder+Set.swift",
        "Query/Builder/QueryBuilder+Sort.swift",
        "Query/Builder/QueryBuilder.swift",
        "Query/Database/DatabaseQuery+Action.swift",
        "Query/Database/DatabaseQuery+Aggregate.swift",
        "Query/Database/DatabaseQuery+Field.swift",
        "Query/Database/DatabaseQuery+Filter.swift",
        "Query/Database/DatabaseQuery+Join.swift",
        "Query/Database/DatabaseQuery+Range.swift",
        "Query/Database/DatabaseQuery+Sort.swift",
        "Query/Database/DatabaseQuery+Value.swift",
        "Query/Database/DatabaseQuery.swift",
        "Query/QueryHistory.swift",
        "Schema/DatabaseSchema.swift",
        "Schema/SchemaBuilder.swift",
        "Utilities/OptionalType.swift",
        "Utilities/RandomGeneratable.swift",
        "Utilities/SomeCodingKey.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FluentBenchmark",
      "module_type" : "SwiftTarget",
      "name" : "FluentBenchmark",
      "path" : "Sources/FluentBenchmark",
      "product_dependencies" : [
        "SQLKit",
        "SQLKitBenchmark"
      ],
      "product_memberships" : [
        "FluentBenchmark"
      ],
      "sources" : [
        "Exports.swift",
        "FluentBenchmarker.swift",
        "SolarSystem/GalacticJurisdiction.swift",
        "SolarSystem/Galaxy.swift",
        "SolarSystem/Governor.swift",
        "SolarSystem/Jurisdiction.swift",
        "SolarSystem/Moon.swift",
        "SolarSystem/Planet.swift",
        "SolarSystem/PlanetTag.swift",
        "SolarSystem/SolarSystem.swift",
        "SolarSystem/Star.swift",
        "SolarSystem/Tag.swift",
        "Tests/AggregateTests.swift",
        "Tests/ArrayTests.swift",
        "Tests/BatchTests.swift",
        "Tests/CRUDTests.swift",
        "Tests/ChildTests.swift",
        "Tests/ChildrenTests.swift",
        "Tests/ChunkTests.swift",
        "Tests/CodableTests.swift",
        "Tests/CompositeIDTests.swift",
        "Tests/CompositeRelationTests.swift",
        "Tests/EagerLoadTests.swift",
        "Tests/EnumTests.swift",
        "Tests/FilterTests.swift",
        "Tests/GroupTests.swift",
        "Tests/IDTests.swift",
        "Tests/JoinTests.swift",
        "Tests/MiddlewareTests.swift",
        "Tests/MigratorTests.swift",
        "Tests/ModelTests.swift",
        "Tests/OptionalParentTests.swift",
        "Tests/PaginationTests.swift",
        "Tests/ParentTests.swift",
        "Tests/PerformanceTests+Siblings.swift",
        "Tests/PerformanceTests.swift",
        "Tests/RangeTests.swift",
        "Tests/SQLTests.swift",
        "Tests/SchemaTests.swift",
        "Tests/SetTests.swift",
        "Tests/SiblingsTests.swift",
        "Tests/SoftDeleteTests.swift",
        "Tests/SortTests.swift",
        "Tests/TimestampTests.swift",
        "Tests/TransactionTests.swift",
        "Tests/UniqueTests.swift"
      ],
      "target_dependencies" : [
        "FluentKit",
        "FluentSQL"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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/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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/sql-kit.git
[1/2568] Fetching swift-service-lifecycle
[875/8713] Fetching swift-service-lifecycle, sql-kit
[988/14431] Fetching swift-service-lifecycle, sql-kit, swift-log
[14432/95094] Fetching swift-service-lifecycle, sql-kit, swift-log, swift-nio
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.55s)
[12670/92526] Fetching sql-kit, swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (0.59s)
Fetched https://github.com/vapor/sql-kit.git from cache (0.59s)
[1614/80663] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.07s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.9.1 (9.70s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/5789] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.39s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.1 (1.11s)
Fetching https://github.com/apple/swift-collections.git
[1/18364] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.45s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.33.2 (2.01s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.7.1 (0.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.84s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.91.0 (1.19s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1820] Fetching swift-atomics
[1712/7007] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.46s)
Fetched https://github.com/apple/swift-system.git from cache (0.48s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.24s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (0.70s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
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.3
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.33.2
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.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/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.9.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.91.0
Building for debugging...
[0/39] Write sources
[24/39] Compiling CNIOWindows WSAStartup.c
[25/39] Compiling _AtomicsShims.c
[26/39] Compiling CNIOWASI CNIOWASI.c
[27/39] Compiling CNIOWindows shim.c
[28/39] Compiling CNIOOpenBSD shim.c
[28/39] Compiling CNIOPosix event_loop_id.c
[30/39] Write sources
[33/39] Compiling CNIOLinux shim.c
[34/39] Compiling CNIODarwin shim.c
[35/39] Compiling CNIOLinux liburing_shims.c
[36/39] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[38/87] Emitting module ConcurrencyHelpers
/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 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[39/87] Emitting module InternalCollectionsUtilities
[39/89] Compiling c-nioatomics.c
[41/89] Emitting module Atomics
[42/91] Compiling ConcurrencyHelpers LockedValueBox.swift
/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 |
[43/91] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[44/91] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[45/91] Compiling InternalCollectionsUtilities Debugging.swift
[46/91] Compiling InternalCollectionsUtilities Descriptions.swift
[47/91] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[48/91] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[50/91] Compiling c-atomics.c
[54/91] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[55/91] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[56/91] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[57/91] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[58/91] Compiling ConcurrencyHelpers Lock.swift
/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 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[61/91] Emitting module _NIOBase64
[62/91] Compiling _NIOBase64 Base64.swift
[64/92] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[65/92] Compiling InternalCollectionsUtilities UInt+reversed.swift
[66/92] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[67/92] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[68/92] Compiling InternalCollectionsUtilities Integer rank.swift
[69/92] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[70/92] Compiling InternalCollectionsUtilities _SortedCollection.swift
[75/92] Compiling Logging MetadataProvider.swift
[76/92] Emitting module _NIODataStructures
[77/92] Compiling _NIODataStructures PriorityQueue.swift
[81/92] Compiling Logging Locks.swift
[82/92] Compiling Logging LogHandler.swift
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/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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
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/55] Compiling ConcurrencyHelpers LockedValueBox.swift
/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 |
[3/55] Compiling ConcurrencyHelpers Lock.swift
/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 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[4/55] Compiling Atomics AtomicStorage.swift
[5/55] Compiling Atomics AtomicValue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/57] Emitting module ConcurrencyHelpers
/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 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[7/57] Compiling Atomics Primitives.native.swift
[8/57] Compiling Atomics AtomicMemoryOrderings.swift
[9/57] Compiling Logging MetadataProvider.swift
BUILD FAILURE 6.1 wasm