Build Information
Failed to build PusherSwift with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pusher/pusher-websocket-swift.git
Reference: master
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/pusher/pusher-websocket-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 886341f Use organization level CocoaPods token (#423)
Cloned https://github.com/pusher/pusher-websocket-swift.git
Revision (git rev-parse @):
886341f9dad453c9822f2525136ee2006a6c3c9e
SUCCESS checkout https://github.com/pusher/pusher-websocket-swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/pusher/pusher-websocket-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/pusher/NWWebSocket.git
Fetching https://github.com/bitmark-inc/tweetnacl-swiftwrap
[1/404] Fetching tweetnacl-swiftwrap
[102/1015] Fetching tweetnacl-swiftwrap, nwwebsocket
Fetched https://github.com/pusher/NWWebSocket.git (0.33s)
Fetched https://github.com/bitmark-inc/tweetnacl-swiftwrap (0.33s)
Computing version for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Computed https://github.com/bitmark-inc/tweetnacl-swiftwrap at 1.0.2 (1.26s)
Computing version for https://github.com/pusher/NWWebSocket.git
Computed https://github.com/pusher/NWWebSocket.git at 0.5.4 (0.39s)
Creating working copy for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Working copy of https://github.com/bitmark-inc/tweetnacl-swiftwrap resolved at 1.0.2
Creating working copy for https://github.com/pusher/NWWebSocket.git
Working copy of https://github.com/pusher/NWWebSocket.git resolved at 0.5.4
Building for debugging...
[0/1] Compiling CTweetNacl ctweetnacl.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Emitting module NWWebSocket
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
[3/8] Compiling NWWebSocket WebSocketConnection.swift
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
[4/8] Compiling NWWebSocket NWWebSocket.swift
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
[5/8] Compiling NWWebSocket NWConnection+Extension.swift
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
[6/8] Emitting module TweetNacl
[7/8] Compiling TweetNacl Constant.swift
[8/8] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:45:20: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, $0)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:45:39: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, $0)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:47:25: error: cannot find 'errSecSuccess' in scope
guard result == errSecSuccess else {
^~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[1/6] Emitting module TweetNacl
[2/6] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:45:20: error: cannot find 'SecRandomCopyBytes' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, $0)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:45:39: error: cannot find 'kSecRandomDefault' in scope
return SecRandomCopyBytes(kSecRandomDefault, length, $0)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/tweetnacl-swiftwrap/Sources/TweetNacl/TweetNacl.swift:47:25: error: cannot find 'errSecSuccess' in scope
guard result == errSecSuccess else {
^~~~~~~~~~~~~
error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module NWWebSocket
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
/host/spi-builder-workspace/.build/checkouts/NWWebSocket/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:1:8: error: no such module 'Network'
import Network
^
BUILD FAILURE 5.9 linux