Build Information
Failed to build AdversaryLabClientSwift, reference main (5ca384), with Swift 6.3 for Wasm on 13 Apr 2026 18:53:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/AdversaryLabClientSwift.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/OperatorFoundation/AdversaryLabClientSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5ca3845 swift-tools-version:5.8 macOS 13
Cloned https://github.com/OperatorFoundation/AdversaryLabClientSwift.git
Revision (git rev-parse @):
5ca3845f333187e4be0ecd95baf816c467505e95
SUCCESS checkout https://github.com/OperatorFoundation/AdversaryLabClientSwift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/OperatorFoundation/AdversaryLabClientSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/OperatorFoundation/Bits.git
[1/122] Fetching bits
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.18s)
Fetching https://github.com/OperatorFoundation/Chord.git
[1/504] Fetching chord
Fetched https://github.com/OperatorFoundation/Chord.git from cache (0.76s)
Fetching https://github.com/OperatorFoundation/Datable.git
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.20s)
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
[1/467] Fetching internetprotocols
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (0.35s)
Fetching https://github.com/OperatorFoundation/PacketCaptureLibpcap.git
[1/92] Fetching packetcapturelibpcap
Fetched https://github.com/OperatorFoundation/PacketCaptureLibpcap.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/PacketStream.git
[1/45] Fetching packetstream
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/Song.git
[1/593] Fetching song
Fetched https://github.com/OperatorFoundation/Song.git from cache (0.24s)
Fetching https://github.com/OperatorFoundation/swift-netutils.git
[1/1121] Fetching swift-netutils
Fetched https://github.com/OperatorFoundation/swift-netutils.git from cache (0.69s)
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
[1/70] Fetching swiftqueue
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.22s)
Fetching https://github.com/OperatorFoundation/Net.git
[1/105] Fetching net
Fetched https://github.com/OperatorFoundation/Net.git from cache (0.24s)
Fetching https://github.com/OperatorFoundation/SwiftHexTools.git
[1/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools.git from cache (0.20s)
Fetching https://github.com/OperatorFoundation/swift-ast
[1/6960] Fetching swift-ast
Fetched https://github.com/OperatorFoundation/swift-ast from cache (0.35s)
Fetching https://github.com/OperatorFoundation/NetworkLinux
[1/199] Fetching networklinux
Fetched https://github.com/OperatorFoundation/NetworkLinux from cache (0.27s)
Fetching https://github.com/OperatorFoundation/BlueSocket.git
[1/2764] Fetching bluesocket
Fetched https://github.com/OperatorFoundation/BlueSocket.git from cache (0.40s)
Fetching https://github.com/OperatorFoundation/SwiftPCAP.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/weichsel/ZIPFoundation.git
[1/178] Fetching swiftpcap
Fetched https://github.com/OperatorFoundation/SwiftPCAP.git from cache (0.23s)
[1/17523] Fetching swift-argument-parser
[2/23486] Fetching swift-argument-parser, zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.45s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.46s)
Computing version for https://github.com/OperatorFoundation/SwiftPCAP.git
Computed https://github.com/OperatorFoundation/SwiftPCAP.git at 1.3.1 (3.76s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.20 (0.78s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.94s)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools.git
Working copy of https://github.com/OperatorFoundation/SwiftHexTools.git resolved at main (3d4b5a9)
Creating working copy for https://github.com/OperatorFoundation/swift-netutils.git
Working copy of https://github.com/OperatorFoundation/swift-netutils.git resolved at main (7eabe76)
Creating working copy for https://github.com/OperatorFoundation/Song.git
Working copy of https://github.com/OperatorFoundation/Song.git resolved at main (191a949)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at main (3d099bc)
Creating working copy for https://github.com/OperatorFoundation/NetworkLinux
Working copy of https://github.com/OperatorFoundation/NetworkLinux resolved at main (2c563f2)
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at 0.9.20
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at main (ce88950)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at main (1186348)
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at main (7916aee)
Creating working copy for https://github.com/OperatorFoundation/PacketCaptureLibpcap.git
Working copy of https://github.com/OperatorFoundation/PacketCaptureLibpcap.git resolved at main (3ca84a2)
Creating working copy for https://github.com/OperatorFoundation/Chord.git
Working copy of https://github.com/OperatorFoundation/Chord.git resolved at main (fd232f4)
Creating working copy for https://github.com/OperatorFoundation/Net.git
Working copy of https://github.com/OperatorFoundation/Net.git resolved at main (e49f54a)
Creating working copy for https://github.com/OperatorFoundation/BlueSocket.git
Working copy of https://github.com/OperatorFoundation/BlueSocket.git resolved at main (5a936a3)
Creating working copy for https://github.com/OperatorFoundation/SwiftPCAP.git
Working copy of https://github.com/OperatorFoundation/SwiftPCAP.git resolved at 1.3.1
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at main (cc7079e)
Creating working copy for https://github.com/OperatorFoundation/swift-ast
Working copy of https://github.com/OperatorFoundation/swift-ast resolved at main (d7e0cf0)
warning: 'swift-netutils': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/swift-netutils/NetUtils/Info.plist
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/63] Write sources
[31/63] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/104] Emitting module SwiftQueue
/host/spi-builder-workspace/.build/checkouts/SwiftQueue/Sources/SwiftQueue/Queue.swift:9:8: error: no such module 'Dispatch'
7 |
8 | import Foundation
9 | import Dispatch
| `- error: no such module 'Dispatch'
10 |
11 | public class Queue<T>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/104] Emitting module ZIPFoundation
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[35/106] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[36/106] Compiling ZIPFoundation URL+ZIP.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[37/106] Compiling ZIPFoundation Archive+MemoryFile.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[38/106] Compiling ZIPFoundation Archive+Progress.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[39/106] Compiling ZIPFoundation Archive+Reading.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[40/106] Compiling SwiftQueue Queue.swift
/host/spi-builder-workspace/.build/checkouts/SwiftQueue/Sources/SwiftQueue/Queue.swift:9:8: error: no such module 'Dispatch'
7 |
8 | import Foundation
9 | import Dispatch
| `- error: no such module 'Dispatch'
10 |
11 | public class Queue<T>
[41/106] Emitting module PacketStream
[42/106] Compiling PacketStream PacketStream.swift
[43/106] Compiling ZIPFoundation Archive+BackingConfiguration.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[44/106] Compiling ZIPFoundation Archive+Deprecated.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[45/106] Compiling ZIPFoundation Archive+Helpers.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[46/106] Compiling SwiftPCAP SwiftPCAPOffline.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPOffline.swift:26:70: error: cannot find 'PCAP_ERRBUF_SIZE' in scope
24 |
25 | // prepare error buffer for libpcap to use
26 | let errbuf = UnsafeMutablePointer<Int8>.allocate(capacity: Int(PCAP_ERRBUF_SIZE))
| `- error: cannot find 'PCAP_ERRBUF_SIZE' in scope
27 |
28 | // create the pcap_t handle
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPOffline.swift:29:20: error: cannot find 'pcap_open_offline' in scope
27 |
28 | // create the pcap_t handle
29 | pcapDevice = pcap_open_offline(path, errbuf)
| `- error: cannot find 'pcap_open_offline' in scope
30 |
31 | if (pcapDevice == nil) {
[47/106] Compiling ZIPFoundation Archive+ZIP64.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[48/106] Compiling ZIPFoundation Archive.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[49/106] Compiling ZIPFoundation Data+Compression.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[50/106] Compiling SwiftPCAP SwiftPCAPLive.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:37:72: error: cannot find 'PCAP_ERRBUF_SIZE' in scope
35 | super.init()
36 | // prepare error buffer for libpcap to use
37 | let errbuf = UnsafeMutablePointer<Int8>.allocate(capacity: Int(PCAP_ERRBUF_SIZE))
| `- error: cannot find 'PCAP_ERRBUF_SIZE' in scope
38 |
39 | // create the pcap_t handle for live capture
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:40:22: error: cannot find 'pcap_create' in scope
38 |
39 | // create the pcap_t handle for live capture
40 | pcapDevice = pcap_create(interface, errbuf)
| `- error: cannot find 'pcap_create' in scope
41 |
42 | if (pcapDevice == nil) {
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:57:34: error: cannot find 'pcap_activate' in scope
55 | // activate the live capture handle
56 | do {
57 | try handleReturnCode(pcap_activate(pcapDevice))
| `- error: cannot find 'pcap_activate' in scope
58 | }
59 | catch{
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:80:28: error: cannot find 'pcap_set_buffer_size' in scope
78 | // libpcap options
79 | // currently no error handling, may want to add that
80 | try handleReturnCode(pcap_set_buffer_size(pcapDevice, bufferSize))
| `- error: cannot find 'pcap_set_buffer_size' in scope
81 | try handleReturnCode(pcap_set_snaplen(pcapDevice, snaplen))
82 | try handleReturnCode(pcap_set_promisc(pcapDevice, 1))
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:81:28: error: cannot find 'pcap_set_snaplen' in scope
79 | // currently no error handling, may want to add that
80 | try handleReturnCode(pcap_set_buffer_size(pcapDevice, bufferSize))
81 | try handleReturnCode(pcap_set_snaplen(pcapDevice, snaplen))
| `- error: cannot find 'pcap_set_snaplen' in scope
82 | try handleReturnCode(pcap_set_promisc(pcapDevice, 1))
83 | try handleReturnCode(pcap_set_timeout(pcapDevice, 1))
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:82:28: error: cannot find 'pcap_set_promisc' in scope
80 | try handleReturnCode(pcap_set_buffer_size(pcapDevice, bufferSize))
81 | try handleReturnCode(pcap_set_snaplen(pcapDevice, snaplen))
82 | try handleReturnCode(pcap_set_promisc(pcapDevice, 1))
| `- error: cannot find 'pcap_set_promisc' in scope
83 | try handleReturnCode(pcap_set_timeout(pcapDevice, 1))
84 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAPLive.swift:83:28: error: cannot find 'pcap_set_timeout' in scope
81 | try handleReturnCode(pcap_set_snaplen(pcapDevice, snaplen))
82 | try handleReturnCode(pcap_set_promisc(pcapDevice, 1))
83 | try handleReturnCode(pcap_set_timeout(pcapDevice, 1))
| `- error: cannot find 'pcap_set_timeout' in scope
84 | }
85 | }
[51/106] Compiling SwiftPCAP SwiftPCAP.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:34:31: error: cannot find type 'pcap_pkthdr' in scope
32 |
33 | /// packet header
34 | public var currentHeader: pcap_pkthdr
| `- error: cannot find type 'pcap_pkthdr' in scope
35 |
36 | /// base class initializer
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:39:38: error: cannot find type 'pcap_pkthdr' in scope
37 | init() {
38 | // initialize memory for the pcap_pkthdr struct
39 | let ptr = UnsafeMutablePointer<pcap_pkthdr>.allocate(capacity: MemoryLayout<pcap_pkthdr>.size)
| `- error: cannot find type 'pcap_pkthdr' in scope
40 | currentHeader = ptr.pointee
41 | ptr.deinitialize(count: 1)
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:39:83: error: cannot find type 'pcap_pkthdr' in scope
37 | init() {
38 | // initialize memory for the pcap_pkthdr struct
39 | let ptr = UnsafeMutablePointer<pcap_pkthdr>.allocate(capacity: MemoryLayout<pcap_pkthdr>.size)
| `- error: cannot find type 'pcap_pkthdr' in scope
40 | currentHeader = ptr.pointee
41 | ptr.deinitialize(count: 1)
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:51:25: error: cannot find 'pcap_next' in scope
49 | // get the next packet, should not block
50 |
51 | guard let pkt = pcap_next(pcapDevice, ¤tHeader)
| `- error: cannot find 'pcap_next' in scope
52 | else
53 | {
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:54:26: error: cannot find 'pcap_geterr' in scope
52 | else
53 | {
54 | if let error = pcap_geterr(pcapDevice)
| `- error: cannot find 'pcap_geterr' in scope
55 | {
56 | print(error)
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:67:28: error: generic parameter 'Element' could not be inferred
65 | }
66 |
67 | let unsafePacket = UnsafeBufferPointer(start: pkt, count: Int(currentHeader.len))
| |- error: generic parameter 'Element' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
68 | return Data(unsafePacket)
69 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:73:7: error: cannot find 'pcap_close' in scope
71 | public func close()
72 | {
73 | pcap_close(pcapDevice)
| `- error: cannot find 'pcap_close' in scope
74 | }
75 |
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:84:14: error: cannot find 'PCAP_WARNING' in scope
82 | if (rc != 0) {
83 | switch rc {
84 | case PCAP_WARNING:
| `- error: cannot find 'PCAP_WARNING' in scope
85 | throw Errors.warningMessage(msg: "generic warning code")
86 | case PCAP_WARNING_PROMISC_NOTSUP:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:86:14: error: cannot find 'PCAP_WARNING_PROMISC_NOTSUP' in scope
84 | case PCAP_WARNING:
85 | throw Errors.warningMessage(msg: "generic warning code")
86 | case PCAP_WARNING_PROMISC_NOTSUP:
| `- error: cannot find 'PCAP_WARNING_PROMISC_NOTSUP' in scope
87 | throw Errors.warningMessage(msg: "this device doesn't support promiscuous mode")
88 | case PCAP_WARNING_TSTAMP_TYPE_NOTSUP:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:88:14: error: cannot find 'PCAP_WARNING_TSTAMP_TYPE_NOTSUP' in scope
86 | case PCAP_WARNING_PROMISC_NOTSUP:
87 | throw Errors.warningMessage(msg: "this device doesn't support promiscuous mode")
88 | case PCAP_WARNING_TSTAMP_TYPE_NOTSUP:
| `- error: cannot find 'PCAP_WARNING_TSTAMP_TYPE_NOTSUP' in scope
89 | throw Errors.warningMessage(msg: "the requested time stamp type is not supported")
90 | case PCAP_ERROR:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:90:14: error: cannot find 'PCAP_ERROR' in scope
88 | case PCAP_WARNING_TSTAMP_TYPE_NOTSUP:
89 | throw Errors.warningMessage(msg: "the requested time stamp type is not supported")
90 | case PCAP_ERROR:
| `- error: cannot find 'PCAP_ERROR' in scope
91 | throw Errors.errorMessage(msg: "generic error code")
92 | case PCAP_ERROR_BREAK:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:92:14: error: cannot find 'PCAP_ERROR_BREAK' in scope
90 | case PCAP_ERROR:
91 | throw Errors.errorMessage(msg: "generic error code")
92 | case PCAP_ERROR_BREAK:
| `- error: cannot find 'PCAP_ERROR_BREAK' in scope
93 | throw Errors.errorMessage(msg: "loop terminated by pcap_breakloop")
94 | case PCAP_ERROR_NOT_ACTIVATED:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:94:14: error: cannot find 'PCAP_ERROR_NOT_ACTIVATED' in scope
92 | case PCAP_ERROR_BREAK:
93 | throw Errors.errorMessage(msg: "loop terminated by pcap_breakloop")
94 | case PCAP_ERROR_NOT_ACTIVATED:
| `- error: cannot find 'PCAP_ERROR_NOT_ACTIVATED' in scope
95 | throw Errors.errorMessage(msg: "the capture needs to be activated")
96 | case PCAP_ERROR_ACTIVATED:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:96:14: error: cannot find 'PCAP_ERROR_ACTIVATED' in scope
94 | case PCAP_ERROR_NOT_ACTIVATED:
95 | throw Errors.errorMessage(msg: "the capture needs to be activated")
96 | case PCAP_ERROR_ACTIVATED:
| `- error: cannot find 'PCAP_ERROR_ACTIVATED' in scope
97 | throw Errors.errorMessage(msg: "the operation can't be performed on already activated captures")
98 | case PCAP_ERROR_NO_SUCH_DEVICE:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:98:14: error: cannot find 'PCAP_ERROR_NO_SUCH_DEVICE' in scope
96 | case PCAP_ERROR_ACTIVATED:
97 | throw Errors.errorMessage(msg: "the operation can't be performed on already activated captures")
98 | case PCAP_ERROR_NO_SUCH_DEVICE:
| `- error: cannot find 'PCAP_ERROR_NO_SUCH_DEVICE' in scope
99 | throw Errors.errorMessage(msg: "no such device exists")
100 | case PCAP_ERROR_RFMON_NOTSUP:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:100:14: error: cannot find 'PCAP_ERROR_RFMON_NOTSUP' in scope
98 | case PCAP_ERROR_NO_SUCH_DEVICE:
99 | throw Errors.errorMessage(msg: "no such device exists")
100 | case PCAP_ERROR_RFMON_NOTSUP:
| `- error: cannot find 'PCAP_ERROR_RFMON_NOTSUP' in scope
101 | throw Errors.errorMessage(msg: "this device doesn't support rfmon (monitor) mode")
102 | case PCAP_ERROR_NOT_RFMON:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:102:14: error: cannot find 'PCAP_ERROR_NOT_RFMON' in scope
100 | case PCAP_ERROR_RFMON_NOTSUP:
101 | throw Errors.errorMessage(msg: "this device doesn't support rfmon (monitor) mode")
102 | case PCAP_ERROR_NOT_RFMON:
| `- error: cannot find 'PCAP_ERROR_NOT_RFMON' in scope
103 | throw Errors.errorMessage(msg: "operation supported only in monitor mode")
104 | case PCAP_ERROR_PERM_DENIED:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:104:14: error: cannot find 'PCAP_ERROR_PERM_DENIED' in scope
102 | case PCAP_ERROR_NOT_RFMON:
103 | throw Errors.errorMessage(msg: "operation supported only in monitor mode")
104 | case PCAP_ERROR_PERM_DENIED:
| `- error: cannot find 'PCAP_ERROR_PERM_DENIED' in scope
105 | throw Errors.errorMessage(msg: "no permission to open the device")
106 | case PCAP_ERROR_IFACE_NOT_UP:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:106:14: error: cannot find 'PCAP_ERROR_IFACE_NOT_UP' in scope
104 | case PCAP_ERROR_PERM_DENIED:
105 | throw Errors.errorMessage(msg: "no permission to open the device")
106 | case PCAP_ERROR_IFACE_NOT_UP:
| `- error: cannot find 'PCAP_ERROR_IFACE_NOT_UP' in scope
107 | throw Errors.errorMessage(msg: "interface isn't up")
108 | case PCAP_ERROR_CANTSET_TSTAMP_TYPE:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:108:14: error: cannot find 'PCAP_ERROR_CANTSET_TSTAMP_TYPE' in scope
106 | case PCAP_ERROR_IFACE_NOT_UP:
107 | throw Errors.errorMessage(msg: "interface isn't up")
108 | case PCAP_ERROR_CANTSET_TSTAMP_TYPE:
| `- error: cannot find 'PCAP_ERROR_CANTSET_TSTAMP_TYPE' in scope
109 | throw Errors.errorMessage(msg: "this device doesn't support setting the time stamp type")
110 | case PCAP_ERROR_PROMISC_PERM_DENIED:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:110:14: error: cannot find 'PCAP_ERROR_PROMISC_PERM_DENIED' in scope
108 | case PCAP_ERROR_CANTSET_TSTAMP_TYPE:
109 | throw Errors.errorMessage(msg: "this device doesn't support setting the time stamp type")
110 | case PCAP_ERROR_PROMISC_PERM_DENIED:
| `- error: cannot find 'PCAP_ERROR_PROMISC_PERM_DENIED' in scope
111 | throw Errors.errorMessage(msg: "you don't have permission to capture in promiscuous mode")
112 | case PCAP_ERROR_TSTAMP_PRECISION_NOTSUP:
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:112:14: error: cannot find 'PCAP_ERROR_TSTAMP_PRECISION_NOTSUP' in scope
110 | case PCAP_ERROR_PROMISC_PERM_DENIED:
111 | throw Errors.errorMessage(msg: "you don't have permission to capture in promiscuous mode")
112 | case PCAP_ERROR_TSTAMP_PRECISION_NOTSUP:
| `- error: cannot find 'PCAP_ERROR_TSTAMP_PRECISION_NOTSUP' in scope
113 | throw Errors.errorMessage(msg: "the requested time stamp precision is not supported")
114 | default:
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/106] Emitting module SwiftPCAP
/host/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:34:31: error: cannot find type 'pcap_pkthdr' in scope
32 |
33 | /// packet header
34 | public var currentHeader: pcap_pkthdr
| `- error: cannot find type 'pcap_pkthdr' in scope
35 |
36 | /// base class initializer
[53/107] Compiling SwiftQueue LinkedList.swift
/host/spi-builder-workspace/.build/checkouts/SwiftQueue/Sources/SwiftQueue/Queue.swift:9:8: error: no such module 'Dispatch'
7 |
8 | import Foundation
9 | import Dispatch
| `- error: no such module 'Dispatch'
10 |
11 | public class Queue<T>
[54/107] Compiling ZIPFoundation Entry.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[55/107] Compiling ZIPFoundation FileManager+ZIP.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[56/107] Compiling ZIPFoundation Data+CompressionDeprecated.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[57/107] Compiling ZIPFoundation Data+Serialization.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[58/107] Compiling ZIPFoundation Date+ZIP.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[59/107] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[60/107] Compiling ZIPFoundation Archive+Writing.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[61/107] Compiling ZIPFoundation Archive+WritingDeprecated.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[62/107] Compiling ZIPFoundation Entry+Serialization.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
[63/107] Compiling ZIPFoundation Entry+ZIP64.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
| `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
| `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[65/107] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
[66/107] Compiling Socket SocketProtocols.swift
[67/107] Compiling Socket Socket+Equatable.swift
[68/107] Compiling Socket Socket+Hashable.swift
[69/107] Compiling Socket SocketUtils.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:152:45: error: cannot find 'fds_bits' in scope
150 | @inline(__always)
151 | mutating func withCArrayAccess<T>(block: (UnsafeMutablePointer<Int32>) throws -> T) rethrows -> T {
152 | return try withUnsafeMutablePointer(to: &fds_bits) {
| `- error: cannot find 'fds_bits' in scope
153 | try block(UnsafeMutableRawPointer($0).assumingMemoryBound(to: Int32.self))
154 | }
[70/107] Compiling Socket Socket.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:208:13: error: cannot find 'SOCK_STREAM' in scope
206 | return Int32(SOCK_STREAM.rawValue)
207 | #else
208 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
209 | #endif
210 | case .datagram:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:214:13: error: cannot find 'SOCK_DGRAM' in scope
212 | return Int32(SOCK_DGRAM.rawValue)
213 | #else
214 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
215 | #endif
216 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:241:10: error: cannot find 'SOCK_STREAM' in scope
239 | switch forValue {
240 |
241 | case SOCK_STREAM:
| `- error: cannot find 'SOCK_STREAM' in scope
242 | return .stream
243 | case SOCK_DGRAM:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:243:10: error: cannot find 'SOCK_DGRAM' in scope
241 | case SOCK_STREAM:
242 | return .stream
243 | case SOCK_DGRAM:
| `- error: cannot find 'SOCK_DGRAM' in scope
244 | return .datagram
245 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:597:63: error: value of type 'sockaddr_un' has no member 'sun_path'
595 |
596 | // Validate the length...
597 | guard lengthOfPath < MemoryLayout.size(ofValue: remoteAddr.sun_path) else {
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
598 |
599 | throw Error(code: Socket.SOCKET_ERR_BAD_SIGNATURE_PARAMETERS, reason: "Pathname supplied is too long.")
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:603:49: error: value of type 'sockaddr_un' has no member 'sun_path'
601 |
602 | // Copy the path to the remote address...
603 | _ = withUnsafeMutablePointer(to: &remoteAddr.sun_path.0) { ptr in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
604 |
605 | path.withCString {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:611:19: error: value of type 'sockaddr_un' has no member 'sun_len'
609 |
610 | #if !os(Linux)
611 | remoteAddr.sun_len = UInt8(MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + path.utf8.count + 1)
| `- error: value of type 'sockaddr_un' has no member 'sun_len'
612 | #endif
613 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1177:19: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
1175 | // First get seconds...
1176 | let secs = Int(Double(timeout / 1000))
1177 | timer.tv_sec = secs
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
1178 |
1179 | // Now get the leftover millisecs...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1189:21: error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
1187 | timer.tv_usec = Int(uSecs)
1188 | #else
1189 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
1190 | #endif
1191 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1240:34: error: cannot find type 'addrinfo' in scope
1238 | public class func createAddress(for host: String, on port: Int32) -> Address? {
1239 |
1240 | var info: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1241 |
1242 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1243:23: error: cannot find 'getaddrinfo' in scope
1241 |
1242 | // Retrieve the info on our target...
1243 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: cannot find 'getaddrinfo' in scope
1244 | if status != 0 {
1245 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1243:55: error: 'nil' requires a contextual type
1241 |
1242 | // Retrieve the info on our target...
1243 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: 'nil' requires a contextual type
1244 | if status != 0 {
1245 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1253:5: error: cannot find 'freeaddrinfo' in scope
1251 |
1252 | if info != nil {
1253 | freeaddrinfo(info)
| `- error: cannot find 'freeaddrinfo' in scope
1254 | }
1255 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1311:20: error: cannot find 'Darwin' in scope
1309 | self.socketfd = Glibc.socket(family.value, type.value, sockProto.value)
1310 | #else
1311 | self.socketfd = Darwin.socket(family.value, type.value, sockProto.value)
| `- error: cannot find 'Darwin' in scope
1312 | #endif
1313 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1356:15: error: cannot find 'SOCK_STREAM' in scope
1354 | let type = Int32(SOCK_STREAM.rawValue)
1355 | #else
1356 | let type = SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
1357 | #endif
1358 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1446:16: error: cannot find 'Darwin' in scope
1444 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1445 | #else
1446 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1447 | #endif
1448 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1559:16: error: cannot find 'Darwin' in scope
1557 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1558 | #else
1559 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1560 | #endif
1561 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:16: error: cannot find 'addrinfo' in scope
1706 | ai_next: nil)
1707 | #else
1708 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
1709 | ai_flags: AI_PASSIVE,
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1709:15: error: cannot find 'AI_PASSIVE' in scope
1707 | #else
1708 | var hints = addrinfo(
1709 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
1711 | ai_socktype: socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1714:19: error: 'nil' requires a contextual type
1712 | ai_protocol: 0,
1713 | ai_addrlen: 0,
1714 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
1715 | ai_addr: nil,
1716 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1715:14: error: 'nil' requires a contextual type
1713 | ai_addrlen: 0,
1714 | ai_canonname: nil,
1715 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
1716 | ai_next: nil)
1717 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1716:14: error: 'nil' requires a contextual type
1714 | ai_canonname: nil,
1715 | ai_addr: nil,
1716 | ai_next: nil)
| `- error: 'nil' requires a contextual type
1717 | #endif
1718 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1719:40: error: cannot find type 'addrinfo' in scope
1717 | #endif
1718 |
1719 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1720 |
1721 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1722:23: error: cannot find 'getaddrinfo' in scope
1720 |
1721 | // Retrieve the info on our target...
1722 | var status: Int32 = getaddrinfo(host, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
1723 | if status != 0 {
1724 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1726:17: error: cannot find 'EAI_SYSTEM' in scope
1724 |
1725 | var errorString: String
1726 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
1727 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1728 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1729:42: error: cannot find 'gai_strerror' in scope
1727 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1728 | } else {
1729 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
1730 | }
1731 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1738:5: error: cannot find 'freeaddrinfo' in scope
1736 |
1737 | if targetInfo != nil {
1738 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
1739 | }
1740 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1750:10: error: cannot find 'Darwin' in scope
1748 | _ = Glibc.close(socketDescriptor!)
1749 | #else
1750 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1751 | #endif
1752 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1761:24: error: cannot find 'Darwin' in scope
1759 | socketDescriptor = Glibc.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
1760 | #else
1761 | socketDescriptor = Darwin.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
| `- error: cannot find 'Darwin' in scope
1762 | #endif
1763 | if socketDescriptor == -1 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1777:60: error: cannot find 'O_NONBLOCK' in scope
1775 | }
1776 |
1777 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1778 | if result < 0 {
1779 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1788:14: error: cannot find 'Darwin' in scope
1786 | status = Glibc.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
1787 | #else
1788 | status = Darwin.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
| `- error: cannot find 'Darwin' in scope
1789 | #endif
1790 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1810:21: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
1808 | // First get seconds...
1809 | let secs = Int(Double(timeout / 1000))
1810 | timer.tv_sec = secs
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
1811 |
1812 | // Now get the leftover millisecs...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1822:23: error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
1820 | timer.tv_usec = Int(uSecs)
1821 | #else
1822 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
1823 | #endif
1824 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1838:52: error: cannot find 'SO_ERROR' in scope
1836 | var result: Int = 0
1837 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1838 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SO_ERROR' in scope
1839 |
1840 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1862:9: error: cannot find 'Darwin' in scope
1860 | _ = Glibc.close(socketDescriptor!)
1861 | #else
1862 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1863 | #endif
1864 | socketDescriptor = nil
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1875:10: error: cannot find 'Darwin' in scope
1873 | _ = Glibc.close(socketDescriptor!)
1874 | #else
1875 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1876 | #endif
1877 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1930:56: error: cannot find 'O_NONBLOCK' in scope
1928 | }
1929 |
1930 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1931 | if result < 0 {
1932 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2004:12: error: cannot find 'Darwin' in scope
2002 | return Glibc.connect(self.socketfd, p, socklen_t(addrLen))
2003 | #else
2004 | return Darwin.connect(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2005 | #endif
2006 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2058:13: error: cannot find 'Darwin' in scope
2056 | return Glibc.connect(self.socketfd, sockaddr, length)
2057 | #else
2058 | return Darwin.connect(self.socketfd, sockaddr, length)
| `- error: cannot find 'Darwin' in scope
2059 | #endif
2060 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2140:6: error: cannot find 'setsockopt' in scope
2138 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2139 | var on: Int32 = 1
2140 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2141 |
2142 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2140:44: error: cannot find 'SO_REUSEADDR' in scope
2138 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2139 | var on: Int32 = 1
2140 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2141 |
2142 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2152:7: error: cannot find 'setsockopt' in scope
2150 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2151 | // destined for the bound port.
2152 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2153 |
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2152:45: error: cannot find 'SO_REUSEPORT' in scope
2150 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2151 | // destined for the bound port.
2152 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
2153 |
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2170:16: error: cannot find 'setsockopt' in scope
2168 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2169 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2170 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2171 |
2172 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2207:16: error: cannot find 'addrinfo' in scope
2205 | ai_next: nil)
2206 | #else
2207 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
2208 | ai_flags: AI_PASSIVE,
2209 | ai_family: sig.protocolFamily.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2208:15: error: cannot find 'AI_PASSIVE' in scope
2206 | #else
2207 | var hints = addrinfo(
2208 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
2209 | ai_family: sig.protocolFamily.value,
2210 | ai_socktype: sig.socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2213:19: error: 'nil' requires a contextual type
2211 | ai_protocol: 0,
2212 | ai_addrlen: 0,
2213 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
2214 | ai_addr: nil,
2215 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2214:14: error: 'nil' requires a contextual type
2212 | ai_addrlen: 0,
2213 | ai_canonname: nil,
2214 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
2215 | ai_next: nil)
2216 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2215:14: error: 'nil' requires a contextual type
2213 | ai_canonname: nil,
2214 | ai_addr: nil,
2215 | ai_next: nil)
| `- error: 'nil' requires a contextual type
2216 | #endif
2217 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2218:40: error: cannot find type 'addrinfo' in scope
2216 | #endif
2217 |
2218 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
2219 |
2220 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2221:23: error: cannot find 'getaddrinfo' in scope
2219 |
2220 | // Retrieve the info on our target...
2221 | let status: Int32 = getaddrinfo(node ?? nil, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
2222 | if status != 0 {
2223 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2225:17: error: cannot find 'EAI_SYSTEM' in scope
2223 |
2224 | var errorString: String
2225 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2227 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2228:42: error: cannot find 'gai_strerror' in scope
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2227 | } else {
2228 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
2229 | }
2230 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2237:5: error: cannot find 'freeaddrinfo' in scope
2235 |
2236 | if targetInfo != nil {
2237 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
2238 | }
2239 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2255:8: error: cannot find 'Darwin' in scope
2253 | }
2254 | #else
2255 | if Darwin.bind(self.socketfd, info!.pointee.ai_addr, info!.pointee.ai_addrlen) == 0 {
| `- error: cannot find 'Darwin' in scope
2256 |
2257 | // Success... We've found our address...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2279:8: error: cannot find 'getsockname' in scope
2277 | if port == 0 {
2278 | guard let addressFromSockName = try Address(addressProvider: { (sockaddr, length) in
2279 | if getsockname(self.socketfd, sockaddr, length) != 0 {
| `- error: cannot find 'getsockname' in scope
2280 | throw Error(code: Socket.SOCKET_ERR_BIND_FAILED, reason: "Unable to determine listening socket address after bind.")
2281 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2328:7: error: cannot find 'Darwin' in scope
2326 | }
2327 | #else
2328 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2329 |
2330 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2364:6: error: cannot find 'setsockopt' in scope
2362 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2363 | var on: Int32 = 1
2364 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2365 |
2366 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2364:44: error: cannot find 'SO_REUSEADDR' in scope
2362 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2363 | var on: Int32 = 1
2364 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2365 |
2366 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2380:8: error: cannot find 'Darwin' in scope
2378 | _ = Glibc.unlink(path)
2379 | #else
2380 | _ = Darwin.unlink(path)
| `- error: cannot find 'Darwin' in scope
2381 | #endif
2382 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2401:12: error: cannot find 'Darwin' in scope
2399 | return Glibc.bind(self.socketfd, p, socklen_t(addrLen))
2400 | #else
2401 | return Darwin.bind(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2402 | #endif
2403 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2417:7: error: cannot find 'Darwin' in scope
2415 | }
2416 | #else
2417 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2418 |
2419 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3023:10: error: cannot find 'Darwin' in scope
3021 | s = Glibc.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
3022 | #else
3023 | s = Darwin.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
| `- error: cannot find 'Darwin' in scope
3024 | #endif
3025 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3160:10: error: cannot find 'Darwin' in scope
3158 | s = Glibc.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
3159 | #else
3160 | s = Darwin.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
| `- error: cannot find 'Darwin' in scope
3161 | #endif
3162 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3293:20: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3291 | // First get seconds...
3292 | let secs = Int(Double(timeout / 1000))
3293 | timer.tv_sec = secs
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3294 |
3295 | // Now get the leftover millisecs...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3305:22: error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3303 | timer.tv_usec = Int(uSecs)
3304 | #else
3305 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3306 | #endif
3307 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3339:52: error: cannot find 'O_NONBLOCK' in scope
3337 | if shouldBlock {
3338 |
3339 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3340 |
3341 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3343:51: error: cannot find 'O_NONBLOCK' in scope
3341 | } else {
3342 |
3343 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3344 | }
3345 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3370:19: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3368 | // First get seconds...
3369 | let secs = Int(Double(value / 1000))
3370 | timer.tv_sec = secs
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3371 |
3372 | // Now get the leftover millisecs...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3382:21: error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3380 | timer.tv_usec = Int(uSecs)
3381 | #else
3382 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3383 | #endif
3384 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3386:16: error: cannot find 'setsockopt' in scope
3384 | }
3385 |
3386 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3387 |
3388 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3386:54: error: cannot find 'SO_RCVTIMEO' in scope
3384 | }
3385 |
3386 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_RCVTIMEO' in scope
3387 |
3388 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3410:19: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3408 | // First get seconds...
3409 | let secs = Int(Double(value / 1000))
3410 | timer.tv_sec = secs
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
3411 |
3412 | // Now get the leftover millisecs...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3422:21: error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3420 | timer.tv_usec = Int(uSecs)
3421 | #else
3422 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type 'suseconds_t' (aka 'Int64')
3423 | #endif
3424 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3426:16: error: cannot find 'setsockopt' in scope
3424 | }
3425 |
3426 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3427 |
3428 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3426:54: error: cannot find 'SO_SNDTIMEO' in scope
3424 | }
3425 |
3426 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_SNDTIMEO' in scope
3427 |
3428 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3457:6: error: cannot find 'setsockopt' in scope
3455 | // Turn on or off UDP broadcasting...
3456 | var on: Int32 = enable ? 1 : 0
3457 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3458 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3459 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3457:44: error: cannot find 'SO_BROADCAST' in scope
3455 | // Turn on or off UDP broadcasting...
3456 | var on: Int32 = enable ? 1 : 0
3457 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_BROADCAST' in scope
3458 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3459 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3490:10: error: cannot find 'Darwin' in scope
3488 | #else
3489 | if self.isListening {
3490 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'Darwin' in scope
3491 | self.isListening = false
3492 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3490:47: error: cannot find 'SHUT_RDWR' in scope
3488 | #else
3489 | if self.isListening {
3490 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
3491 | self.isListening = false
3492 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_sys_socket.h:13:9: note: macro 'SHUT_RDWR' unavailable: structure not supported
11 | #define SHUT_RD __WASI_SDFLAGS_RD
12 | #define SHUT_WR __WASI_SDFLAGS_WR
13 | #define SHUT_RDWR (SHUT_RD | SHUT_WR)
| `- note: macro 'SHUT_RDWR' unavailable: structure not supported
14 |
15 | #ifdef __wasilibc_use_wasip2
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3494:9: error: cannot find 'Darwin' in scope
3492 | }
3493 | self.isConnected = false
3494 | _ = Darwin.close(self.socketfd)
| `- error: cannot find 'Darwin' in scope
3495 | #endif
3496 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3511:10: error: cannot find 'Darwin' in scope
3509 | _ = Glibc.unlink(self.signature!.path!)
3510 | #else
3511 | _ = Darwin.unlink(self.signature!.path!)
| `- error: cannot find 'Darwin' in scope
3512 | #endif
3513 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3535:23: error: cannot find 'MSG_DONTWAIT' in scope
3533 | var recvFlags: Int32 = 0
3534 | if self.readStorage.length > 0 {
3535 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3536 | }
3537 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3547:14: error: cannot find 'Darwin' in scope
3545 | count = Glibc.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
3546 | #else
3547 | count = Darwin.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
| `- error: cannot find 'Darwin' in scope
3548 | #endif
3549 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3649:23: error: cannot find 'MSG_DONTWAIT' in scope
3647 | var recvFlags: Int32 = 0
3648 | if self.readStorage.length > 0 {
3649 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3650 | }
3651 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3659:18: error: cannot find 'Darwin' in scope
3657 | let count = Glibc.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
3658 | #else
3659 | let count = Darwin.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
3660 | #endif
3661 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3756:7: error: cannot find 'setsockopt' in scope
3754 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3755 | var on: Int32 = 1
3756 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3757 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3758 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3756:45: error: cannot find 'SO_NOSIGPIPE' in scope
3754 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3755 | var on: Int32 = 1
3756 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
3757 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3758 | }
[71/107] Emitting module RawPacket
[72/107] Compiling RawPacket RawPacket.swift
[73/108] Compiling SwiftHexTools SwiftHexTools.swift
[74/108] Emitting module SwiftHexTools
error: emit-module command failed with exit code 1 (use -v to see invocation)
[77/109] Emitting module NetUtils
/host/spi-builder-workspace/.build/checkouts/swift-netutils/NetUtils/Interface.swift:12:16: error: no such module 'Darwin'
10 | func socketLength4(_ addr: sockaddr) -> UInt32 { return UInt32(MemoryLayout<sockaddr>.size) }
11 | #else
12 | import Darwin
| `- error: no such module 'Darwin'
13 | typealias InetFamily = UInt8
14 | typealias Flags = Int32
BUILD FAILURE 6.3 wasm