The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftLazy, reference v1.5.0 (9b267a), with Swift 6.0 for Linux on 25 Dec 2024 09:27:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ivlevAstef/SwiftLazy.git
Reference: v1.5.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/ivlevAstef/SwiftLazy
 * tag               v1.5.0     -> FETCH_HEAD
HEAD is now at 9b267a9 fix rw lock... but why without wrapper not work?....
Cloned https://github.com/ivlevAstef/SwiftLazy.git
Revision (git rev-parse @):
9b267a90bde85f07f372b1ac90a7ad88f434cd06
SUCCESS checkout https://github.com/ivlevAstef/SwiftLazy.git at v1.5.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
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" : [
  ],
  "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",
        "Provider.swift",
        "ProviderArgs.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling SwiftLazy Lazy.swift
[4/8] Compiling SwiftLazy ProviderArgs.swift
[5/8] Compiling SwiftLazy BaseProvider.swift
[6/8] Compiling SwiftLazy Provider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/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() {
[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 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] 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() {
[3/7] 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 | }
[4/7] Compiling SwiftLazy Provider.swift
[5/7] Compiling SwiftLazy Lazy.swift
[6/7] Compiling SwiftLazy BaseProvider.swift
[7/7] Compiling SwiftLazy ProviderArgs.swift
BUILD FAILURE 6.0 linux