The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Socket, reference main (87047e), with Swift 6.3 for Wasm on 13 Aug 2026 05:05:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Socket.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/PureSwift/Socket
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 87047ea Merge pull request #27 from PureSwift/fix/stale-readiness
Cloned https://github.com/PureSwift/Socket.git
Revision (git rev-parse @):
87047eaac3fb3012747d6d7b512edad0bc921311
SUCCESS checkout https://github.com/PureSwift/Socket.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/PureSwift/Socket.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:e92e38b97676c18adb57b57429ddfb766786102cb50cb918e0d9e8055d05b35d
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-log.git
[1/7954] Fetching swift-log
[7955/14794] Fetching swift-log, swift-system
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
[2258/6840] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.66s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.0 (0.84s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.0 (0.18s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.0
Building for debugging...
[0/7] Write sources
[2/7] Compiling CSocket android.c
[3/7] Compiling CSocket ancillary.c
[4/7] Compiling CSystem shims.c
[5/7] Compiling CSocket shims.c
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/44] Emitting module SystemPackage
[9/49] Compiling SystemPackage IOCompletion.swift
[10/49] Compiling SystemPackage IORequest.swift
[11/49] Compiling SystemPackage IORing+Util.swift
[12/49] Compiling SystemPackage IORing.swift
[13/49] Compiling SystemPackage RawIORequest.swift
[14/49] Compiling SystemPackage Errno.swift
[15/49] Compiling SystemPackage ErrnoWindows.swift
[16/49] Compiling SystemPackage FileDescriptor.swift
[17/49] Compiling SystemPackage FileHelpers.swift
[18/49] Compiling SystemPackage FileOperations.swift
[19/49] Compiling SystemPackage FilePath.swift
[20/49] Compiling SystemPackage SystemString.swift
[21/49] Compiling SystemPackage Util+StringArray.swift
[22/49] Compiling SystemPackage Util.swift
[23/49] Compiling SystemPackage UtilConsumers.swift
[24/49] Compiling SystemPackage WinSDK+Overlay.swift
[25/49] Compiling SystemPackage FilePathComponentView.swift
[26/49] Compiling SystemPackage FilePathComponents.swift
[27/49] Compiling SystemPackage FilePathParsing.swift
[28/49] Compiling SystemPackage FilePathString.swift
[29/49] Compiling SystemPackage FilePathSyntax.swift
[30/49] Compiling SystemPackage FilePathTemp.swift
[31/49] Compiling SystemPackage FilePathTempPosix.swift
[32/49] Compiling SystemPackage FilePathTempWindows.swift
[33/49] Compiling SystemPackage FilePathWindows.swift
[34/49] Compiling SystemPackage FilePermissions.swift
[35/49] Compiling SystemPackage FileFlags.swift
[36/49] Compiling SystemPackage FileMode.swift
[37/49] Compiling SystemPackage FileType.swift
[38/49] Compiling SystemPackage Identifiers.swift
[39/49] Compiling SystemPackage Stat.swift
[40/49] Compiling SystemPackage Backcompat.swift
[41/49] Compiling SystemPackage CInterop.swift
[42/49] Compiling SystemPackage Constants.swift
[43/49] Compiling SystemPackage Exports.swift
[44/49] Compiling SystemPackage Mocking.swift
[45/49] Compiling SystemPackage RawBuffer.swift
[46/49] Compiling SystemPackage Syscalls.swift
[47/49] Compiling SystemPackage WindowsSyscallAdapters.swift
[48/49] Compiling SystemPackage MachPort.swift
[49/49] Compiling SystemPackage PlatformString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/96] Emitting module Socket
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[52/102] Compiling Socket SocketOption.swift
[53/102] Compiling Socket SocketOptionID.swift
[54/102] Compiling Socket SocketOptionLevel.swift
[55/102] Compiling Socket SocketProtocol.swift
[56/102] Compiling Socket IPv4Protocol.swift
[57/102] Compiling Socket IPv6Protocol.swift
[58/102] Compiling Socket EventQueue.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[59/102] Compiling Socket KqueueEventQueue.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[60/102] Compiling Socket PollEventQueue.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[61/102] Compiling Socket CInternetAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[62/102] Compiling Socket CInterop.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[63/102] Compiling Socket CSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[64/102] Compiling Socket Constants.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:43:34: error: cannot find 'O_NONBLOCK' in scope
 41 |
 42 | @_alwaysEmitIntoClient
 43 | internal var _O_NONBLOCK: CInt { O_NONBLOCK }
    |                                  `- error: cannot find 'O_NONBLOCK' in scope
 44 | #endif
 45 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:47:32: error: cannot find 'O_APPEND' in scope
 45 |
 46 | @_alwaysEmitIntoClient
 47 | internal var _O_APPEND: CInt { O_APPEND }
    |                                `- error: cannot find 'O_APPEND' in scope
 48 |
 49 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:60:31: error: cannot find 'O_ASYNC' in scope
 58 | // TODO: API?
 59 | @_alwaysEmitIntoClient
 60 | internal var _O_ASYNC: CInt { O_ASYNC }
    |                               `- error: cannot find 'O_ASYNC' in scope
 61 |
 62 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:67:31: error: cannot find 'O_CREAT' in scope
 65 |
 66 | @_alwaysEmitIntoClient
 67 | internal var _O_CREAT: CInt { O_CREAT }
    |                               `- error: cannot find 'O_CREAT' in scope
 68 |
 69 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:70:31: error: cannot find 'O_TRUNC' in scope
 68 |
 69 | @_alwaysEmitIntoClient
 70 | internal var _O_TRUNC: CInt { O_TRUNC }
    |                               `- error: cannot find 'O_TRUNC' in scope
 71 |
 72 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:73:30: error: cannot find 'O_EXCL' in scope
 71 |
 72 | @_alwaysEmitIntoClient
 73 | internal var _O_EXCL: CInt { O_EXCL }
    |                              `- error: cannot find 'O_EXCL' in scope
 74 |
 75 | #if canImport(Darwin)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:86:35: error: cannot find 'O_DIRECTORY' in scope
 84 |
 85 | @_alwaysEmitIntoClient
 86 | internal var _O_DIRECTORY: CInt { O_DIRECTORY }
    |                                   `- error: cannot find 'O_DIRECTORY' in scope
 87 | #endif
 88 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:120:31: error: cannot find 'F_DUPFD' in scope
118 |
119 | @_alwaysEmitIntoClient
120 | internal var _F_DUPFD: CInt { F_DUPFD }
    |                               `- error: cannot find 'F_DUPFD' in scope
