Build Information
Failed to build Socket, reference 0.4.0 (253aef
), with Swift 6.1 for Android on 29 May 2025 22:52:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[52/81] Compiling Socket Errno.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[53/81] Compiling Socket FileChange.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[54/81] Compiling Socket FileEvent.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[55/81] Compiling Socket FileFlags.swift
[56/81] Compiling Socket IOControl.swift
[57/81] Compiling Socket IODirection.swift
[58/81] Compiling Socket IOOperations.swift
[59/81] Compiling Socket IOType.swift
[60/81] Compiling Socket InternetProtocol.swift
[61/81] Compiling Socket SocketOptionID.swift
[62/81] Compiling Socket SocketOptionLevel.swift
[63/81] Compiling Socket SocketProtocol.swift
[64/81] Compiling Socket IPv4Protocol.swift
[65/81] Compiling Socket IPv6Protocol.swift
[66/81] Compiling Socket SocketDescriptor.swift
[67/81] Compiling Socket SocketFlags.swift
[68/81] Compiling Socket SocketHelpers.swift
[69/81] Compiling Socket SocketOperations.swift
[70/81] Compiling Socket SocketOption.swift
[71/81] Compiling Socket LinkLayerProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[72/81] Compiling Socket UnixProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[73/81] Compiling Socket SocketType.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[74/81] Compiling Socket Syscalls.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[75/81] Compiling Socket Util.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[76/81] Compiling Socket Socket.swift
[77/81] Compiling Socket SocketContinuation.swift
[78/81] Compiling Socket SocketManager.swift
[79/81] Compiling Socket AsyncSocketManager.swift
[80/81] Compiling Socket CFSocketManager.swift
[81/81] Compiling Socket CInternetAddress.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/29] Compiling SystemPackage Backcompat.swift
[3/29] Compiling SystemPackage CInterop.swift
[4/29] Compiling SystemPackage Constants.swift
[5/29] Compiling SystemPackage Exports.swift
[6/29] Compiling SystemPackage Mocking.swift
[7/29] Compiling SystemPackage RawBuffer.swift
[8/29] Compiling SystemPackage Syscalls.swift
[9/29] Compiling SystemPackage WindowsSyscallAdapters.swift
[10/29] Compiling SystemPackage MachPort.swift
[11/29] Compiling SystemPackage PlatformString.swift
[12/29] Compiling SystemPackage SystemString.swift
[13/32] Emitting module SystemPackage
[14/32] Compiling SystemPackage FilePathParsing.swift
[15/32] Compiling SystemPackage FilePathString.swift
[16/32] Compiling SystemPackage FilePathSyntax.swift
[17/32] Compiling SystemPackage FilePathTemp.swift
[18/32] Compiling SystemPackage FilePathTempPosix.swift
[19/32] Compiling SystemPackage FilePathTempWindows.swift
[20/32] Compiling SystemPackage FilePathWindows.swift
[21/32] Compiling SystemPackage FilePermissions.swift
[22/32] Compiling SystemPackage Errno.swift
[23/32] Compiling SystemPackage ErrnoWindows.swift
[24/32] Compiling SystemPackage FileDescriptor.swift
[25/32] Compiling SystemPackage FileHelpers.swift
[26/32] Compiling SystemPackage FileOperations.swift
[27/32] Compiling SystemPackage FilePath.swift
[28/32] Compiling SystemPackage FilePathComponentView.swift
[29/32] Compiling SystemPackage FilePathComponents.swift
[30/32] Compiling SystemPackage Util+StringArray.swift
[31/32] Compiling SystemPackage Util.swift
[32/32] Compiling SystemPackage UtilConsumers.swift
[34/72] Compiling Socket SocketOptionID.swift
[35/72] Compiling Socket SocketOptionLevel.swift
[36/72] Compiling Socket SocketProtocol.swift
[37/72] Compiling Socket IPv4Protocol.swift
[38/72] Compiling Socket IPv6Protocol.swift
[39/77] Compiling Socket CInterop.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[40/77] Compiling Socket CSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[41/77] Compiling Socket Constants.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[42/77] Compiling Socket Errno.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[43/77] Compiling Socket FileChange.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[44/77] Compiling Socket FileEvent.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[45/77] Compiling Socket IPv4SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[46/77] Compiling Socket IPv6SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[47/77] Compiling Socket LinkLayerSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[48/77] Compiling Socket UnixSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[49/77] Compiling Socket SocketAddressFamily.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[50/77] Compiling Socket MessageFlags.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[51/77] Compiling Socket NetworkInterface.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[52/77] Compiling Socket NetworkOrder.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[53/77] Compiling Socket Poll.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[54/77] Compiling Socket SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[55/77] Compiling Socket LinkLayerProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[56/77] Compiling Socket UnixProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[57/77] Compiling Socket SocketType.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[58/77] Compiling Socket Syscalls.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[59/77] Compiling Socket Util.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
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: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[60/77] Compiling Socket FileFlags.swift
[61/77] Compiling Socket IOControl.swift
[62/77] Compiling Socket IODirection.swift
[63/77] Compiling Socket IOOperations.swift
[64/77] Compiling Socket IOType.swift
[65/77] Compiling Socket InternetProtocol.swift
[66/77] Compiling Socket SocketDescriptor.swift
[67/77] Compiling Socket SocketFlags.swift
[68/77] Compiling Socket SocketHelpers.swift
[69/77] Compiling Socket SocketOperations.swift
[70/77] Compiling Socket SocketOption.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[71/77] Compiling Socket Socket.swift
[72/77] Compiling Socket SocketContinuation.swift
[73/77] Compiling Socket SocketManager.swift
[74/77] Compiling Socket AsyncSocketManager.swift
[75/77] Compiling Socket CFSocketManager.swift
[76/77] Compiling Socket CInternetAddress.swift
[77/77] Emitting module Socket
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
BUILD FAILURE 6.1 android