Build Information
Failed to build Promis with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.7
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/albertodebortoli/Promis.git
Reference: 3.0.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/albertodebortoli/Promis
* tag 3.0.0 -> FETCH_HEAD
HEAD is now at cbc7acc Merge pull request #18 from albertodebortoli/fix-whenAll-leak
Cloned https://github.com/albertodebortoli/Promis.git
Revision (git rev-parse @):
cbc7accb649990c1248cf1de7159cf427a932550
SUCCESS checkout https://github.com/albertodebortoli/Promis.git at 3.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
https://github.com/albertodebortoli/Promis.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/7] Emitting module Promis
[2/7] Compiling Promis Promise.swift
[3/7] Compiling Promis FutureState.swift
[4/7] Compiling Promis PromisError.swift
[5/7] Compiling Promis Future.swift
[6/7] Compiling Promis Future+Chaining.swift
[7/7] Compiling Promis Future+WhenAll.swift
/host/spi-builder-workspace/Framework/Sources/Future+WhenAll.swift:28:21: error: cannot find 'OSAtomicDecrement32' in scope
if (OSAtomicDecrement32(&counter) == 0) {
^~~~~~~~~~~~~~~~~~~
[0/1] Planning build
Building for debugging...
[1/2] Emitting module Promis
[2/2] Compiling Promis Future+WhenAll.swift
/host/spi-builder-workspace/Framework/Sources/Future+WhenAll.swift:28:21: error: cannot find 'OSAtomicDecrement32' in scope
if (OSAtomicDecrement32(&counter) == 0) {
^~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.8 linux