121 |
122 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:123:39: error: cannot find 'F_DUPFD_CLOEXEC' in scope
121 |
122 | @_alwaysEmitIntoClient
123 | internal var _F_DUPFD_CLOEXEC: CInt { F_DUPFD_CLOEXEC }
    |                                       `- error: cannot find 'F_DUPFD_CLOEXEC' in scope
124 |
125 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:141:31: error: cannot find 'POLLPRI' in scope
139 |
140 | @_alwaysEmitIntoClient
141 | internal var _POLLPRI: CInt { POLLPRI }
    |                               `- error: cannot find 'POLLPRI' in scope
142 |
143 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:153:34: error: cannot find 'POLLRDBAND' in scope
151 |
152 | @_alwaysEmitIntoClient
153 | internal var _POLLRDBAND: CInt { POLLRDBAND }
    |                                  `- error: cannot find 'POLLRDBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:156:34: error: cannot find 'POLLWRBAND' in scope
154 |
155 | @_alwaysEmitIntoClient
156 | internal var _POLLWRBAND: CInt { POLLWRBAND }
    |                                  `- error: cannot find 'POLLWRBAND' in scope
157 |
158 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:235:30: error: cannot find 'AF_IPX' in scope
233 |
234 | @_alwaysEmitIntoClient
235 | internal var _AF_IPX: CInt { AF_IPX }
    |                              `- error: cannot find 'AF_IPX' in scope
236 |
237 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:238:36: error: cannot find 'AF_APPLETALK' in scope
236 |
237 | @_alwaysEmitIntoClient
238 | internal var _AF_APPLETALK: CInt { AF_APPLETALK }
    |                                    `- error: cannot find 'AF_APPLETALK' in scope
