The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftXCore, reference 1.0.0 (5b0ba4), with Swift 6.3 for Linux on 19 Apr 2026 07:37:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftXCity/SwiftXCore.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/SwiftXCity/SwiftXCore
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 5b0ba45 docs: add MIT license and update repo url
Cloned https://github.com/SwiftXCity/SwiftXCore.git
Revision (git rev-parse @):
5b0ba4544e30120f773e2d72ea025f7ba0f5fb5d
SUCCESS checkout https://github.com/SwiftXCity/SwiftXCore.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/SwiftXCity/SwiftXCore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/29] Emitting module SwiftXCore
[5/31] Compiling SwiftXCore kqueue_backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/socket.swift:35:31: error: cannot convert value of type 'Int' to expected argument type 'Int32'
33 |         #else
34 |         var optVal = opt
35 |         setsockopt(Int32(fd), IPPROTO_TCP, TCP_NODELAY, &optVal, socklen_t(MemoryLayout<Int32>.size))
   |                               `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
36 |         #endif
37 |     }
[6/31] Compiling SwiftXCore select_backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/socket.swift:35:31: error: cannot convert value of type 'Int' to expected argument type 'Int32'
33 |         #else
34 |         var optVal = opt
35 |         setsockopt(Int32(fd), IPPROTO_TCP, TCP_NODELAY, &optVal, socklen_t(MemoryLayout<Int32>.size))
   |                               `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
36 |         #endif
37 |     }
[7/31] Compiling SwiftXCore socket.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/socket.swift:35:31: error: cannot convert value of type 'Int' to expected argument type 'Int32'
33 |         #else
34 |         var optVal = opt
35 |         setsockopt(Int32(fd), IPPROTO_TCP, TCP_NODELAY, &optVal, socklen_t(MemoryLayout<Int32>.size))
   |                               `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
36 |         #endif
37 |     }
[8/31] Compiling SwiftXCore task.swift
/host/spi-builder-workspace/Sources/SwiftXCore/runtime/worker.swift:124:20: error: cannot find 'Darwin' in scope
122 |             return WinSDK.recv(s, UnsafeMutableRawPointer(ptr).assumingMemoryBound(to: Int8.self), Int32(capacity), 0)
123 |             #else
124 |             return Darwin.recv(Int32(socket.fd), ptr, capacity, 0)
    |                    `- error: cannot find 'Darwin' in scope
125 |             #endif
126 |         }
[9/31] Compiling SwiftXCore worker.swift
/host/spi-builder-workspace/Sources/SwiftXCore/runtime/worker.swift:124:20: error: cannot find 'Darwin' in scope
122 |             return WinSDK.recv(s, UnsafeMutableRawPointer(ptr).assumingMemoryBound(to: Int8.self), Int32(capacity), 0)
123 |             #else
124 |             return Darwin.recv(Int32(socket.fd), ptr, capacity, 0)
    |                    `- error: cannot find 'Darwin' in scope
125 |             #endif
126 |         }
[10/31] Compiling SwiftXCore config.swift
/host/spi-builder-workspace/Sources/SwiftXCore/runtime/worker.swift:124:20: error: cannot find 'Darwin' in scope
122 |             return WinSDK.recv(s, UnsafeMutableRawPointer(ptr).assumingMemoryBound(to: Int8.self), Int32(capacity), 0)
123 |             #else
124 |             return Darwin.recv(Int32(socket.fd), ptr, capacity, 0)
    |                    `- error: cannot find 'Darwin' in scope
