The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PreciseISO8601DateFormatter with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shareup/precise-iso-8601-date-formatter.git
Reference: main
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/shareup/precise-iso-8601-date-formatter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fd00625 Update .swiftformat
Cloned https://github.com/shareup/precise-iso-8601-date-formatter.git
Revision (git rev-parse @):
fd00625bf71b9e1807de0e03e7d2d5e509cee1d4
SUCCESS checkout https://github.com/shareup/precise-iso-8601-date-formatter.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/shareup/precise-iso-8601-date-formatter.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/shareup/synchronized.git
[1/205] Fetching synchronized
Fetched https://github.com/shareup/synchronized.git from cache (0.23s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.0 (0.46s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
[5/7] Compiling Synchronized Lock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:7:40: error: cannot find type 'os_unfair_lock' in scope
        backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
                                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:8:32: error: cannot find 'os_unfair_lock' in scope
        backing.initialize(to: os_unfair_lock())
                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(backing)
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
        defer { os_unfair_lock_unlock(backing) }
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:25:12: error: cannot find 'os_unfair_lock_trylock' in scope
        if os_unfair_lock_trylock(backing) {
           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:26:21: error: cannot find 'os_unfair_lock_unlock' in scope
            defer { os_unfair_lock_unlock(backing) }
                    ^~~~~~~~~~~~~~~~~~~~~
[6/7] Compiling Synchronized Locked.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:6:13: error: type of expression is ambiguous without a type annotation
            withUnsafeMutablePointerToElements { lock in
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:17:35: error: cannot find 'os_unfair_lock' in scope
                $0.initialize(to: os_unfair_lock())
                                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:15:16: error: type of expression is ambiguous without a type annotation
        buffer = Lock.create(minimumCapacity: 1) { buffer in
        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:25:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(lock)
            ^~~~~~~~~~~~~~~~~~~
[7/7] Compiling Synchronized RecursiveLock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
                                                     ^
                                                     Int32(                 )
error: fatalError
[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/5] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
[3/5] Compiling Synchronized Lock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:7:40: error: cannot find type 'os_unfair_lock' in scope
        backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
                                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:8:32: error: cannot find 'os_unfair_lock' in scope
        backing.initialize(to: os_unfair_lock())
                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(backing)
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
        defer { os_unfair_lock_unlock(backing) }
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:25:12: error: cannot find 'os_unfair_lock_trylock' in scope
        if os_unfair_lock_trylock(backing) {
           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:26:21: error: cannot find 'os_unfair_lock_unlock' in scope
            defer { os_unfair_lock_unlock(backing) }
                    ^~~~~~~~~~~~~~~~~~~~~
[4/5] Compiling Synchronized RecursiveLock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
                                                     ^
                                                     Int32(                 )
[5/5] Compiling Synchronized Locked.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:6:13: error: type of expression is ambiguous without a type annotation
            withUnsafeMutablePointerToElements { lock in
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:17:35: error: cannot find 'os_unfair_lock' in scope
                $0.initialize(to: os_unfair_lock())
                                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:15:16: error: type of expression is ambiguous without a type annotation
        buffer = Lock.create(minimumCapacity: 1) { buffer in
        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:25:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(lock)
            ^~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2