239 |
240 | #if !os(Windows)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:242:33: error: cannot find 'AF_DECnet' in scope
240 | #if !os(Windows)
241 | @_alwaysEmitIntoClient
242 | internal var _AF_DECnet: CInt { AF_DECnet }
    |                                 `- error: cannot find 'AF_DECnet' in scope
243 |
244 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:245:32: error: cannot find 'AF_VSOCK' in scope
243 |
244 | @_alwaysEmitIntoClient
245 | internal var _AF_VSOCK: CInt { AF_VSOCK }
    |                                `- error: cannot find 'AF_VSOCK' in scope
246 |
247 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:248:31: error: cannot find 'AF_ISDN' in scope
246 |
247 | @_alwaysEmitIntoClient
248 | internal var _AF_ISDN: CInt { AF_ISDN }
    |                               `- error: cannot find 'AF_ISDN' in scope
249 | #endif
250 |
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:376:33: error: cannot find 'SOMAXCONN' in scope
374 | /// Maximum queue length specifiable by listen.
375 | @_alwaysEmitIntoClient
376 | internal var _SOMAXCONN: CInt { SOMAXCONN }
    |                                 `- error: cannot find 'SOMAXCONN' in scope
377 |
378 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:382:32: error: cannot find 'SO_DEBUG' in scope
380 |
381 | @_alwaysEmitIntoClient
382 | internal var _SO_DEBUG: CInt { SO_DEBUG }
    |                                `- error: cannot find 'SO_DEBUG' in scope
383 |
384 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:385:37: error: cannot find 'SO_ACCEPTCONN' in scope
383 |
384 | @_alwaysEmitIntoClient
385 | internal var _SO_ACCEPTCONN: CInt { SO_ACCEPTCONN }
    |                                     `- error: cannot find 'SO_ACCEPTCONN' in scope
386 |
387 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:36: error: cannot find 'SO_REUSEADDR' in scope
386 |
387 | @_alwaysEmitIntoClient
388 | internal var _SO_REUSEADDR: CInt { SO_REUSEADDR }
    |                                    `- error: cannot find 'SO_REUSEADDR' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:36: error: cannot find 'SO_KEEPALIVE' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SO_KEEPALIVE: CInt { SO_KEEPALIVE }
    |                                    `- error: cannot find 'SO_KEEPALIVE' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:36: error: cannot find 'SO_DONTROUTE' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SO_DONTROUTE: CInt { SO_DONTROUTE }
    |                                    `- error: cannot find 'SO_DONTROUTE' in scope
395 |
396 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:397:36: error: cannot find 'SO_BROADCAST' in scope
395 |
396 | @_alwaysEmitIntoClient
397 | internal var _SO_BROADCAST: CInt { SO_BROADCAST }
    |                                    `- error: cannot find 'SO_BROADCAST' in scope
398 |
399 | #if canImport(Darwin)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:405:33: error: cannot find 'SO_LINGER' in scope
403 |
404 | @_alwaysEmitIntoClient
405 | internal var _SO_LINGER: CInt { SO_LINGER }
    |                                 `- error: cannot find 'SO_LINGER' in scope
406 |
407 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:419:50: error: cannot find 'SOCK_STREAM' in scope
417 |
418 | @_alwaysEmitIntoClient
419 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
    |                                                  `- error: cannot find 'SOCK_STREAM' in scope
420 |
421 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:422:49: error: cannot find 'SOCK_DGRAM' in scope
420 |
421 | @_alwaysEmitIntoClient
422 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
    |                                                 `- error: cannot find 'SOCK_DGRAM' in scope
423 |
424 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:425:47: error: cannot find 'SOCK_RAW' in scope
423 |
424 | @_alwaysEmitIntoClient
425 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
    |                                               `- error: cannot find 'SOCK_RAW' in scope
