Build Information
Failed to build containerization, reference main (df125a), with Swift 6.3 for Android on 1 May 2026 00:32:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
136 | var ws = Size(width: width, height: height)
137 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
138 | }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 | public func setraw() throws {
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
| `- error: cannot find 'cfmakeraw' in scope
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'tcflag_t' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'ICRNL' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'tcflag_t' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ICANON' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ECHO' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'tcflag_t' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'ECHO' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
| `- error: cannot find 'termios' in scope
169 | try fromSyscall(tcgetattr(fd, &attr))
170 | return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
169 | try fromSyscall(tcgetattr(fd, &attr))
| `- error: cannot find 'tcgetattr' in scope
170 | return attr
171 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 | guard status == 0 else {
207 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
208 | }
209 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 | public var isDirectory: Bool {
61 | var st = stat()
| `- error: cannot find 'stat' in scope
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 | public var isDirectory: Bool {
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'stat' in scope
63 | return (st.st_mode & S_IFMT) == S_IFDIR
64 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 | public var isSymlink: Bool {
67 | var st = stat()
| `- error: cannot find 'stat' in scope
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 | public var isSymlink: Bool {
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'lstat' in scope
69 | return (st.st_mode & S_IFMT) == S_IFLNK
70 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:21:28: error: cannot find type 'termios' in scope
19 | /// `Terminal` provides a clean interface to deal with terminal interactions on Unix platforms.
20 | public struct Terminal: Sendable {
21 | private let initState: termios?
| `- error: cannot find type 'termios' in scope
22 |
23 | private var descriptor: Int32 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:44:19: error: cannot find type 'winsize' in scope
42 | /// The winsize for a pty.
43 | public struct Size: Sendable {
44 | let size: winsize
| `- error: cannot find type 'winsize' in scope
45 |
46 | /// The width or `col` of the pty.
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:55:22: error: cannot find type 'winsize' in scope
53 | }
54 |
55 | init(_ size: winsize) {
| `- error: cannot find type 'winsize' in scope
56 | self.size = size
57 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:167:56: error: cannot find type 'termios' in scope
165 | }
166 |
167 | private static func getattr(_ fd: Int32) throws -> termios {
| `- error: cannot find type 'termios' in scope
168 | var attr = termios()
169 | try fromSyscall(tcgetattr(fd, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:61:25: error: cannot find 'winsize' in scope
59 | /// Set the size for use with a pty.
60 | public init(width cols: UInt16, height rows: UInt16) {
61 | self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
| `- error: cannot find 'winsize' in scope
62 | }
63 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:23: error: cannot find 'STDERR_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDERR_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:38: error: cannot find 'STDOUT_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDOUT_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:53: error: cannot find 'STDIN_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDIN_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:80:22: error: cannot find 'winsize' in scope
78 | public var size: Size {
79 | get throws {
80 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:29: error: cannot find 'ioctl' in scope
79 | get throws {
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
82 | return Size(ws)
83 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:52: error: cannot find 'TIOCGWINSZ' in scope
79 | get throws {
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
| `- error: cannot find 'TIOCGWINSZ' in scope
82 | return Size(ws)
83 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:25: error: missing argument label 'width:' in call
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
| `- error: missing argument label 'width:' in call
83 | }
84 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:27: error: missing argument for parameter 'height' in call
58 |
59 | /// Set the size for use with a pty.
60 | public init(width cols: UInt16, height rows: UInt16) {
| `- note: 'init(width:height:)' declared here
61 | self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
62 | }
:
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
| `- error: missing argument for parameter 'height' in call
83 | }
84 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:25: error: cannot find 'openpty' in scope
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: cannot find 'openpty' in scope
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:50: error: 'nil' requires a contextual type
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: 'nil' requires a contextual type
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:55: error: 'nil' requires a contextual type
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: 'nil' requires a contextual type
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:25: error: cannot find 'ioctl' in scope
120 | public func resize(from pty: Terminal) throws {
121 | var ws = try pty.size
122 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:48: error: cannot find 'TIOCSWINSZ' in scope
120 | public func resize(from pty: Terminal) throws {
121 | var ws = try pty.size
122 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:25: error: cannot find 'ioctl' in scope
127 | public func resize(size: Size) throws {
128 | var ws = size.size
129 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
130 | }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:48: error: cannot find 'TIOCSWINSZ' in scope
127 | public func resize(size: Size) throws {
128 | var ws = size.size
129 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
130 | }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:25: error: cannot find 'ioctl' in scope
135 | public func resize(width: UInt16, height: UInt16) throws {
136 | var ws = Size(width: width, height: height)
137 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
138 | }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:48: error: cannot find 'TIOCSWINSZ' in scope
135 | public func resize(width: UInt16, height: UInt16) throws {
136 | var ws = Size(width: width, height: height)
137 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
138 | }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 | public func setraw() throws {
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
| `- error: cannot find 'cfmakeraw' in scope
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'tcflag_t' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'ICRNL' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'tcflag_t' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ICANON' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ECHO' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'tcflag_t' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'ECHO' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
| `- error: cannot find 'termios' in scope
169 | try fromSyscall(tcgetattr(fd, &attr))
170 | return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
169 | try fromSyscall(tcgetattr(fd, &attr))
| `- error: cannot find 'tcgetattr' in scope
170 | return attr
171 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 | guard status == 0 else {
207 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
208 | }
209 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 | public var isDirectory: Bool {
61 | var st = stat()
| `- error: cannot find 'stat' in scope
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 | public var isDirectory: Bool {
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'stat' in scope
63 | return (st.st_mode & S_IFMT) == S_IFDIR
64 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 | public var isSymlink: Bool {
67 | var st = stat()
| `- error: cannot find 'stat' in scope
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 | public var isSymlink: Bool {
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'lstat' in scope
69 | return (st.st_mode & S_IFMT) == S_IFLNK
70 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:21:28: error: cannot find type 'termios' in scope
19 | /// `Terminal` provides a clean interface to deal with terminal interactions on Unix platforms.
20 | public struct Terminal: Sendable {
21 | private let initState: termios?
| `- error: cannot find type 'termios' in scope
22 |
23 | private var descriptor: Int32 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:44:19: error: cannot find type 'winsize' in scope
42 | /// The winsize for a pty.
43 | public struct Size: Sendable {
44 | let size: winsize
| `- error: cannot find type 'winsize' in scope
45 |
46 | /// The width or `col` of the pty.
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:55:22: error: cannot find type 'winsize' in scope
53 | }
54 |
55 | init(_ size: winsize) {
| `- error: cannot find type 'winsize' in scope
56 | self.size = size
57 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:167:56: error: cannot find type 'termios' in scope
165 | }
166 |
167 | private static func getattr(_ fd: Int32) throws -> termios {
| `- error: cannot find type 'termios' in scope
168 | var attr = termios()
169 | try fromSyscall(tcgetattr(fd, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:61:25: error: cannot find 'winsize' in scope
59 | /// Set the size for use with a pty.
60 | public init(width cols: UInt16, height rows: UInt16) {
61 | self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
| `- error: cannot find 'winsize' in scope
62 | }
63 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:23: error: cannot find 'STDERR_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDERR_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:38: error: cannot find 'STDOUT_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDOUT_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:53: error: cannot find 'STDIN_FILENO' in scope
66 | public static var current: Terminal {
67 | get throws {
68 | for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
| `- error: cannot find 'STDIN_FILENO' in scope
69 | do {
70 | return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:80:22: error: cannot find 'winsize' in scope
78 | public var size: Size {
79 | get throws {
80 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:29: error: cannot find 'ioctl' in scope
79 | get throws {
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
82 | return Size(ws)
83 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:52: error: cannot find 'TIOCGWINSZ' in scope
79 | get throws {
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
| `- error: cannot find 'TIOCGWINSZ' in scope
82 | return Size(ws)
83 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:25: error: missing argument label 'width:' in call
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
| `- error: missing argument label 'width:' in call
83 | }
84 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:27: error: missing argument for parameter 'height' in call
58 |
59 | /// Set the size for use with a pty.
60 | public init(width cols: UInt16, height rows: UInt16) {
| `- note: 'init(width:height:)' declared here
61 | self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
62 | }
:
80 | var ws = winsize()
81 | try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
82 | return Size(ws)
| `- error: missing argument for parameter 'height' in call
83 | }
84 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:25: error: cannot find 'openpty' in scope
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: cannot find 'openpty' in scope
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:50: error: 'nil' requires a contextual type
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: 'nil' requires a contextual type
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:55: error: 'nil' requires a contextual type
92 | var ws = size.size
93 |
94 | try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
| `- error: 'nil' requires a contextual type
95 | return (
96 | parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:25: error: cannot find 'ioctl' in scope
120 | public func resize(from pty: Terminal) throws {
121 | var ws = try pty.size
122 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:48: error: cannot find 'TIOCSWINSZ' in scope
120 | public func resize(from pty: Terminal) throws {
121 | var ws = try pty.size
122 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:25: error: cannot find 'ioctl' in scope
127 | public func resize(size: Size) throws {
128 | var ws = size.size
129 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
130 | }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:48: error: cannot find 'TIOCSWINSZ' in scope
127 | public func resize(size: Size) throws {
128 | var ws = size.size
129 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
130 | }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:25: error: cannot find 'ioctl' in scope
135 | public func resize(width: UInt16, height: UInt16) throws {
136 | var ws = Size(width: width, height: height)
137 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'ioctl' in scope
138 | }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:48: error: cannot find 'TIOCSWINSZ' in scope
135 | public func resize(width: UInt16, height: UInt16) throws {
136 | var ws = Size(width: width, height: height)
137 | try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
| `- error: cannot find 'TIOCSWINSZ' in scope
138 | }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 | public func setraw() throws {
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
| `- error: cannot find 'cfmakeraw' in scope
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 | var attr = try Self.getattr(descriptor)
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 | cfmakeraw(&attr)
146 | attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
148 | }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'tcflag_t' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 | public func enableEcho() throws {
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
| `- error: cannot find 'ICRNL' in scope
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'tcflag_t' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ICANON' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 | var attr = try Self.getattr(descriptor)
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
| `- error: cannot find 'ECHO' in scope
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 | attr.c_iflag &= ~tcflag_t(ICRNL)
155 | attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'tcflag_t' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 | public func disableEcho() throws {
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
| `- error: cannot find 'ECHO' in scope
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 | var attr = try Self.getattr(descriptor)
163 | attr.c_lflag &= ~tcflag_t(ECHO)
164 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
| `- error: cannot find 'termios' in scope
169 | try fromSyscall(tcgetattr(fd, &attr))
170 | return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 | private static func getattr(_ fd: Int32) throws -> termios {
168 | var attr = termios()
169 | try fromSyscall(tcgetattr(fd, &attr))
| `- error: cannot find 'tcgetattr' in scope
170 | return attr
171 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'tcsetattr' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 | public func reset() throws {
193 | if var attr = initState {
194 | try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
| `- error: cannot find 'TCSANOW' in scope
195 | }
196 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 | guard status == 0 else {
207 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
208 | }
209 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 | public var isDirectory: Bool {
61 | var st = stat()
| `- error: cannot find 'stat' in scope
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 | public var isDirectory: Bool {
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'stat' in scope
63 | return (st.st_mode & S_IFMT) == S_IFDIR
64 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 | var st = stat()
62 | guard stat(self.path, &st) == 0 else { return false }
63 | return (st.st_mode & S_IFMT) == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 | public var isSymlink: Bool {
67 | var st = stat()
| `- error: cannot find 'stat' in scope
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 | public var isSymlink: Bool {
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
| `- error: cannot find 'lstat' in scope
69 | return (st.st_mode & S_IFMT) == S_IFLNK
70 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 | var st = stat()
68 | guard lstat(self.path, &st) == 0 else { return false }
69 | return (st.st_mode & S_IFMT) == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
70 | }
71 | }
[680/1559] Wrapping AST for _RopeModule for debugging
[683/1559] Compiling ContainerizationOS Epoll.swift
[684/1559] Compiling ContainerizationOS Mount.swift
[685/1559] Compiling ContainerizationOS Reaper.swift
[686/1559] Compiling ContainerizationOS BidirectionalRelay.swift
[687/1559] Compiling ContainerizationOS Socket.swift
[703/1559] Compiling tls_record.cc
[704/1559] Compiling tls_method.cc
[705/1559] Compiling tls13_server.cc
[706/1559] Compiling tls13_enc.cc
[708/1559] Emitting module HashTreeCollections
[709/1560] Wrapping AST for HashTreeCollections for debugging
[711/1560] Emitting module DequeModule
[718/1616] Compiling GRPCCore ClientRPCExecutor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:13: error: cannot find 'signal' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'signal' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:25: error: cannot find 'SIG_IGN' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'SIG_IGN' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:152:16: error: cannot find '_kill' in scope
150 | return nil
151 | }
152 | return _kill(pid, signal)
| `- error: cannot find '_kill' in scope
153 | }
154 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:169:19: error: cannot find 'rusage' in scope
167 | @discardableResult
168 | public func wait() throws -> Int32 {
169 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
170 | var ws = Int32()
171 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:177:22: error: cannot find 'wait4' in scope
175 | }
176 |
177 | let result = wait4(pid, &ws, 0, &rus)
| `- error: cannot find 'wait4' in scope
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:179:46: error: cannot find 'errno' in scope
177 | let result = wait4(pid, &ws, 0, &rus)
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
180 | }
181 | return Self.toExitStatus(ws)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:251:46: error: cannot find 'errno' in scope
249 | }
250 | guard result == 0 else {
251 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
252 | }
253 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:272:18: error: 'open' is unavailable: Variadic function is unavailable
270 | /// Returns a file handle to /dev/null with the specified flags.
271 | private func openDevNull(flags: Int32) throws -> FileHandle {
272 | let fd = open("/dev/null", flags, 0)
| `- error: 'open' is unavailable: Variadic function is unavailable
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/fcntl.h:134:5: note: 'open' has been explicitly marked unavailable here
132 | * failure.
133 | */
134 | int open(const char* _Nonnull __path, int __flags, ...);
| `- note: 'open' has been explicitly marked unavailable here
135 | /** See open(). */
136 | int open64(const char* _Nonnull __path, int __flags, ...);
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:274:46: error: cannot find 'errno' in scope
272 | let fd = open("/dev/null", flags, 0)
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
275 | }
276 | return FileHandle(fileDescriptor: fd, closeOnDealloc: false)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:67:26: error: cannot find type 'stat' in scope
65 | /// for a file.
66 | public struct FileInfo: Sendable {
67 | private let _stat_t: stat
| `- error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:70:32: error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
70 | init(_ path: String, stat: stat) {
| `- error: cannot find type 'stat' in scope
71 | self._path = path
72 | self._stat_t = stat
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:76:22: error: cannot find type 'mode_t' in scope
74 |
75 | /// mode_t for the file.
76 | public var mode: mode_t {
| `- error: cannot find type 'mode_t' in scope
77 | self._stat_t.st_mode
78 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:56:18: error: cannot find 'stat' in scope
54 | /// - path: The path to the file as a string.
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
| `- error: cannot find 'stat' in scope
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:57:15: error: cannot find 'lstat' in scope
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
| `- error: cannot find 'lstat' in scope
58 | throw Error.errno(errno)
59 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:58:31: error: cannot find 'errno' in scope
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
| `- error: cannot find 'errno' in scope
59 | }
60 | return FileInfo(path, stat: st)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:16: error: cannot find 'S_IFMT' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:26: error: cannot find 'S_IFDIR' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:16: error: cannot find 'S_IFMT' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFMT' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:26: error: cannot find 'S_IFIFO' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFIFO' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:16: error: cannot find 'S_IFMT' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFMT' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:26: error: cannot find 'S_IFSOCK' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFSOCK' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:16: error: cannot find 'S_IFMT' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:26: error: cannot find 'S_IFLNK' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:16: error: cannot find 'S_IFMT' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFMT' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:26: error: cannot find 'S_IFREG' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFREG' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:16: error: cannot find 'S_IFMT' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFMT' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:26: error: cannot find 'S_IFBLK' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFBLK' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:16: error: cannot find 'S_IFMT' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFMT' in scope
143 | }
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:26: error: cannot find 'S_IFCHR' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFCHR' in scope
143 | }
144 | }
[719/1616] Compiling GRPCCore ClientRequest+Convenience.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:13: error: cannot find 'signal' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'signal' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:25: error: cannot find 'SIG_IGN' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'SIG_IGN' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:152:16: error: cannot find '_kill' in scope
150 | return nil
151 | }
152 | return _kill(pid, signal)
| `- error: cannot find '_kill' in scope
153 | }
154 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:169:19: error: cannot find 'rusage' in scope
167 | @discardableResult
168 | public func wait() throws -> Int32 {
169 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
170 | var ws = Int32()
171 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:177:22: error: cannot find 'wait4' in scope
175 | }
176 |
177 | let result = wait4(pid, &ws, 0, &rus)
| `- error: cannot find 'wait4' in scope
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:179:46: error: cannot find 'errno' in scope
177 | let result = wait4(pid, &ws, 0, &rus)
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
180 | }
181 | return Self.toExitStatus(ws)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:251:46: error: cannot find 'errno' in scope
249 | }
250 | guard result == 0 else {
251 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
252 | }
253 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:272:18: error: 'open' is unavailable: Variadic function is unavailable
270 | /// Returns a file handle to /dev/null with the specified flags.
271 | private func openDevNull(flags: Int32) throws -> FileHandle {
272 | let fd = open("/dev/null", flags, 0)
| `- error: 'open' is unavailable: Variadic function is unavailable
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/fcntl.h:134:5: note: 'open' has been explicitly marked unavailable here
132 | * failure.
133 | */
134 | int open(const char* _Nonnull __path, int __flags, ...);
| `- note: 'open' has been explicitly marked unavailable here
135 | /** See open(). */
136 | int open64(const char* _Nonnull __path, int __flags, ...);
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:274:46: error: cannot find 'errno' in scope
272 | let fd = open("/dev/null", flags, 0)
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
275 | }
276 | return FileHandle(fileDescriptor: fd, closeOnDealloc: false)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:67:26: error: cannot find type 'stat' in scope
65 | /// for a file.
66 | public struct FileInfo: Sendable {
67 | private let _stat_t: stat
| `- error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:70:32: error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
70 | init(_ path: String, stat: stat) {
| `- error: cannot find type 'stat' in scope
71 | self._path = path
72 | self._stat_t = stat
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:76:22: error: cannot find type 'mode_t' in scope
74 |
75 | /// mode_t for the file.
76 | public var mode: mode_t {
| `- error: cannot find type 'mode_t' in scope
77 | self._stat_t.st_mode
78 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:56:18: error: cannot find 'stat' in scope
54 | /// - path: The path to the file as a string.
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
| `- error: cannot find 'stat' in scope
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:57:15: error: cannot find 'lstat' in scope
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
| `- error: cannot find 'lstat' in scope
58 | throw Error.errno(errno)
59 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:58:31: error: cannot find 'errno' in scope
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
| `- error: cannot find 'errno' in scope
59 | }
60 | return FileInfo(path, stat: st)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:16: error: cannot find 'S_IFMT' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:26: error: cannot find 'S_IFDIR' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:16: error: cannot find 'S_IFMT' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFMT' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:26: error: cannot find 'S_IFIFO' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFIFO' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:16: error: cannot find 'S_IFMT' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFMT' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:26: error: cannot find 'S_IFSOCK' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFSOCK' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:16: error: cannot find 'S_IFMT' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:26: error: cannot find 'S_IFLNK' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:16: error: cannot find 'S_IFMT' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFMT' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:26: error: cannot find 'S_IFREG' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFREG' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:16: error: cannot find 'S_IFMT' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFMT' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:26: error: cannot find 'S_IFBLK' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFBLK' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:16: error: cannot find 'S_IFMT' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFMT' in scope
143 | }
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:26: error: cannot find 'S_IFCHR' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFCHR' in scope
143 | }
144 | }
[720/1616] Compiling GRPCCore ClientResponse+Convenience.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:13: error: cannot find 'signal' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'signal' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:25: error: cannot find 'SIG_IGN' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'SIG_IGN' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:152:16: error: cannot find '_kill' in scope
150 | return nil
151 | }
152 | return _kill(pid, signal)
| `- error: cannot find '_kill' in scope
153 | }
154 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:169:19: error: cannot find 'rusage' in scope
167 | @discardableResult
168 | public func wait() throws -> Int32 {
169 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
170 | var ws = Int32()
171 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:177:22: error: cannot find 'wait4' in scope
175 | }
176 |
177 | let result = wait4(pid, &ws, 0, &rus)
| `- error: cannot find 'wait4' in scope
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:179:46: error: cannot find 'errno' in scope
177 | let result = wait4(pid, &ws, 0, &rus)
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
180 | }
181 | return Self.toExitStatus(ws)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:251:46: error: cannot find 'errno' in scope
249 | }
250 | guard result == 0 else {
251 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
252 | }
253 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:272:18: error: 'open' is unavailable: Variadic function is unavailable
270 | /// Returns a file handle to /dev/null with the specified flags.
271 | private func openDevNull(flags: Int32) throws -> FileHandle {
272 | let fd = open("/dev/null", flags, 0)
| `- error: 'open' is unavailable: Variadic function is unavailable
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/fcntl.h:134:5: note: 'open' has been explicitly marked unavailable here
132 | * failure.
133 | */
134 | int open(const char* _Nonnull __path, int __flags, ...);
| `- note: 'open' has been explicitly marked unavailable here
135 | /** See open(). */
136 | int open64(const char* _Nonnull __path, int __flags, ...);
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:274:46: error: cannot find 'errno' in scope
272 | let fd = open("/dev/null", flags, 0)
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
275 | }
276 | return FileHandle(fileDescriptor: fd, closeOnDealloc: false)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:67:26: error: cannot find type 'stat' in scope
65 | /// for a file.
66 | public struct FileInfo: Sendable {
67 | private let _stat_t: stat
| `- error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:70:32: error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
70 | init(_ path: String, stat: stat) {
| `- error: cannot find type 'stat' in scope
71 | self._path = path
72 | self._stat_t = stat
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:76:22: error: cannot find type 'mode_t' in scope
74 |
75 | /// mode_t for the file.
76 | public var mode: mode_t {
| `- error: cannot find type 'mode_t' in scope
77 | self._stat_t.st_mode
78 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:56:18: error: cannot find 'stat' in scope
54 | /// - path: The path to the file as a string.
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
| `- error: cannot find 'stat' in scope
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:57:15: error: cannot find 'lstat' in scope
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
| `- error: cannot find 'lstat' in scope
58 | throw Error.errno(errno)
59 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:58:31: error: cannot find 'errno' in scope
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
| `- error: cannot find 'errno' in scope
59 | }
60 | return FileInfo(path, stat: st)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:16: error: cannot find 'S_IFMT' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:26: error: cannot find 'S_IFDIR' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:16: error: cannot find 'S_IFMT' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFMT' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:26: error: cannot find 'S_IFIFO' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFIFO' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:16: error: cannot find 'S_IFMT' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFMT' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:26: error: cannot find 'S_IFSOCK' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFSOCK' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:16: error: cannot find 'S_IFMT' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:26: error: cannot find 'S_IFLNK' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:16: error: cannot find 'S_IFMT' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFMT' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:26: error: cannot find 'S_IFREG' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFREG' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:16: error: cannot find 'S_IFMT' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFMT' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:26: error: cannot find 'S_IFBLK' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFBLK' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:16: error: cannot find 'S_IFMT' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFMT' in scope
143 | }
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:26: error: cannot find 'S_IFCHR' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFCHR' in scope
143 | }
144 | }
[721/1616] Compiling GRPCCore ClientStreamExecutor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:13: error: cannot find 'signal' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'signal' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/AsyncSignalHandler.swift:89:25: error: cannot find 'SIG_IGN' in scope
87 | var sources = [any DispatchSourceSignal]()
88 | for sig in on {
89 | signal(sig, SIG_IGN)
| `- error: cannot find 'SIG_IGN' in scope
90 | let source = DispatchSource.makeSignalSource(signal: sig)
91 | source.setEventHandler {
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:152:16: error: cannot find '_kill' in scope
150 | return nil
151 | }
152 | return _kill(pid, signal)
| `- error: cannot find '_kill' in scope
153 | }
154 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:169:19: error: cannot find 'rusage' in scope
167 | @discardableResult
168 | public func wait() throws -> Int32 {
169 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
170 | var ws = Int32()
171 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:177:22: error: cannot find 'wait4' in scope
175 | }
176 |
177 | let result = wait4(pid, &ws, 0, &rus)
| `- error: cannot find 'wait4' in scope
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:179:46: error: cannot find 'errno' in scope
177 | let result = wait4(pid, &ws, 0, &rus)
178 | guard result == pid else {
179 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
180 | }
181 | return Self.toExitStatus(ws)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:251:46: error: cannot find 'errno' in scope
249 | }
250 | guard result == 0 else {
251 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
252 | }
253 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:272:18: error: 'open' is unavailable: Variadic function is unavailable
270 | /// Returns a file handle to /dev/null with the specified flags.
271 | private func openDevNull(flags: Int32) throws -> FileHandle {
272 | let fd = open("/dev/null", flags, 0)
| `- error: 'open' is unavailable: Variadic function is unavailable
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/fcntl.h:134:5: note: 'open' has been explicitly marked unavailable here
132 | * failure.
133 | */
134 | int open(const char* _Nonnull __path, int __flags, ...);
| `- note: 'open' has been explicitly marked unavailable here
135 | /** See open(). */
136 | int open64(const char* _Nonnull __path, int __flags, ...);
/host/spi-builder-workspace/Sources/ContainerizationOS/Command.swift:274:46: error: cannot find 'errno' in scope
272 | let fd = open("/dev/null", flags, 0)
273 | guard fd >= 0 else {
274 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
275 | }
276 | return FileHandle(fileDescriptor: fd, closeOnDealloc: false)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:67:26: error: cannot find type 'stat' in scope
65 | /// for a file.
66 | public struct FileInfo: Sendable {
67 | private let _stat_t: stat
| `- error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:70:32: error: cannot find type 'stat' in scope
68 | private let _path: String
69 |
70 | init(_ path: String, stat: stat) {
| `- error: cannot find type 'stat' in scope
71 | self._path = path
72 | self._stat_t = stat
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:76:22: error: cannot find type 'mode_t' in scope
74 |
75 | /// mode_t for the file.
76 | public var mode: mode_t {
| `- error: cannot find type 'mode_t' in scope
77 | self._stat_t.st_mode
78 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:56:18: error: cannot find 'stat' in scope
54 | /// - path: The path to the file as a string.
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
| `- error: cannot find 'stat' in scope
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:57:15: error: cannot find 'lstat' in scope
55 | public static func info(_ path: String) throws -> FileInfo {
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
| `- error: cannot find 'lstat' in scope
58 | throw Error.errno(errno)
59 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:58:31: error: cannot find 'errno' in scope
56 | var st = stat()
57 | guard lstat(path, &st) == 0 else {
58 | throw Error.errno(errno)
| `- error: cannot find 'errno' in scope
59 | }
60 | return FileInfo(path, stat: st)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:16: error: cannot find 'S_IFMT' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:112:26: error: cannot find 'S_IFDIR' in scope
110 | /// Returns if the file is a directory.
111 | public var isDirectory: Bool {
112 | mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:16: error: cannot find 'S_IFMT' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFMT' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:117:26: error: cannot find 'S_IFIFO' in scope
115 | /// Returns if the file is a pipe.
116 | public var isPipe: Bool {
117 | mode & S_IFMT == S_IFIFO
| `- error: cannot find 'S_IFIFO' in scope
118 | }
119 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:16: error: cannot find 'S_IFMT' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFMT' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:122:26: error: cannot find 'S_IFSOCK' in scope
120 | /// Returns if the file is a socket.
121 | public var isSocket: Bool {
122 | mode & S_IFMT == S_IFSOCK
| `- error: cannot find 'S_IFSOCK' in scope
123 | }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:16: error: cannot find 'S_IFMT' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFMT' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:127:26: error: cannot find 'S_IFLNK' in scope
125 | /// Returns if the file is a link.
126 | public var isLink: Bool {
127 | mode & S_IFMT == S_IFLNK
| `- error: cannot find 'S_IFLNK' in scope
128 | }
129 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:16: error: cannot find 'S_IFMT' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFMT' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:132:26: error: cannot find 'S_IFREG' in scope
130 | /// Returns if the file is a regular file.
131 | public var isRegularFile: Bool {
132 | mode & S_IFMT == S_IFREG
| `- error: cannot find 'S_IFREG' in scope
133 | }
134 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:16: error: cannot find 'S_IFMT' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFMT' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:137:26: error: cannot find 'S_IFBLK' in scope
135 | /// Returns if the file is a block device.
136 | public var isBlock: Bool {
137 | mode & S_IFMT == S_IFBLK
| `- error: cannot find 'S_IFBLK' in scope
138 | }
139 |
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:16: error: cannot find 'S_IFMT' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFMT' in scope
143 | }
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/File.swift:142:26: error: cannot find 'S_IFCHR' in scope
140 | /// Returns if the file is a character device.
141 | public var isChar: Bool {
142 | mode & S_IFMT == S_IFCHR
| `- error: cannot find 'S_IFCHR' in scope
143 | }
144 | }
[722/1616] Compiling GRPCCore CallOptions.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
37 |
38 | public let path: String
39 | public let perms: mode_t?
| `- error: cannot find type 'mode_t' in scope
40 | private let _addr: sockaddr_un
41 | private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
38 | public let path: String
39 | public let perms: mode_t?
40 | private let _addr: sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
43 | private init(sockaddr: sockaddr_un) {
| `- error: cannot find type 'sockaddr_un' in scope
44 | let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
45 | let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
55 | public init(
56 | path: String,
57 | perms: mode_t? = nil,
| `- error: cannot find type 'mode_t' in scope
58 | unlinkExisting: Bool = false
59 | ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:139:56: error: cannot find type 'sockaddr' in scope
137 | }
138 |
139 | public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
| `- error: cannot find type 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
30 | /// Unix domain socket variant of `SocketType`.
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
| `- error: cannot find 'AF_UNIX' in scope
33 | public var type: Int32 { _SOCK_STREAM }
34 | public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
33 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
34 | public var description: String {
35 | path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
61 | self.perms = perms
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
64 | addr.sun_family = sa_family_t(AF_UNIX)
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:77:28: error: cannot find 'lengthLimit' in scope
75 | #endif
76 |
77 | guard nameLength < lengthLimit else {
| `- error: cannot find 'lengthLimit' in scope
78 | throw Error.nameTooLong(path)
79 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:82:38: error: cannot find 'strncpy' in scope
80 |
81 | _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
82 | socketName.withCString { strncpy(ptr, $0, nameLength) }
| `- error: cannot find 'strncpy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:93:20: error: cannot find 'sockaddr_un' in scope
91 | public func accept(fd: Int32) throws -> (Int32, SocketType) {
92 | var clientFD: Int32 = -1
93 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:24: error: cannot find 'socklen_t' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find 'socklen_t' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:47: error: cannot find type 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find type 'sockaddr_un' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:98:47: error: cannot find 'sockaddr' in scope
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
| `- error: cannot find 'sockaddr' in scope
99 | sysAccept(fd, pointer, &size)
100 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:27: error: cannot find 'errno' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'errno' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:36: error: cannot find 'ENOENT' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'ENOENT' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:74: error: cannot find 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: cannot find 'sockaddr' in scope
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:143:56: error: cannot find type 'sockaddr_un' in scope
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
| `- error: cannot find type 'sockaddr_un' in scope
144 | }
145 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:50: error: generic parameter 'T' could not be inferred
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: generic parameter 'T' could not be inferred
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
| `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
30 | public struct VsockType: SocketType, Sendable {
31 | public var domain: Int32 { AF_VSOCK }
32 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
33 | public var description: String {
34 | "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'errno' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'EINTR' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
[723/1616] Compiling GRPCCore ClientContext.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
37 |
38 | public let path: String
39 | public let perms: mode_t?
| `- error: cannot find type 'mode_t' in scope
40 | private let _addr: sockaddr_un
41 | private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
38 | public let path: String
39 | public let perms: mode_t?
40 | private let _addr: sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
43 | private init(sockaddr: sockaddr_un) {
| `- error: cannot find type 'sockaddr_un' in scope
44 | let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
45 | let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
55 | public init(
56 | path: String,
57 | perms: mode_t? = nil,
| `- error: cannot find type 'mode_t' in scope
58 | unlinkExisting: Bool = false
59 | ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:139:56: error: cannot find type 'sockaddr' in scope
137 | }
138 |
139 | public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
| `- error: cannot find type 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
30 | /// Unix domain socket variant of `SocketType`.
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
| `- error: cannot find 'AF_UNIX' in scope
33 | public var type: Int32 { _SOCK_STREAM }
34 | public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
33 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
34 | public var description: String {
35 | path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
61 | self.perms = perms
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
64 | addr.sun_family = sa_family_t(AF_UNIX)
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:77:28: error: cannot find 'lengthLimit' in scope
75 | #endif
76 |
77 | guard nameLength < lengthLimit else {
| `- error: cannot find 'lengthLimit' in scope
78 | throw Error.nameTooLong(path)
79 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:82:38: error: cannot find 'strncpy' in scope
80 |
81 | _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
82 | socketName.withCString { strncpy(ptr, $0, nameLength) }
| `- error: cannot find 'strncpy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:93:20: error: cannot find 'sockaddr_un' in scope
91 | public func accept(fd: Int32) throws -> (Int32, SocketType) {
92 | var clientFD: Int32 = -1
93 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:24: error: cannot find 'socklen_t' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find 'socklen_t' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:47: error: cannot find type 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find type 'sockaddr_un' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:98:47: error: cannot find 'sockaddr' in scope
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
| `- error: cannot find 'sockaddr' in scope
99 | sysAccept(fd, pointer, &size)
100 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:27: error: cannot find 'errno' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'errno' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:36: error: cannot find 'ENOENT' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'ENOENT' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:74: error: cannot find 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: cannot find 'sockaddr' in scope
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:143:56: error: cannot find type 'sockaddr_un' in scope
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
| `- error: cannot find type 'sockaddr_un' in scope
144 | }
145 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:50: error: generic parameter 'T' could not be inferred
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: generic parameter 'T' could not be inferred
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
| `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
30 | public struct VsockType: SocketType, Sendable {
31 | public var domain: Int32 { AF_VSOCK }
32 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
33 | public var description: String {
34 | "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'errno' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'EINTR' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
[724/1616] Compiling GRPCCore ClientInterceptor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
37 |
38 | public let path: String
39 | public let perms: mode_t?
| `- error: cannot find type 'mode_t' in scope
40 | private let _addr: sockaddr_un
41 | private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
38 | public let path: String
39 | public let perms: mode_t?
40 | private let _addr: sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
41 | private let _unlinkExisting: Bool
42 |
43 | private init(sockaddr: sockaddr_un) {
| `- error: cannot find type 'sockaddr_un' in scope
44 | let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
45 | let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
55 | public init(
56 | path: String,
57 | perms: mode_t? = nil,
| `- error: cannot find type 'mode_t' in scope
58 | unlinkExisting: Bool = false
59 | ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:139:56: error: cannot find type 'sockaddr' in scope
137 | }
138 |
139 | public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
| `- error: cannot find type 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
30 | /// Unix domain socket variant of `SocketType`.
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
| `- error: cannot find 'AF_UNIX' in scope
33 | public var type: Int32 { _SOCK_STREAM }
34 | public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
32 | public var domain: Int32 { AF_UNIX }
33 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
34 | public var description: String {
35 | path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
61 | self.perms = perms
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
64 | addr.sun_family = sa_family_t(AF_UNIX)
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
62 | self._unlinkExisting = unlinkExisting
63 | var addr = sockaddr_un()
64 | addr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
65 |
66 | let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:77:28: error: cannot find 'lengthLimit' in scope
75 | #endif
76 |
77 | guard nameLength < lengthLimit else {
| `- error: cannot find 'lengthLimit' in scope
78 | throw Error.nameTooLong(path)
79 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:82:38: error: cannot find 'strncpy' in scope
80 |
81 | _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
82 | socketName.withCString { strncpy(ptr, $0, nameLength) }
| `- error: cannot find 'strncpy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:93:20: error: cannot find 'sockaddr_un' in scope
91 | public func accept(fd: Int32) throws -> (Int32, SocketType) {
92 | var clientFD: Int32 = -1
93 | var addr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:24: error: cannot find 'socklen_t' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find 'socklen_t' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:96:47: error: cannot find type 'sockaddr_un' in scope
94 |
95 | clientFD = Syscall.retrying {
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
| `- error: cannot find type 'sockaddr_un' in scope
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:98:47: error: cannot find 'sockaddr' in scope
96 | var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
97 | return withUnsafeMutablePointer(to: &addr) { pointer in
98 | pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
| `- error: cannot find 'sockaddr' in scope
99 | sysAccept(fd, pointer, &size)
100 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:27: error: cannot find 'errno' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'errno' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:123:36: error: cannot find 'ENOENT' in scope
121 | if self._unlinkExisting {
122 | rc = sysUnlink(self.path)
123 | if rc != 0 && errno != ENOENT {
| `- error: cannot find 'ENOENT' in scope
124 | throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
125 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:74: error: cannot find 'sockaddr' in scope
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: cannot find 'sockaddr' in scope
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:143:56: error: cannot find type 'sockaddr_un' in scope
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
| `- error: cannot find type 'sockaddr_un' in scope
144 | }
145 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:142:50: error: generic parameter 'T' could not be inferred
140 | var addr = self._addr
141 | try withUnsafePointer(to: &addr) {
142 | let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
| `- error: generic parameter 'T' could not be inferred
143 | try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
144 | }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
| `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
30 | public struct VsockType: SocketType, Sendable {
31 | public var domain: Int32 { AF_VSOCK }
32 | public var type: Int32 { _SOCK_STREAM }
| `- error: cannot find '_SOCK_STREAM' in scope
33 | public var description: String {
34 | "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'errno' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
92 | }
93 | }
94 | if clientFD < 0 && errno != EINTR {
| `- error: cannot find 'EINTR' in scope
95 | throw Socket.errnoToError(msg: "accept failed")
96 | }
[725/1616] Compiling GRPCCore ClientRequest.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[726/1616] Compiling GRPCCore ClientResponse.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[727/1616] Compiling GRPCCore ClientRPCExecutor+HedgingExecutor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[728/1616] Compiling GRPCCore ClientRPCExecutor+OneShotExecutor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 | /// nil is returned when no pending processes exist.
50 | private static func wait() -> Exit? {
51 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
52 | var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'wait4' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'WNOHANG' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:82:28: error: cannot find 'getpagesize' in scope
80 | self.completionState = Mutex(.pending)
81 |
82 | let pageSize = Int(getpagesize())
| `- error: cannot find 'getpagesize' in scope
83 | self.buffer1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
84 | self.buffer2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:20: error: cannot find 'shutdown' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'shutdown' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:50: error: cannot find 'SHUT_WR' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'SHUT_WR' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:202:41: error: cannot find 'errno' in scope
200 | "failed to shut down writes",
201 | metadata: [
202 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
203 | "sourceFd": "\(sourceFd)",
204 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:20: error: cannot find 'shutdown' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'shutdown' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:50: error: cannot find 'SHUT_RDWR' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'SHUT_RDWR' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:242:41: error: cannot find 'errno' in scope
240 | "failed to shut down destination after I/O error",
241 | metadata: [
242 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
243 | "sourceFd": "\(sourceFd)",
244 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:269:30: error: cannot find 'read' in scope
267 |
268 | while readBytesRemaining > 0 {
269 | let readResult = read(sourceFd, baseAddr, min(bufferSize, readBytesRemaining))
| `- error: cannot find 'read' in scope
270 | if readResult <= 0 {
271 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:281:35: error: cannot find 'write' in scope
279 | var writeOffset = 0
280 | while writeBytesRemaining > 0 {
281 | let writeResult = write(destinationFd, baseAddr.advanced(by: writeOffset), writeBytesRemaining)
| `- error: cannot find 'write' in scope
282 | if writeResult <= 0 {
283 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:299:9: error: cannot find 'close' in scope
297 | metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"]
298 | )
299 | close(fd1)
| `- error: cannot find 'close' in scope
300 | close(fd2)
301 | completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:300:9: error: cannot find 'close' in scope
298 | )
299 | close(fd1)
300 | close(fd2)
| `- error: cannot find 'close' in scope
301 | completionState.withLock { state in
302 | if case .waiting(let c) = state {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no exact matches in reference to global function 'ioctl'
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
88 | let sockFD = sysSocket(type.domain, type.type, 0)
89 | if sockFD < 0 {
90 | throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
| `- error: cannot find 'errno' in scope
91 | }
92 | self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[729/1616] Compiling GRPCCore ClientRPCExecutor+RetryExecutor.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 | /// nil is returned when no pending processes exist.
50 | private static func wait() -> Exit? {
51 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
52 | var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'wait4' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'WNOHANG' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:82:28: error: cannot find 'getpagesize' in scope
80 | self.completionState = Mutex(.pending)
81 |
82 | let pageSize = Int(getpagesize())
| `- error: cannot find 'getpagesize' in scope
83 | self.buffer1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
84 | self.buffer2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:20: error: cannot find 'shutdown' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'shutdown' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:50: error: cannot find 'SHUT_WR' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'SHUT_WR' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:202:41: error: cannot find 'errno' in scope
200 | "failed to shut down writes",
201 | metadata: [
202 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
203 | "sourceFd": "\(sourceFd)",
204 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:20: error: cannot find 'shutdown' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'shutdown' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:50: error: cannot find 'SHUT_RDWR' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'SHUT_RDWR' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:242:41: error: cannot find 'errno' in scope
240 | "failed to shut down destination after I/O error",
241 | metadata: [
242 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
243 | "sourceFd": "\(sourceFd)",
244 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:269:30: error: cannot find 'read' in scope
267 |
268 | while readBytesRemaining > 0 {
269 | let readResult = read(sourceFd, baseAddr, min(bufferSize, readBytesRemaining))
| `- error: cannot find 'read' in scope
270 | if readResult <= 0 {
271 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:281:35: error: cannot find 'write' in scope
279 | var writeOffset = 0
280 | while writeBytesRemaining > 0 {
281 | let writeResult = write(destinationFd, baseAddr.advanced(by: writeOffset), writeBytesRemaining)
| `- error: cannot find 'write' in scope
282 | if writeResult <= 0 {
283 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:299:9: error: cannot find 'close' in scope
297 | metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"]
298 | )
299 | close(fd1)
| `- error: cannot find 'close' in scope
300 | close(fd2)
301 | completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:300:9: error: cannot find 'close' in scope
298 | )
299 | close(fd1)
300 | close(fd2)
| `- error: cannot find 'close' in scope
301 | completionState.withLock { state in
302 | if case .waiting(let c) = state {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no exact matches in reference to global function 'ioctl'
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
88 | let sockFD = sysSocket(type.domain, type.type, 0)
89 | if sockFD < 0 {
90 | throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
| `- error: cannot find 'errno' in scope
91 | }
92 | self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[730/1616] Compiling GRPCCore CompressionAlgorithm.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
26 | import Darwin
27 | #else
28 | #error("Socket not supported on this platform.")
| `- error: Socket not supported on this platform.
29 | #endif
30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
| `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
25 | let _SOCK_STREAM = SOCK_STREAM
26 | #else
27 | #error("UnixType not supported on this platform.")
| `- error: UnixType not supported on this platform.
28 | #endif
29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
24 | import Darwin
25 | #else
26 | #error("VsockType not supported on this platform.")
| `- error: VsockType not supported on this platform.
27 | #endif
28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
| `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 | /// nil is returned when no pending processes exist.
50 | private static func wait() -> Exit? {
51 | var rus = rusage()
| `- error: cannot find 'rusage' in scope
52 | var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'wait4' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 | var ws = Int32()
53 |
54 | let pid = wait4(-1, &ws, WNOHANG, &rus)
| `- error: cannot find 'WNOHANG' in scope
55 | if pid <= 0 {
56 | return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:82:28: error: cannot find 'getpagesize' in scope
80 | self.completionState = Mutex(.pending)
81 |
82 | let pageSize = Int(getpagesize())
| `- error: cannot find 'getpagesize' in scope
83 | self.buffer1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
84 | self.buffer2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:20: error: cannot find 'shutdown' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'shutdown' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:198:50: error: cannot find 'SHUT_WR' in scope
196 | )
197 | source.cancel()
198 | if shutdown(destinationFd, Int32(SHUT_WR)) != 0 {
| `- error: cannot find 'SHUT_WR' in scope
199 | log?.debug(
200 | "failed to shut down writes",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:202:41: error: cannot find 'errno' in scope
200 | "failed to shut down writes",
201 | metadata: [
202 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
203 | "sourceFd": "\(sourceFd)",
204 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:20: error: cannot find 'shutdown' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'shutdown' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:238:50: error: cannot find 'SHUT_RDWR' in scope
236 | if !source.isCancelled {
237 | source.cancel()
238 | if shutdown(destinationFd, Int32(SHUT_RDWR)) != 0 {
| `- error: cannot find 'SHUT_RDWR' in scope
239 | log?.warning(
240 | "failed to shut down destination after I/O error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:242:41: error: cannot find 'errno' in scope
240 | "failed to shut down destination after I/O error",
241 | metadata: [
242 | "errno": "\(errno)",
| `- error: cannot find 'errno' in scope
243 | "sourceFd": "\(sourceFd)",
244 | "destinationFd": "\(destinationFd)",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:269:30: error: cannot find 'read' in scope
267 |
268 | while readBytesRemaining > 0 {
269 | let readResult = read(sourceFd, baseAddr, min(bufferSize, readBytesRemaining))
| `- error: cannot find 'read' in scope
270 | if readResult <= 0 {
271 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:281:35: error: cannot find 'write' in scope
279 | var writeOffset = 0
280 | while writeBytesRemaining > 0 {
281 | let writeResult = write(destinationFd, baseAddr.advanced(by: writeOffset), writeBytesRemaining)
| `- error: cannot find 'write' in scope
282 | if writeResult <= 0 {
283 | throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:299:9: error: cannot find 'close' in scope
297 | metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"]
298 | )
299 | close(fd1)
| `- error: cannot find 'close' in scope
300 | close(fd2)
301 | completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:300:9: error: cannot find 'close' in scope
298 | )
299 | close(fd1)
300 | close(fd2)
| `- error: cannot find 'close' in scope
301 | completionState.withLock { state in
302 | if case .waiting(let c) = state {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no exact matches in reference to global function 'ioctl'
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
43 | let sysAccept = accept
44 | let sysConnect = connect
45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
| `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
46 | let sysRecvmsg = recvmsg
47 | #endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 | func accept(fd: Int32) throws -> (Int32, SocketType)
41 | /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 | func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
| `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
88 | let sockFD = sysSocket(type.domain, type.type, 0)
89 | if sockFD < 0 {
90 | throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
| `- error: cannot find 'errno' in scope
91 | }
92 | self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 | static func errnoToError(msg: String) -> SocketError {
130 | SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
| `- error: cannot find 'errno' in scope
131 | }
132 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 | static func _errnoString(_ err: Int32?) -> String {
466 | String(validatingCString: strerror(errno)) ?? "error: \(errno)"
| `- error: cannot find 'errno' in scope
467 | }
468 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[730/1616] Compiling tls13_both.cc
[730/1616] Compiling ssl_versions.cc
[730/1616] Compiling ssl_x509.cc
[730/1616] Compiling tls13_client.cc
[730/1616] Compiling t1_enc.cc
BUILD FAILURE 6.3 android