125 |             #endif
126 |         }
[11/31] Compiling SwiftXCore runtime_info.swift
[12/31] Compiling SwiftXCore websocket_server.swift
[13/31] Compiling SwiftXCore radix_router.swift
[14/31] Compiling SwiftXCore queue.swift
[15/31] Compiling SwiftXCore scheduler.swift
[16/31] Compiling SwiftXCore wsapoll_backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:40:13: error: cannot find 'Darwin' in scope
38 |         #else
39 |         _ = data.withUnsafeBytes { ptr in
40 |             Darwin.send(Int32(socket.fd), ptr.baseAddress!, data.count, 0)
   |             `- error: cannot find 'Darwin' in scope
41 |         }
42 |         #endif
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:51:13: error: cannot find 'Darwin' in scope
49 |         _ = WinSDK.shutdown(s, Int32(SD_SEND))
50 |         #else
51 |         _ = Darwin.shutdown(Int32(socket.fd), SHUT_WR)
   |             `- error: cannot find 'Darwin' in scope
52 |         #endif
53 |         socket.close()
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:26:34: error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 24 |         }
 25 |         #else
 26 |         let fd = socket(AF_INET, SOCK_STREAM, 0)
    |                                  `- error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 27 |         if fd == -1 {
 28 |             fatalError("Failed to create server socket")
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:68:17: error: cannot find 'Darwin' in scope
 66 |                 WinSDK.bind(SOCKET(bitPattern: Int64(serverSocket.fd)), $0, Int32(MemoryLayout<sockaddr_in>.size))
 67 |                 #else
 68 |                 Darwin.bind(Int32(serverSocket.fd), $0, socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'Darwin' in scope
 69 |                 #endif
 70 |             }
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:80:9: error: cannot find 'Darwin' in scope
 78 |         WinSDK.listen(SOCKET(bitPattern: Int64(serverSocket.fd)), SOMAXCONN)
 79 |         #else
 80 |         Darwin.listen(Int32(serverSocket.fd), SOMAXCONN)
    |         `- error: cannot find 'Darwin' in scope
 81 |         #endif
 82 |
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:97:24: error: cannot find 'Darwin' in scope
 95 |         }
 96 |         #else
 97 |         let clientFd = Darwin.accept(Int32(serverSocket.fd), &clientAddr, &clientAddrLen)
    |                        `- error: cannot find 'Darwin' in scope
 98 |         if clientFd == -1 {
 99 |             return nil
[17/31] Compiling SwiftXCore connection.swift
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:40:13: error: cannot find 'Darwin' in scope
38 |         #else
39 |         _ = data.withUnsafeBytes { ptr in
40 |             Darwin.send(Int32(socket.fd), ptr.baseAddress!, data.count, 0)
   |             `- error: cannot find 'Darwin' in scope