426 |
427 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:428:47: error: cannot find 'SOCK_RDM' in scope
426 |
427 | @_alwaysEmitIntoClient
428 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
    |                                               `- error: cannot find 'SOCK_RDM' in scope
429 |
430 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:431:53: error: cannot find 'SOCK_SEQPACKET' in scope
429 |
430 | @_alwaysEmitIntoClient
431 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
    |                                                     `- error: cannot find 'SOCK_SEQPACKET' in scope
432 |
433 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:445:49: error: cannot find 'MSG_DONTROUTE' in scope
443 |
444 | @_alwaysEmitIntoClient
445 | internal var _MSG_DONTROUTE: CInt { numericCast(MSG_DONTROUTE) } /* send without using routing tables */
    |                                                 `- error: cannot find 'MSG_DONTROUTE' in scope
446 |
447 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:448:43: error: cannot find 'MSG_EOR' in scope
446 |
447 | @_alwaysEmitIntoClient
448 | internal var _MSG_EOR: CInt { numericCast(MSG_EOR) } /* data completes record */
    |                                           `- error: cannot find 'MSG_EOR' in scope
449 |
450 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:451:43: error: cannot find 'MSG_OOB' in scope
449 |
450 | @_alwaysEmitIntoClient
451 | internal var _MSG_OOB: CInt { numericCast(MSG_OOB) } /* process out-of-band data */
    |                                           `- error: cannot find 'MSG_OOB' in scope
452 |
453 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:454:44: error: cannot find 'MSG_PEEK' in scope
452 |
453 | @_alwaysEmitIntoClient
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
    |                                            `- error: cannot find 'MSG_PEEK' in scope
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:456:45: error: cannot find 'MSG_TRUNC' in scope
454 | internal var _MSG_PEEK: CInt { numericCast(MSG_PEEK) } /* peek at incoming message */
455 | @_alwaysEmitIntoClient
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
    |                                             `- error: cannot find 'MSG_TRUNC' in scope
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:458:46: error: cannot find 'MSG_CTRUNC' in scope
456 | internal var _MSG_TRUNC: CInt { numericCast(MSG_TRUNC) } /* data discarded before delivery */
457 | @_alwaysEmitIntoClient
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
    |                                              `- error: cannot find 'MSG_CTRUNC' in scope
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:460:47: error: cannot find 'MSG_WAITALL' in scope
458 | internal var _MSG_CTRUNC: CInt { numericCast(MSG_CTRUNC) } /* control data lost before delivery */
459 | @_alwaysEmitIntoClient
460 | internal var _MSG_WAITALL: CInt { numericCast(MSG_WAITALL) } /* wait for full request or error */
    |                                               `- error: cannot find 'MSG_WAITALL' in scope
461 |
462 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:463:48: error: cannot find 'MSG_DONTWAIT' in scope
461 |
462 | @_alwaysEmitIntoClient
463 | internal var _MSG_DONTWAIT: CInt { numericCast(MSG_DONTWAIT) } /* this message should be nonblocking */
    |                                                `- error: cannot find 'MSG_DONTWAIT' in scope
