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.5.0 (9b267a), with Swift 6.2 (beta) for Linux on 22 Jun 2025 18:40:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path:  $PWD
https://github.com/ivlevAstef/SwiftLazy.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling SwiftLazy ProviderArgs.swift
[4/8] Compiling SwiftLazy Lazy.swift
[5/8] Compiling SwiftLazy BaseProvider.swift
[6/8] Compiling SwiftLazy Provider.swift
[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 | }
BUILD FAILURE 6.2 linux