41 |         }
42 |         #endif
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:51:13: error: cannot find 'Darwin' in scope
49 |         _ = WinSDK.shutdown(s, Int32(SD_SEND))
50 |         #else
51 |         _ = Darwin.shutdown(Int32(socket.fd), SHUT_WR)
   |             `- error: cannot find 'Darwin' in scope
52 |         #endif
53 |         socket.close()
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:26:34: error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 24 |         }
 25 |         #else
 26 |         let fd = socket(AF_INET, SOCK_STREAM, 0)
    |                                  `- error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 27 |         if fd == -1 {
 28 |             fatalError("Failed to create server socket")
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:68:17: error: cannot find 'Darwin' in scope
 66 |                 WinSDK.bind(SOCKET(bitPattern: Int64(serverSocket.fd)), $0, Int32(MemoryLayout<sockaddr_in>.size))
 67 |                 #else
 68 |                 Darwin.bind(Int32(serverSocket.fd), $0, socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'Darwin' in scope
 69 |                 #endif
 70 |             }
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:80:9: error: cannot find 'Darwin' in scope
 78 |         WinSDK.listen(SOCKET(bitPattern: Int64(serverSocket.fd)), SOMAXCONN)
 79 |         #else
 80 |         Darwin.listen(Int32(serverSocket.fd), SOMAXCONN)
    |         `- error: cannot find 'Darwin' in scope
 81 |         #endif
 82 |
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:97:24: error: cannot find 'Darwin' in scope
 95 |         }
 96 |         #else
 97 |         let clientFd = Darwin.accept(Int32(serverSocket.fd), &clientAddr, &clientAddrLen)
    |                        `- error: cannot find 'Darwin' in scope
 98 |         if clientFd == -1 {
 99 |             return nil
[18/31] Compiling SwiftXCore listener.swift
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:40:13: error: cannot find 'Darwin' in scope
38 |         #else
39 |         _ = data.withUnsafeBytes { ptr in
40 |             Darwin.send(Int32(socket.fd), ptr.baseAddress!, data.count, 0)
   |             `- error: cannot find 'Darwin' in scope
41 |         }
42 |         #endif
/host/spi-builder-workspace/Sources/SwiftXCore/net/connection.swift:51:13: error: cannot find 'Darwin' in scope
49 |         _ = WinSDK.shutdown(s, Int32(SD_SEND))
50 |         #else
51 |         _ = Darwin.shutdown(Int32(socket.fd), SHUT_WR)
   |             `- error: cannot find 'Darwin' in scope
52 |         #endif
53 |         socket.close()
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:26:34: error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 24 |         }
 25 |         #else
 26 |         let fd = socket(AF_INET, SOCK_STREAM, 0)
    |                                  `- error: cannot convert value of type '__socket_type' to expected argument type 'Int32'
 27 |         if fd == -1 {
 28 |             fatalError("Failed to create server socket")
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:68:17: error: cannot find 'Darwin' in scope
 66 |                 WinSDK.bind(SOCKET(bitPattern: Int64(serverSocket.fd)), $0, Int32(MemoryLayout<sockaddr_in>.size))
 67 |                 #else
 68 |                 Darwin.bind(Int32(serverSocket.fd), $0, socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'Darwin' in scope
 69 |                 #endif
 70 |             }
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:80:9: error: cannot find 'Darwin' in scope
 78 |         WinSDK.listen(SOCKET(bitPattern: Int64(serverSocket.fd)), SOMAXCONN)
 79 |         #else
 80 |         Darwin.listen(Int32(serverSocket.fd), SOMAXCONN)
    |         `- error: cannot find 'Darwin' in scope
 81 |         #endif
 82 |
/host/spi-builder-workspace/Sources/SwiftXCore/net/listener.swift:97:24: error: cannot find 'Darwin' in scope
 95 |         }
 96 |         #else
 97 |         let clientFd = Darwin.accept(Int32(serverSocket.fd), &clientAddr, &clientAddrLen)
    |                        `- error: cannot find 'Darwin' in scope
 98 |         if clientFd == -1 {
 99 |             return nil
[19/31] Compiling SwiftXCore backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:11:21: error: cannot find 'epoll_create1' in scope
 9 |
10 |     public init() {
11 |         self.epfd = epoll_create1(0)
   |                     `- error: cannot find 'epoll_create1' in scope
12 |         if epfd == -1 {
13 |             fatalError("Failed to create epoll")
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:18:21: error: cannot find 'epoll_event' in scope
16 |
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
   |                     `- error: cannot find 'epoll_event' in scope
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
20 |         event.data.fd = Int32(socket.fd)
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:31: error: cannot find 'EPOLLIN' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                               `- error: cannot find 'EPOLLIN' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:58: error: cannot find 'EPOLLET' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                                                          `- error: cannot find 'EPOLLET' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:9: error: cannot find 'epoll_ctl' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |         `- error: cannot find 'epoll_ctl' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:25: error: cannot find 'EPOLL_CTL_ADD' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |                         `- error: cannot find 'EPOLL_CTL_ADD' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:9: error: cannot find 'epoll_ctl' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |         `- error: cannot find 'epoll_ctl' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:25: error: cannot find 'EPOLL_CTL_DEL' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                         `- error: cannot find 'EPOLL_CTL_DEL' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:58: error: 'nil' requires a contextual type
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                                                          `- error: 'nil' requires a contextual type
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:23: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                       `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:47: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                                               `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:22: error: cannot call value of non-function type '[Any]'
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                      `- error: cannot call value of non-function type '[Any]'
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:33:21: error: cannot find 'epoll_wait' in scope
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
   |                     `- error: cannot find 'epoll_wait' in scope
34 |
35 |         var results: [IOEvent] = []
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:40:43: error: cannot find 'EPOLLIN' in scope
38 |             let fd = event.data.fd
39 |             if let socket = socketMap[fd] {
40 |                 if (event.events & UInt32(EPOLLIN.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLIN' in scope
41 |                     results.append(.read(socket))
42 |                 }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:43:43: error: cannot find 'EPOLLOUT' in scope
41 |                     results.append(.read(socket))
42 |                 }
43 |                 if (event.events & UInt32(EPOLLOUT.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLOUT' in scope
44 |                     results.append(.write(socket))
45 |                 }
[20/31] Compiling SwiftXCore epoll_backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:11:21: error: cannot find 'epoll_create1' in scope
 9 |
10 |     public init() {
11 |         self.epfd = epoll_create1(0)
   |                     `- error: cannot find 'epoll_create1' in scope
12 |         if epfd == -1 {
13 |             fatalError("Failed to create epoll")
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:18:21: error: cannot find 'epoll_event' in scope
16 |
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
   |                     `- error: cannot find 'epoll_event' in scope
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
20 |         event.data.fd = Int32(socket.fd)
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:31: error: cannot find 'EPOLLIN' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                               `- error: cannot find 'EPOLLIN' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:58: error: cannot find 'EPOLLET' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                                                          `- error: cannot find 'EPOLLET' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:9: error: cannot find 'epoll_ctl' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |         `- error: cannot find 'epoll_ctl' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:25: error: cannot find 'EPOLL_CTL_ADD' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |                         `- error: cannot find 'EPOLL_CTL_ADD' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:9: error: cannot find 'epoll_ctl' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |         `- error: cannot find 'epoll_ctl' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:25: error: cannot find 'EPOLL_CTL_DEL' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                         `- error: cannot find 'EPOLL_CTL_DEL' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:58: error: 'nil' requires a contextual type
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                                                          `- error: 'nil' requires a contextual type
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:23: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                       `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:47: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                                               `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:22: error: cannot call value of non-function type '[Any]'
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                      `- error: cannot call value of non-function type '[Any]'
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:33:21: error: cannot find 'epoll_wait' in scope
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
   |                     `- error: cannot find 'epoll_wait' in scope
34 |
35 |         var results: [IOEvent] = []
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:40:43: error: cannot find 'EPOLLIN' in scope
38 |             let fd = event.data.fd
39 |             if let socket = socketMap[fd] {
40 |                 if (event.events & UInt32(EPOLLIN.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLIN' in scope
41 |                     results.append(.read(socket))
42 |                 }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:43:43: error: cannot find 'EPOLLOUT' in scope
41 |                     results.append(.read(socket))
42 |                 }
43 |                 if (event.events & UInt32(EPOLLOUT.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLOUT' in scope
44 |                     results.append(.write(socket))
45 |                 }
[21/31] Compiling SwiftXCore iocp_backend.swift
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:11:21: error: cannot find 'epoll_create1' in scope
 9 |
10 |     public init() {
11 |         self.epfd = epoll_create1(0)
   |                     `- error: cannot find 'epoll_create1' in scope
12 |         if epfd == -1 {
13 |             fatalError("Failed to create epoll")
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:18:21: error: cannot find 'epoll_event' in scope
16 |
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
   |                     `- error: cannot find 'epoll_event' in scope
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
20 |         event.data.fd = Int32(socket.fd)
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:31: error: cannot find 'EPOLLIN' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                               `- error: cannot find 'EPOLLIN' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:19:58: error: cannot find 'EPOLLET' in scope
17 |     public func register(_ socket: Socket) {
18 |         var event = epoll_event()
19 |         event.events = UInt32(EPOLLIN.rawValue) | UInt32(EPOLLET.rawValue)
   |                                                          `- error: cannot find 'EPOLLET' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:9: error: cannot find 'epoll_ctl' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |         `- error: cannot find 'epoll_ctl' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:22:25: error: cannot find 'EPOLL_CTL_ADD' in scope
20 |         event.data.fd = Int32(socket.fd)
21 |
22 |         epoll_ctl(epfd, EPOLL_CTL_ADD, Int32(socket.fd), &event)
   |                         `- error: cannot find 'EPOLL_CTL_ADD' in scope
23 |         socketMap[Int32(socket.fd)] = socket
24 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:9: error: cannot find 'epoll_ctl' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |         `- error: cannot find 'epoll_ctl' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:25: error: cannot find 'EPOLL_CTL_DEL' in scope
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                         `- error: cannot find 'EPOLL_CTL_DEL' in scope
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:27:58: error: 'nil' requires a contextual type
25 |
26 |     public func unregister(_ socket: Socket) {
27 |         epoll_ctl(epfd, EPOLL_CTL_DEL, Int32(socket.fd), nil)
   |                                                          `- error: 'nil' requires a contextual type
28 |         socketMap.removeValue(forKey: Int32(socket.fd))
29 |     }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:23: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                       `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:47: error: cannot find 'epoll_event' in scope
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                                               `- error: cannot find 'epoll_event' in scope
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:32:22: error: cannot call value of non-function type '[Any]'
30 |
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
   |                      `- error: cannot call value of non-function type '[Any]'
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
34 |
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:33:21: error: cannot find 'epoll_wait' in scope
31 |     public func poll(timeout: Int) -> [IOEvent] {
32 |         var events = [epoll_event](repeating: epoll_event(), count: 1024)
33 |         let count = epoll_wait(epfd, &events, 1024, Int32(timeout))
   |                     `- error: cannot find 'epoll_wait' in scope
34 |
35 |         var results: [IOEvent] = []
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:40:43: error: cannot find 'EPOLLIN' in scope
38 |             let fd = event.data.fd
39 |             if let socket = socketMap[fd] {
40 |                 if (event.events & UInt32(EPOLLIN.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLIN' in scope
41 |                     results.append(.read(socket))
42 |                 }
/host/spi-builder-workspace/Sources/SwiftXCore/io/epoll_backend.swift:43:43: error: cannot find 'EPOLLOUT' in scope
41 |                     results.append(.read(socket))
42 |                 }
43 |                 if (event.events & UInt32(EPOLLOUT.rawValue)) != 0 {
   |                                           `- error: cannot find 'EPOLLOUT' in scope
44 |                     results.append(.write(socket))
45 |                 }
[22/31] Compiling SwiftXCore SwiftXCore.swift
[23/31] Compiling SwiftXCore byte_buffer.swift
[24/31] Compiling SwiftXCore encoder.swift
[25/31] Compiling SwiftXCore http_parser.swift
/host/spi-builder-workspace/Sources/SwiftXCore/http/http_parser.swift:51:17: warning: variable 'query' was never mutated; consider changing to 'let' constant
 49 |             // Query params
 50 |             var path = pathFull
 51 |             var query: [String: String] = [:]
    |                 `- warning: variable 'query' was never mutated; consider changing to 'let' constant
 52 |             if let qIdx = pathFull.firstIndex(of: "?") {
 53 |                 path = String(pathFull[..<qIdx])
[26/31] Compiling SwiftXCore request.swift
/host/spi-builder-workspace/Sources/SwiftXCore/http/http_parser.swift:51:17: warning: variable 'query' was never mutated; consider changing to 'let' constant
 49 |             // Query params
 50 |             var path = pathFull
 51 |             var query: [String: String] = [:]
    |                 `- warning: variable 'query' was never mutated; consider changing to 'let' constant
 52 |             if let qIdx = pathFull.firstIndex(of: "?") {
 53 |                 path = String(pathFull[..<qIdx])
[27/31] Compiling SwiftXCore response.swift
/host/spi-builder-workspace/Sources/SwiftXCore/http/http_parser.swift:51:17: warning: variable 'query' was never mutated; consider changing to 'let' constant
 49 |             // Query params
 50 |             var path = pathFull
 51 |             var query: [String: String] = [:]
    |                 `- warning: variable 'query' was never mutated; consider changing to 'let' constant
 52 |             if let qIdx = pathFull.firstIndex(of: "?") {
 53 |                 path = String(pathFull[..<qIdx])
BUILD FAILURE 6.3 linux