464 |
465 | #if canImport(Darwin)
[65/102] Compiling Socket SocketAddressFamily.swift
[66/102] Compiling Socket SocketDescriptor.swift
[67/102] Compiling Socket SocketEvent.swift
[68/102] Compiling Socket SocketFlags.swift
[69/102] Compiling Socket SocketHelpers.swift
[70/102] Compiling Socket SocketOperations.swift
[71/102] Compiling Socket Errno.swift
[72/102] Compiling Socket FileChange.swift
[73/102] Compiling Socket FileEvent.swift
[74/102] Compiling Socket FileFlags.swift
[75/102] Compiling Socket IOControl.swift
[76/102] Compiling Socket IODirection.swift
[77/102] Compiling Socket IOOperations.swift
[78/102] Compiling Socket Poll.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[79/102] Compiling Socket SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[80/102] Compiling Socket IPv4SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[81/102] Compiling Socket IPv6SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[82/102] Compiling Socket LinkLayerSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[83/102] Compiling Socket UnixSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:24:43: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
22 |
23 |     internal init(_ cValue: CInterop.UnixSocketAddress) {
24 |         self = withUnsafeBytes(of: cValue.sun_path) { pathPointer in
   |                                           `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
25 |             Self.init(path: FilePath(platformString: pathPointer.baseAddress!.assumingMemoryBound(to: CInterop.PlatformChar.self)))
26 |         }
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:35:55: error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
33 |             var socketAddress = CInterop.UnixSocketAddress()
34 |             socketAddress.sun_family = numericCast(Self.family.rawValue)
35 |             withUnsafeMutableBytes(of: &socketAddress.sun_path) { pathBytes in
   |                                                       `- error: value of type 'CInterop.UnixSocketAddress' (aka 'sockaddr_un') has no member 'sun_path'
36 |                 pathBytes
37 |                     .bindMemory(to: CInterop.PlatformChar.self)
[84/102] Compiling Socket LinkLayerProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[85/102] Compiling Socket UnixProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[86/102] Compiling Socket SocketType.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[87/102] Compiling Socket Syscalls.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[88/102] Compiling Socket TCPSocketOption.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[89/102] Compiling Socket Util.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:60:29: error: cannot find type 'addrinfo' in scope
 58 |
 59 |     /// The C `addrinfo` type
 60 |     typealias AddressInfo = addrinfo
    |                             `- error: cannot find type 'addrinfo' in scope
 61 |
 62 |     /// The C `in_addr` type
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:176:10: error: cannot find 'socket' in scope
174 |   if mockingEnabled { return _mock(fd, fd2, fd3) }
175 |   #endif
176 |   return socket(fd, fd2, fd3)
    |          `- error: cannot find 'socket' in scope
177 | }
178 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:183:10: error: cannot find 'setsockopt' in scope
181 |   if mockingEnabled { return _mock(fd, fd2, fd3, pointer, dataLength) }
182 |   #endif
183 |   return setsockopt(fd, fd2, fd3, pointer, dataLength)
    |          `- error: cannot find 'setsockopt' in scope
184 | }
185 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:207:10: error: cannot find 'bind' in scope
205 |   if mockingEnabled { return _mock(socket, address, length) }
206 |   #endif
207 |   return bind(socket, address, length)
    |          `- error: cannot find 'bind' in scope
208 | }
209 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:218:10: error: cannot find 'connect' in scope
216 |   if mockingEnabled { return _mock(socket, addr, len) }
217 |   #endif
218 |   return connect(socket, addr, len)
    |          `- error: cannot find 'connect' in scope
219 | }
220 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:245:10: error: cannot find 'getaddrinfo' in scope
243 |   }
244 |   #endif
245 |   return getaddrinfo(hostname, servname, hints, res)
    |          `- error: cannot find 'getaddrinfo' in scope
246 | }
247 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:10: error: cannot find 'getnameinfo' in scope
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |          `- error: cannot find 'getnameinfo' in scope
263 | }
264 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:39: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                       `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:262:67: error: generic parameter 'U' could not be inferred
260 |   }
261 |   #endif
262 |   return getnameinfo(sa, salen, host, numericCast(hostlen), serv, numericCast(servlen), flags)
    |                                                                   `- error: generic parameter 'U' could not be inferred
263 | }
264 |
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:274:10: error: cannot find 'freeaddrinfo' in scope
272 |   }
273 |   #endif
274 |   return freeaddrinfo(addrinfo)
    |          `- error: cannot find 'freeaddrinfo' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:281:10: error: cannot find 'gai_strerror' in scope
279 |   // FIXME
280 |   #endif
281 |   return gai_strerror(error)
    |          `- error: cannot find 'gai_strerror' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:295:10: error: cannot find 'listen' in scope
293 |   if mockingEnabled { return _mock(socket, backlog) }
294 |   #endif
295 |   return listen(socket, backlog)
    |          `- error: cannot find 'listen' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:335:10: error: cannot find 'sendto' in scope
