Build Information
Failed to build Kitura-net, reference 3.0.1 (645f09
), with Swift 6.1 for Wasm on 28 May 2025 01:48:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Kitura-net.git
Reference: 3.0.1
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/Kitura/Kitura-net
* tag 3.0.1 -> FETCH_HEAD
HEAD is now at 645f09e Update package dependencies (#323)
Cloned https://github.com/Kitura/Kitura-net.git
Revision (git rev-parse @):
645f09e6c6ca7f399a9625e25686e8152e21bee4
SUCCESS checkout https://github.com/Kitura/Kitura-net.git at 3.0.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Kitura/Kitura-net.git
https://github.com/Kitura/Kitura-net.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
},
{
"identity" : "bluesocket",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSocket.git"
},
{
"identity" : "bluesslservice",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSSLService.git"
},
{
"identity" : "bluesignals",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSignals.git"
}
],
"manifest_display_name" : "Kitura-net",
"name" : "Kitura-net",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "KituraNet",
"targets" : [
"KituraNet"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KituraNetTests",
"module_type" : "SwiftTarget",
"name" : "KituraNetTests",
"path" : "Tests/KituraNetTests",
"sources" : [
"BufferListTests.swift",
"ClientE2ETests.swift",
"ClientRequestTests.swift",
"FastCGIProtocolTests.swift",
"FastCGIRequestTests.swift",
"HTTPResponseTests.swift",
"HTTPStatusCodeTests.swift",
"KituraNetTest.swift",
"LargePayloadTests.swift",
"LifecycleListenerTests.swift",
"MiscellaneousTests.swift",
"MonitoringTests.swift",
"ParserTests.swift",
"PrintLogger.swift",
"RegressionTests.swift",
"SocketManagerTests.swift",
"TestIncomingSocketProcessor.swift",
"UnixSocketTests.swift",
"UpgradeTests.swift",
"VerifyLinuxTestCount.swift",
"types.swift"
],
"target_dependencies" : [
"KituraNet"
],
"type" : "test"
},
{
"c99name" : "KituraNet",
"module_type" : "SwiftTarget",
"name" : "KituraNet",
"path" : "Sources/KituraNet",
"product_dependencies" : [
"LoggerAPI",
"Socket",
"SSLService",
"Signals"
],
"product_memberships" : [
"KituraNet"
],
"sources" : [
"BufferList.swift",
"ClientRequest.swift",
"ClientResponse.swift",
"ConnectionUpgradeFactory.swift",
"ConnectionUpgrader.swift",
"Error.swift",
"FastCGI/FastCGI.swift",
"FastCGI/FastCGIRecordCreate.swift",
"FastCGI/FastCGIRecordParser.swift",
"FastCGI/FastCGIServer.swift",
"FastCGI/FastCGIServerRequest.swift",
"FastCGI/FastCGIServerResponse.swift",
"HTTP/HTTP.swift",
"HTTP/HTTPServer.swift",
"HTTP/HTTPServerRequest.swift",
"HTTP/HTTPServerResponse.swift",
"HTTP/IncomingHTTPSocketProcessor.swift",
"HTTP/KeepAliveState.swift",
"HTTPParser/HTTPParser.swift",
"HTTPParser/HTTPParserStatus.swift",
"HTTPParser/ParseResults.swift",
"HTTPParser/URLParser.swift",
"HeadersContainer.swift",
"IncomingSocketHandler.swift",
"IncomingSocketManager.swift",
"IncomingSocketProcessor.swift",
"IncomingSocketProcessorCreator.swift",
"ListenerGroup.swift",
"SPIUtils.swift",
"Server/Server.swift",
"Server/ServerDelegate.swift",
"Server/ServerLifecycleListener.swift",
"Server/ServerMonitor.swift",
"Server/ServerState.swift",
"ServerOptions.swift",
"ServerRequest.swift",
"ServerResponse.swift"
],
"target_dependencies" : [
"CHTTPParser",
"CCurl",
"CEpoll"
],
"type" : "library"
},
{
"c99name" : "CHTTPParser",
"module_type" : "ClangTarget",
"name" : "CHTTPParser",
"path" : "Sources/CHTTPParser",
"product_memberships" : [
"KituraNet"
],
"sources" : [
"http_parser.c",
"utils.c"
],
"type" : "library"
},
{
"c99name" : "CEpoll",
"module_type" : "SystemLibraryTarget",
"name" : "CEpoll",
"path" : "Sources/CEpoll",
"product_memberships" : [
"KituraNet"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "CCurl",
"module_type" : "SystemLibraryTarget",
"name" : "CCurl",
"path" : "Sources/CCurl",
"product_memberships" : [
"KituraNet"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Kitura/BlueSignals.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSocket.git
[1/2077] Fetching bluesslservice
[85/2848] Fetching bluesslservice, loggerapi
[712/3529] Fetching bluesslservice, loggerapi, bluesignals
[2157/6471] Fetching bluesslservice, loggerapi, bluesignals, bluesocket
Fetched https://github.com/Kitura/BlueSignals.git from cache (0.36s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.36s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.43s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.43s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (1.01s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.56s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (1.17s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.27s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (3.37s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.76s)
Computing version for https://github.com/Kitura/BlueSignals.git
Computed https://github.com/Kitura/BlueSignals.git at 2.1.1 (0.88s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.95s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSignals.git
Working copy of https://github.com/Kitura/BlueSignals.git resolved at 2.1.1
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
Building for debugging...
[0/9] Write sources
[6/9] Compiling CHTTPParser utils.c
[7/9] Write swift-version-24593BA9C3E375BF.txt
[8/9] Compiling CHTTPParser http_parser.c
[10/24] Emitting module Logging
[11/24] Compiling Logging Locks.swift
[12/24] Compiling Logging Logging.swift
[13/24] Compiling Logging LogHandler.swift
[14/24] Compiling Logging MetadataProvider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/25] 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 {
[17/26] Compiling Socket Socket+Equatable.swift
[18/27] Compiling Signals Signals.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:68:18: error: cannot find 'SIGHUP' in scope
66 | switch self {
67 | case .hup:
68 | return Int32(SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
69 | case .int:
70 | return Int32(SIGINT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:70:18: error: cannot find 'SIGINT' in scope
68 | return Int32(SIGHUP)
69 | case .int:
70 | return Int32(SIGINT)
| `- error: cannot find 'SIGINT' in scope
71 | case .quit:
72 | return Int32(SIGQUIT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:72:18: error: cannot find 'SIGQUIT' in scope
70 | return Int32(SIGINT)
71 | case .quit:
72 | return Int32(SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
73 | case .abrt:
74 | return Int32(SIGABRT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:74:18: error: cannot find 'SIGABRT' in scope
72 | return Int32(SIGQUIT)
73 | case .abrt:
74 | return Int32(SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
75 | case .kill:
76 | return Int32(SIGKILL)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:76:18: error: cannot find 'SIGKILL' in scope
74 | return Int32(SIGABRT)
75 | case .kill:
76 | return Int32(SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
77 | case .alrm:
78 | return Int32(SIGALRM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:78:18: error: cannot find 'SIGALRM' in scope
76 | return Int32(SIGKILL)
77 | case .alrm:
78 | return Int32(SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
79 | case .term:
80 | return Int32(SIGTERM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:80:18: error: cannot find 'SIGTERM' in scope
78 | return Int32(SIGALRM)
79 | case .term:
80 | return Int32(SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
81 | case .pipe:
82 | return Int32(SIGPIPE)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:82:18: error: cannot find 'SIGPIPE' in scope
80 | return Int32(SIGTERM)
81 | case .pipe:
82 | return Int32(SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
83 | case .cont:
84 | return Int32(SIGCONT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:84:30: error: cannot find 'SIGCONT' in scope
82 | return Int32(SIGPIPE)
83 | case .cont:
84 | return Int32(SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
85 | case .chld:
86 | return Int32(SIGCHLD)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:86:30: error: cannot find 'SIGCHLD' in scope
84 | return Int32(SIGCONT)
85 | case .chld:
86 | return Int32(SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
87 | case .io:
88 | return Int32(SIGIO)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:88:30: error: cannot find 'SIGIO' in scope
86 | return Int32(SIGCHLD)
87 | case .io:
88 | return Int32(SIGIO)
| `- error: cannot find 'SIGIO' in scope
89 | case .prof:
90 | return Int32(SIGPROF)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:90:30: error: cannot find 'SIGPROF' in scope
88 | return Int32(SIGIO)
89 | case .prof:
90 | return Int32(SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
91 | case .winch:
92 | return Int32(SIGWINCH)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:92:30: error: cannot find 'SIGWINCH' in scope
90 | return Int32(SIGPROF)
91 | case .winch:
92 | return Int32(SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
93 | case .info:
94 | return Int32(SIGINFO)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:94:30: error: cannot find 'SIGINFO' in scope
92 | return Int32(SIGWINCH)
93 | case .info:
94 | return Int32(SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
95 | case .user(let sig):
96 | return Int32(sig)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:107:22: error: cannot find 'SIGHUP' in scope
105 | init(rawValue: Int) {
106 | switch rawValue {
107 | case Int(SIGHUP): self = .hup
| `- error: cannot find 'SIGHUP' in scope
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:108:22: error: cannot find 'SIGINT' in scope
106 | switch rawValue {
107 | case Int(SIGHUP): self = .hup
108 | case Int(SIGINT): self = .int
| `- error: cannot find 'SIGINT' in scope
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:109:22: error: cannot find 'SIGQUIT' in scope
107 | case Int(SIGHUP): self = .hup
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
| `- error: cannot find 'SIGQUIT' in scope
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:110:22: error: cannot find 'SIGABRT' in scope
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
| `- error: cannot find 'SIGABRT' in scope
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:111:22: error: cannot find 'SIGKILL' in scope
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
| `- error: cannot find 'SIGKILL' in scope
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:112:22: error: cannot find 'SIGALRM' in scope
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
| `- error: cannot find 'SIGALRM' in scope
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:113:22: error: cannot find 'SIGTERM' in scope
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
| `- error: cannot find 'SIGTERM' in scope
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:114:22: error: cannot find 'SIGPIPE' in scope
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
| `- error: cannot find 'SIGPIPE' in scope
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:115:22: error: cannot find 'SIGCONT' in scope
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
| `- error: cannot find 'SIGCONT' in scope
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:116:22: error: cannot find 'SIGCHLD' in scope
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
| `- error: cannot find 'SIGCHLD' in scope
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:117:22: error: cannot find 'SIGIO' in scope
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
| `- error: cannot find 'SIGIO' in scope
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:118:22: error: cannot find 'SIGPROF' in scope
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
| `- error: cannot find 'SIGPROF' in scope
119 | case Int(SIGWINCH): self = .winch
120 | case Int(SIGINFO): self = .info
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:119:22: error: cannot find 'SIGWINCH' in scope
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
| `- error: cannot find 'SIGWINCH' in scope
120 | case Int(SIGINFO): self = .info
121 |
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:120:22: error: cannot find 'SIGINFO' in scope
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
120 | case Int(SIGINFO): self = .info
| `- error: cannot find 'SIGINFO' in scope
121 |
122 | default:
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/27] Emitting module Signals
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:16:24: error: cannot find type 'DispatchQueue' in scope
14 | typealias SignalNumber = Int32
15 | private var signalsWatched: [SignalNumber:[SignalWatchHandler]]
16 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
17 | private var currentSignalId = 0
18 |
[20/27] Compiling Socket SocketProtocols.swift
[21/27] 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 | }
[22/27] Compiling LoggerAPI Logger.swift
[23/27] Compiling Signals SignalWatchHandler.swift
[24/27] Emitting module LoggerAPI
[25/27] Compiling Signals SignalWatch.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:16:24: error: cannot find type 'DispatchQueue' in scope
14 | typealias SignalNumber = Int32
15 | private var signalsWatched: [SignalNumber:[SignalWatchHandler]]
16 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
17 | private var currentSignalId = 0
18 |
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:21:22: error: cannot find 'DispatchQueue' in scope
19 | init() {
20 | self.signalsWatched = [:]
21 | self.queue = DispatchQueue(label: "SignalWatch Internal")
| `- error: cannot find 'DispatchQueue' in scope
22 | }
23 |
[26/28] Compiling Socket Socket+Hashable.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())
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
[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/16] 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 {
[3/16] Compiling Signals SignalWatch.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:16:24: error: cannot find type 'DispatchQueue' in scope
14 | typealias SignalNumber = Int32
15 | private var signalsWatched: [SignalNumber:[SignalWatchHandler]]
16 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
17 | private var currentSignalId = 0
18 |
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:21:22: error: cannot find 'DispatchQueue' in scope
19 | init() {
20 | self.signalsWatched = [:]
21 | self.queue = DispatchQueue(label: "SignalWatch Internal")
| `- error: cannot find 'DispatchQueue' in scope
22 | }
23 |
[4/16] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/16] Emitting module Signals
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/SignalWatch.swift:16:24: error: cannot find type 'DispatchQueue' in scope
14 | typealias SignalNumber = Int32
15 | private var signalsWatched: [SignalNumber:[SignalWatchHandler]]
16 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
17 | private var currentSignalId = 0
18 |
[6/16] Compiling Socket SocketProtocols.swift
[7/16] Compiling Logging MetadataProvider.swift
[8/16] Compiling Signals SignalWatchHandler.swift
[9/16] Compiling Signals Signals.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:68:18: error: cannot find 'SIGHUP' in scope
66 | switch self {
67 | case .hup:
68 | return Int32(SIGHUP)
| `- error: cannot find 'SIGHUP' in scope
69 | case .int:
70 | return Int32(SIGINT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:70:18: error: cannot find 'SIGINT' in scope
68 | return Int32(SIGHUP)
69 | case .int:
70 | return Int32(SIGINT)
| `- error: cannot find 'SIGINT' in scope
71 | case .quit:
72 | return Int32(SIGQUIT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:72:18: error: cannot find 'SIGQUIT' in scope
70 | return Int32(SIGINT)
71 | case .quit:
72 | return Int32(SIGQUIT)
| `- error: cannot find 'SIGQUIT' in scope
73 | case .abrt:
74 | return Int32(SIGABRT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:74:18: error: cannot find 'SIGABRT' in scope
72 | return Int32(SIGQUIT)
73 | case .abrt:
74 | return Int32(SIGABRT)
| `- error: cannot find 'SIGABRT' in scope
75 | case .kill:
76 | return Int32(SIGKILL)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:76:18: error: cannot find 'SIGKILL' in scope
74 | return Int32(SIGABRT)
75 | case .kill:
76 | return Int32(SIGKILL)
| `- error: cannot find 'SIGKILL' in scope
77 | case .alrm:
78 | return Int32(SIGALRM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:78:18: error: cannot find 'SIGALRM' in scope
76 | return Int32(SIGKILL)
77 | case .alrm:
78 | return Int32(SIGALRM)
| `- error: cannot find 'SIGALRM' in scope
79 | case .term:
80 | return Int32(SIGTERM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:80:18: error: cannot find 'SIGTERM' in scope
78 | return Int32(SIGALRM)
79 | case .term:
80 | return Int32(SIGTERM)
| `- error: cannot find 'SIGTERM' in scope
81 | case .pipe:
82 | return Int32(SIGPIPE)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:82:18: error: cannot find 'SIGPIPE' in scope
80 | return Int32(SIGTERM)
81 | case .pipe:
82 | return Int32(SIGPIPE)
| `- error: cannot find 'SIGPIPE' in scope
83 | case .cont:
84 | return Int32(SIGCONT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:84:30: error: cannot find 'SIGCONT' in scope
82 | return Int32(SIGPIPE)
83 | case .cont:
84 | return Int32(SIGCONT)
| `- error: cannot find 'SIGCONT' in scope
85 | case .chld:
86 | return Int32(SIGCHLD)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:86:30: error: cannot find 'SIGCHLD' in scope
84 | return Int32(SIGCONT)
85 | case .chld:
86 | return Int32(SIGCHLD)
| `- error: cannot find 'SIGCHLD' in scope
87 | case .io:
88 | return Int32(SIGIO)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:88:30: error: cannot find 'SIGIO' in scope
86 | return Int32(SIGCHLD)
87 | case .io:
88 | return Int32(SIGIO)
| `- error: cannot find 'SIGIO' in scope
89 | case .prof:
90 | return Int32(SIGPROF)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:90:30: error: cannot find 'SIGPROF' in scope
88 | return Int32(SIGIO)
89 | case .prof:
90 | return Int32(SIGPROF)
| `- error: cannot find 'SIGPROF' in scope
91 | case .winch:
92 | return Int32(SIGWINCH)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:92:30: error: cannot find 'SIGWINCH' in scope
90 | return Int32(SIGPROF)
91 | case .winch:
92 | return Int32(SIGWINCH)
| `- error: cannot find 'SIGWINCH' in scope
93 | case .info:
94 | return Int32(SIGINFO)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:94:30: error: cannot find 'SIGINFO' in scope
92 | return Int32(SIGWINCH)
93 | case .info:
94 | return Int32(SIGINFO)
| `- error: cannot find 'SIGINFO' in scope
95 | case .user(let sig):
96 | return Int32(sig)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:107:22: error: cannot find 'SIGHUP' in scope
105 | init(rawValue: Int) {
106 | switch rawValue {
107 | case Int(SIGHUP): self = .hup
| `- error: cannot find 'SIGHUP' in scope
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:108:22: error: cannot find 'SIGINT' in scope
106 | switch rawValue {
107 | case Int(SIGHUP): self = .hup
108 | case Int(SIGINT): self = .int
| `- error: cannot find 'SIGINT' in scope
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:109:22: error: cannot find 'SIGQUIT' in scope
107 | case Int(SIGHUP): self = .hup
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
| `- error: cannot find 'SIGQUIT' in scope
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:110:22: error: cannot find 'SIGABRT' in scope
108 | case Int(SIGINT): self = .int
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
| `- error: cannot find 'SIGABRT' in scope
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:111:22: error: cannot find 'SIGKILL' in scope
109 | case Int(SIGQUIT): self = .quit
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
| `- error: cannot find 'SIGKILL' in scope
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:112:22: error: cannot find 'SIGALRM' in scope
110 | case Int(SIGABRT): self = .abrt
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
| `- error: cannot find 'SIGALRM' in scope
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:113:22: error: cannot find 'SIGTERM' in scope
111 | case Int(SIGKILL): self = .kill
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
| `- error: cannot find 'SIGTERM' in scope
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:114:22: error: cannot find 'SIGPIPE' in scope
112 | case Int(SIGALRM): self = .alrm
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
| `- error: cannot find 'SIGPIPE' in scope
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:115:22: error: cannot find 'SIGCONT' in scope
113 | case Int(SIGTERM): self = .term
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
| `- error: cannot find 'SIGCONT' in scope
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:116:22: error: cannot find 'SIGCHLD' in scope
114 | case Int(SIGPIPE): self = .pipe
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
| `- error: cannot find 'SIGCHLD' in scope
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:117:22: error: cannot find 'SIGIO' in scope
115 | case Int(SIGCONT): self = .cont
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
| `- error: cannot find 'SIGIO' in scope
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:118:22: error: cannot find 'SIGPROF' in scope
116 | case Int(SIGCHLD): self = .chld
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
| `- error: cannot find 'SIGPROF' in scope
119 | case Int(SIGWINCH): self = .winch
120 | case Int(SIGINFO): self = .info
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:119:22: error: cannot find 'SIGWINCH' in scope
117 | case Int(SIGIO): self = .io
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
| `- error: cannot find 'SIGWINCH' in scope
120 | case Int(SIGINFO): self = .info
121 |
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:120:22: error: cannot find 'SIGINFO' in scope
118 | case Int(SIGPROF): self = .prof
119 | case Int(SIGWINCH): self = .winch
120 | case Int(SIGINFO): self = .info
| `- error: cannot find 'SIGINFO' in scope
121 |
122 | default:
[10/16] Compiling Logging Locks.swift
[11/16] Emitting module Logging
/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:
BUILD FAILURE 6.1 wasm