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 SwiftLazy, reference v1.6.1 (1d1cfb), with Swift 6.1 for Linux on 21 Nov 2025 15:10:10 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/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ivlevAstef/SwiftLazy.git
Reference: v1.6.1
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/ivlevAstef/SwiftLazy
 * tag               v1.6.1     -> FETCH_HEAD
HEAD is now at 1d1cfb4 fix SPM for tuist - remove double folder contains for SwiftLazy
Cloned https://github.com/ivlevAstef/SwiftLazy.git
Revision (git rev-parse @):
1d1cfb4c8552fa2d2bf83cabc99ac9e60171d874
SUCCESS checkout https://github.com/ivlevAstef/SwiftLazy.git at v1.6.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ivlevAstef/SwiftLazy.git
https://github.com/ivlevAstef/SwiftLazy.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftLazy",
  "name" : "SwiftLazy",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLazy",
      "targets" : [
        "SwiftLazy"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLazy",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLazy",
      "path" : "Sources/SwiftLazy",
      "product_memberships" : [
        "SwiftLazy"
      ],
      "sources" : [
        "BaseLazy.swift",
        "BaseProvider.swift",
        "Lazy.swift",
        "PrefixOperator.swift",
        "Provider.swift",
        "ProviderArgs.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling SwiftLazy ProviderArgs.swift
[4/9] Compiling SwiftLazy PrefixOperator.swift
[5/9] Compiling SwiftLazy Provider.swift
[6/9] Compiling SwiftLazy BaseProvider.swift
[7/9] Compiling SwiftLazy Lazy.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] Emitting module SwiftLazy
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:71:22: error: cannot find 'pthread_rwlock_t' in scope
69 |
70 | private final class RWLock {
71 |   private var lock = pthread_rwlock_t()
   |                      `- error: cannot find 'pthread_rwlock_t' in scope
72 |
73 |   init() {
[9/9] Compiling SwiftLazy BaseLazy.swift
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:71:22: error: cannot find 'pthread_rwlock_t' in scope
69 |
70 | private final class RWLock {
71 |   private var lock = pthread_rwlock_t()
   |                      `- error: cannot find 'pthread_rwlock_t' in scope
72 |
73 |   init() {
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:74:5: error: cannot find 'pthread_rwlock_init' in scope
72 |
73 |   init() {
74 |     pthread_rwlock_init(&lock, nil)
   |     `- error: cannot find 'pthread_rwlock_init' in scope
75 |   }
76 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:74:32: error: 'nil' requires a contextual type
72 |
73 |   init() {
74 |     pthread_rwlock_init(&lock, nil)
   |                                `- error: 'nil' requires a contextual type
75 |   }
76 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:78:5: error: cannot find 'pthread_rwlock_destroy' in scope
76 |
77 |   deinit {
78 |     pthread_rwlock_destroy(&lock)
   |     `- error: cannot find 'pthread_rwlock_destroy' in scope
79 |   }
80 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:82:5: error: cannot find 'pthread_rwlock_wrlock' in scope
80 |
81 |   func writeLock() {
82 |     pthread_rwlock_wrlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_wrlock' in scope
83 |   }
84 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:86:5: error: cannot find 'pthread_rwlock_rdlock' in scope
84 |
85 |   func readLock() {
86 |     pthread_rwlock_rdlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_rdlock' in scope
87 |   }
88 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:90:5: error: cannot find 'pthread_rwlock_unlock' in scope
88 |
89 |   func unlock() {
90 |     pthread_rwlock_unlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_unlock' in scope
91 |   }
92 | }
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/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling SwiftLazy ProviderArgs.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling SwiftLazy PrefixOperator.swift
[4/8] Emitting module SwiftLazy
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:71:22: error: cannot find 'pthread_rwlock_t' in scope
69 |
70 | private final class RWLock {
71 |   private var lock = pthread_rwlock_t()
   |                      `- error: cannot find 'pthread_rwlock_t' in scope
72 |
73 |   init() {
[5/8] Compiling SwiftLazy Lazy.swift
[6/8] Compiling SwiftLazy BaseProvider.swift
[7/8] Compiling SwiftLazy Provider.swift
[8/8] Compiling SwiftLazy BaseLazy.swift
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:71:22: error: cannot find 'pthread_rwlock_t' in scope
69 |
70 | private final class RWLock {
71 |   private var lock = pthread_rwlock_t()
   |                      `- error: cannot find 'pthread_rwlock_t' in scope
72 |
73 |   init() {
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:74:5: error: cannot find 'pthread_rwlock_init' in scope
72 |
73 |   init() {
74 |     pthread_rwlock_init(&lock, nil)
   |     `- error: cannot find 'pthread_rwlock_init' in scope
75 |   }
76 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:74:32: error: 'nil' requires a contextual type
72 |
73 |   init() {
74 |     pthread_rwlock_init(&lock, nil)
   |                                `- error: 'nil' requires a contextual type
75 |   }
76 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:78:5: error: cannot find 'pthread_rwlock_destroy' in scope
76 |
77 |   deinit {
78 |     pthread_rwlock_destroy(&lock)
   |     `- error: cannot find 'pthread_rwlock_destroy' in scope
79 |   }
80 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:82:5: error: cannot find 'pthread_rwlock_wrlock' in scope
80 |
81 |   func writeLock() {
82 |     pthread_rwlock_wrlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_wrlock' in scope
83 |   }
84 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:86:5: error: cannot find 'pthread_rwlock_rdlock' in scope
84 |
85 |   func readLock() {
86 |     pthread_rwlock_rdlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_rdlock' in scope
87 |   }
88 |
/host/spi-builder-workspace/Sources/SwiftLazy/BaseLazy.swift:90:5: error: cannot find 'pthread_rwlock_unlock' in scope
88 |
89 |   func unlock() {
90 |     pthread_rwlock_unlock(&lock)
   |     `- error: cannot find 'pthread_rwlock_unlock' in scope
91 |   }
92 | }
BUILD FAILURE 6.1 linux