333 |   }
334 |   #endif
335 |   return sendto(socket, buffer, length, flags, dest_addr, dest_len)
    |          `- error: cannot find 'sendto' in scope
336 | }
337 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:351:10: error: cannot find 'recvfrom' in scope
349 |   }
350 |   #endif
351 |   return recvfrom(socket, buffer, length, flags, address, addres_len)
    |          `- error: cannot find 'recvfrom' in scope
352 | }
353 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:373:10: error: cannot find 'sendmsg' in scope
371 |   if mockingEnabled { return _mockInt(socket, message, flags) }
372 |   #endif
373 |   return sendmsg(socket, message, flags)
    |          `- error: cannot find 'sendmsg' in scope
374 | }
375 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:384:10: error: cannot find 'recvmsg' in scope
382 |   if mockingEnabled { return _mockInt(socket, message, flags) }
383 |   #endif
384 |   return recvmsg(socket, message, flags)
    |          `- error: cannot find 'recvmsg' in scope
385 | }
386 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:530:12: error: cannot find 'if_nameindex' in scope
528 |   }
529 | #endif
530 |     return if_nameindex()
    |            `- error: cannot find 'if_nameindex' in scope
531 | }
532 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:541:12: error: cannot find 'if_freenameindex' in scope
539 |   }
540 | #endif
541 |     return if_freenameindex(pointer)
    |            `- error: cannot find 'if_freenameindex' in scope
542 | }
543 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:585:12: error: cannot find 'getsockname' in scope
583 |     if mockingEnabled { return _mock(fd, address) }
584 | #endif
585 |     return getsockname(fd, address, length)
    |            `- error: cannot find 'getsockname' in scope
586 | }
587 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:592:12: error: cannot find 'getpeername' in scope
590 |     if mockingEnabled { return _mock(fd, address) }
591 | #endif
592 |     return getpeername(fd, address, length)
    |            `- error: cannot find 'getpeername' in scope
593 | }
594 |
[90/102] Compiling Socket IOType.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[91/102] Compiling Socket InternetProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[92/102] Compiling Socket MessageFlags.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[93/102] Compiling Socket Mocking.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[94/102] Compiling Socket NetworkInterface.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[95/102] Compiling Socket NetworkOrder.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:91:36: error: cannot find type 'if_nameindex' in scope
 89 |
 90 |     /// The C `if_nameindex` type
 91 |     typealias InterfaceNameIndex = if_nameindex
    |                                    `- error: cannot find type 'if_nameindex' in scope
 92 |
 93 |     /// The C  `ifaddrs` type
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:59: error: missing argument label 'index:' in call
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                           `- error: missing argument label 'index:' in call
105 |         }
106 |     }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:104:70: error: missing argument for parameter 'name' in call
 78 | // MARK: - Supporting Types
 79 |
 80 | public struct NetworkInterfaceID: Equatable, Hashable, Sendable {
    |               `- note: 'init(index:name:)' declared here
 81 |
 82 |     /// Interface index.
    :
102 |             }
103 |             // get interfaces
104 |             return (0 ..< count).map { NetworkInterfaceID(pointer[$0]) }
    |                                                                      `- error: missing argument for parameter 'name' in call
105 |         }
106 |     }
[96/102] Compiling Socket AncillaryData.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[97/102] Compiling Socket Socket.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[98/102] Compiling Socket SocketContinuation.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[99/102] Compiling Socket SocketManager.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[100/102] Compiling Socket AsyncSocketManager.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[101/102] Compiling Socket CFSocketManager.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
[102/102] Compiling Socket EpollEventQueue.swift
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:410:25: error: type 'Errno' has no member 'socketShutdown'
408 |     ) throws -> AsyncSocketManager.SocketState {
409 |         guard let socket = state.sockets[fileDescriptor] else {
410 |             throw Errno.socketShutdown
    |                         `- error: type 'Errno' has no member 'socketShutdown'
411 |         }
412 |         return socket
BUILD FAILURE 6.3 wasm