Build Information
Failed to build SocketAddress, reference 0.2.0 (f5bf2f), with Swift 6.1 for Wasm on 17 Nov 2025 05:43:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PADL/SocketAddress.git
Reference: 0.2.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/PADL/SocketAddress
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at f5bf2f1 add withMutableSockAddr accessor
Cloned https://github.com/PADL/SocketAddress.git
Revision (git rev-parse @):
f5bf2f1daed55a3148ba3e939df32c36960b4195
SUCCESS checkout https://github.com/PADL/SocketAddress.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/PADL/SocketAddress.git
https://github.com/PADL/SocketAddress.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
}
],
"manifest_display_name" : "SocketAddress",
"name" : "SocketAddress",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "SocketAddress",
"targets" : [
"SocketAddress"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CLinuxSockAddr",
"targets" : [
"CLinuxSockAddr"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SocketAddressTests",
"module_type" : "SwiftTarget",
"name" : "SocketAddressTests",
"path" : "Tests/SocketAddressTests",
"sources" : [
"SocketAddressTests.swift"
],
"target_dependencies" : [
"SocketAddress"
],
"type" : "test"
},
{
"c99name" : "SocketAddress",
"module_type" : "SwiftTarget",
"name" : "SocketAddress",
"path" : "Sources/SocketAddress",
"product_dependencies" : [
"SystemPackage"
],
"product_memberships" : [
"SocketAddress"
],
"sources" : [
"SocketAddress.swift",
"Utils.swift"
],
"target_dependencies" : [
"CLinuxSockAddr"
],
"type" : "library"
},
{
"c99name" : "CLinuxSockAddr",
"module_type" : "SystemLibraryTarget",
"name" : "CLinuxSockAddr",
"path" : "Sources/CLinuxSockAddr",
"product_memberships" : [
"SocketAddress",
"CLinuxSockAddr"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-system
[1/5182] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.48s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.3 (1.47s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.3
Building for debugging...
[0/4] Write sources
[2/4] Compiling CSystem shims.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/35] Emitting module SystemPackage
[6/39] Compiling SystemPackage FilePathSyntax.swift
[7/39] Compiling SystemPackage FilePathTemp.swift
[8/39] Compiling SystemPackage FilePathTempPosix.swift
[9/39] Compiling SystemPackage FilePathTempWindows.swift
[10/39] Compiling SystemPackage FilePath.swift
[11/39] Compiling SystemPackage FilePathComponentView.swift
[12/39] Compiling SystemPackage FilePathComponents.swift
[13/39] Compiling SystemPackage FilePathParsing.swift
[14/39] Compiling SystemPackage FilePathString.swift
[15/39] Compiling SystemPackage SystemString.swift
[16/39] Compiling SystemPackage Util+StringArray.swift
[17/39] Compiling SystemPackage Util.swift
[18/39] Compiling SystemPackage UtilConsumers.swift
[19/39] Compiling SystemPackage Errno.swift
[20/39] Compiling SystemPackage ErrnoWindows.swift
[21/39] Compiling SystemPackage FileDescriptor.swift
[22/39] Compiling SystemPackage FileHelpers.swift
[23/39] Compiling SystemPackage FileOperations.swift
[24/39] Compiling SystemPackage FilePathWindows.swift
[25/39] Compiling SystemPackage FilePermissions.swift
[26/39] Compiling SystemPackage IOCompletion.swift
[27/39] Compiling SystemPackage IORequest.swift
[28/39] Compiling SystemPackage IORing.swift
[29/39] Compiling SystemPackage RawIORequest.swift
[30/39] Compiling SystemPackage Backcompat.swift
[31/39] Compiling SystemPackage CInterop.swift
[32/39] Compiling SystemPackage Constants.swift
[33/39] Compiling SystemPackage Exports.swift
[34/39] Compiling SystemPackage Mocking.swift
[35/39] Compiling SystemPackage RawBuffer.swift
[36/39] Compiling SystemPackage Syscalls.swift
[37/39] Compiling SystemPackage WindowsSyscallAdapters.swift
[38/39] Compiling SystemPackage MachPort.swift
[39/39] Compiling SystemPackage PlatformString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/43] Emitting module SocketAddress
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:55:22: error: cannot find type 'sa_family_t' in scope
53 |
54 | public protocol SocketAddress: Sendable {
55 | static var family: sa_family_t { get }
| `- error: cannot find type 'sa_family_t' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:57:16: error: cannot find type 'sa_family_t' in scope
55 | static var family: sa_family_t { get }
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
| `- error: cannot find type 'sa_family_t' in scope
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:58:53: error: cannot find type 'sockaddr' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
| `- error: cannot find type 'sockaddr' in scope
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
60 | -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:59:76: error: cannot find type 'sockaddr' in scope
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
60 | -> T
61 | ) rethrows -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:67:13: error: cannot find type 'socklen_t' in scope
65 |
66 | var port: UInt16 { get throws }
67 | var size: socklen_t { get }
| `- error: cannot find type 'socklen_t' in scope
68 | }
69 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:71:15: error: cannot find type 'sa_family_t' in scope
69 |
70 | public extension SocketAddress {
71 | var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
72 | withSockAddr { $0.pointee.sa_family }
73 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:77:23: error: cannot find type 'sockaddr_storage' in scope
75 |
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:86:11: error: cannot find type 'sockaddr' in scope
84 | }
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr' in scope
87 | public static var family: sa_family_t {
88 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:151:11: error: cannot find type 'sockaddr_in' in scope
149 | }
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in' in scope
152 | public static var family: sa_family_t {
153 | sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:227:11: error: cannot find type 'sockaddr_in6' in scope
225 | }
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in6' in scope
228 | public static var family: sa_family_t {
229 | sa_family_t(AF_INET6)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:303:11: error: cannot find type 'sockaddr_un' in scope
301 | }
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_un' in scope
304 | public static var family: sa_family_t {
305 | sa_family_t(AF_LOCAL)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:530:11: error: cannot find type 'sockaddr_storage' in scope
528 | #endif
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_storage' in scope
531 | public static var family: sa_family_t {
532 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:687:18: error: cannot find type 'sockaddr_storage' in scope
685 | }
686 |
687 | public extension sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
688 | init(bytes: [UInt8]) throws {
689 | guard bytes.count >= MemoryLayout<sockaddr>.size else {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:723:24: error: cannot find type 'sockaddr_storage' in scope
721 |
722 | public struct AnySocketAddress: Sendable {
723 | private var storage: sockaddr_storage
| `- error: cannot find type 'sockaddr_storage' in scope
724 |
725 | public init(_ sa: any SocketAddress) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:744:29: error: cannot find type 'sa_family_t' in scope
742 |
743 | extension AnySocketAddress: SocketAddress {
744 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
745 | sa_family_t(AF_UNSPEC)
746 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:748:23: error: cannot find type 'sa_family_t' in scope
746 | }
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
750 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:752:60: error: cannot find type 'sockaddr' in scope
750 | }
751 |
752 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
753 | try storage.withSockAddr(body)
754 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:756:83: error: cannot find type 'sockaddr' in scope
754 | }
755 |
756 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
757 | -> T
758 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:780:20: error: cannot find type 'socklen_t' in scope
778 | }
779 |
780 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
781 | storage.size
782 | }
[42/43] Compiling SocketAddress Utils.swift
/host/spi-builder-workspace/Sources/SocketAddress/Utils.swift:36:49: error: cannot find 'errno' in scope
34 | }
35 |
36 | static var lastError: Errno { Errno(rawValue: errno) }
| `- error: cannot find 'errno' in scope
37 | }
38 |
[43/43] Compiling SocketAddress SocketAddress.swift
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:55:22: error: cannot find type 'sa_family_t' in scope
53 |
54 | public protocol SocketAddress: Sendable {
55 | static var family: sa_family_t { get }
| `- error: cannot find type 'sa_family_t' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:57:16: error: cannot find type 'sa_family_t' in scope
55 | static var family: sa_family_t { get }
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
| `- error: cannot find type 'sa_family_t' in scope
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:58:53: error: cannot find type 'sockaddr' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
| `- error: cannot find type 'sockaddr' in scope
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
60 | -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:59:76: error: cannot find type 'sockaddr' in scope
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
60 | -> T
61 | ) rethrows -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:67:13: error: cannot find type 'socklen_t' in scope
65 |
66 | var port: UInt16 { get throws }
67 | var size: socklen_t { get }
| `- error: cannot find type 'socklen_t' in scope
68 | }
69 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:71:15: error: cannot find type 'sa_family_t' in scope
69 |
70 | public extension SocketAddress {
71 | var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
72 | withSockAddr { $0.pointee.sa_family }
73 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:77:23: error: cannot find type 'sockaddr_storage' in scope
75 |
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:86:11: error: cannot find type 'sockaddr' in scope
84 | }
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr' in scope
87 | public static var family: sa_family_t {
88 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:151:11: error: cannot find type 'sockaddr_in' in scope
149 | }
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in' in scope
152 | public static var family: sa_family_t {
153 | sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:227:11: error: cannot find type 'sockaddr_in6' in scope
225 | }
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in6' in scope
228 | public static var family: sa_family_t {
229 | sa_family_t(AF_INET6)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:303:11: error: cannot find type 'sockaddr_un' in scope
301 | }
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_un' in scope
304 | public static var family: sa_family_t {
305 | sa_family_t(AF_LOCAL)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:530:11: error: cannot find type 'sockaddr_storage' in scope
528 | #endif
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_storage' in scope
531 | public static var family: sa_family_t {
532 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:687:18: error: cannot find type 'sockaddr_storage' in scope
685 | }
686 |
687 | public extension sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
688 | init(bytes: [UInt8]) throws {
689 | guard bytes.count >= MemoryLayout<sockaddr>.size else {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:723:24: error: cannot find type 'sockaddr_storage' in scope
721 |
722 | public struct AnySocketAddress: Sendable {
723 | private var storage: sockaddr_storage
| `- error: cannot find type 'sockaddr_storage' in scope
724 |
725 | public init(_ sa: any SocketAddress) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:744:29: error: cannot find type 'sa_family_t' in scope
742 |
743 | extension AnySocketAddress: SocketAddress {
744 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
745 | sa_family_t(AF_UNSPEC)
746 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:748:23: error: cannot find type 'sa_family_t' in scope
746 | }
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
750 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:752:60: error: cannot find type 'sockaddr' in scope
750 | }
751 |
752 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
753 | try storage.withSockAddr(body)
754 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:756:83: error: cannot find type 'sockaddr' in scope
754 | }
755 |
756 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
757 | -> T
758 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:780:20: error: cannot find type 'socklen_t' in scope
778 | }
779 |
780 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
781 | storage.size
782 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:78:14: error: cannot find 'sockaddr_storage' in scope
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
78 | var ss = sockaddr_storage()
| `- error: cannot find 'sockaddr_storage' in scope
79 | withSockAddr {
80 | _ = memcpy(&ss, $0, Int(size))
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:80:11: error: cannot find 'memcpy' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
80 | _ = memcpy(&ss, $0, Int(size))
| `- error: cannot find 'memcpy' in scope
81 | }
82 | return ss
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:730:19: error: cannot find 'sockaddr_storage' in scope
728 |
729 | public init(bytes: [UInt8]) throws {
730 | storage = try sockaddr_storage(bytes: bytes)
| `- error: cannot find 'sockaddr_storage' in scope
731 | }
732 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:739:7: error: cannot find 'memcmp' in scope
737 | var rhs = rhs
738 | return lhs.storage.size == rhs.storage.size &&
739 | memcmp(&lhs.storage, &rhs.storage, Int(lhs.storage.size)) == 0
| `- error: cannot find 'memcmp' in scope
740 | }
741 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:749:19: error: cannot find 'sockaddr_storage' in scope
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
| `- error: cannot find 'sockaddr_storage' in scope
750 | }
751 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:764:7: warning: no calls to throwing functions occur within 'try' expression
762 | public var presentationAddress: String {
763 | get throws {
764 | try storage.presentationAddress
| `- warning: no calls to throwing functions occur within 'try' expression
765 | }
766 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:770:7: warning: no calls to throwing functions occur within 'try' expression
768 | public var presentationAddressNoPort: String {
769 | get throws {
770 | try storage.presentationAddressNoPort
| `- warning: no calls to throwing functions occur within 'try' expression
771 | }
772 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:776:7: warning: no calls to throwing functions occur within 'try' expression
774 | public var port: UInt16 {
775 | get throws {
776 | try storage.port
| `- warning: no calls to throwing functions occur within 'try' expression
777 | }
778 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:87:29: error: cannot find type 'sa_family_t' in scope
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
87 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
88 | sa_family_t(AF_UNSPEC)
89 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:91:23: error: cannot find type 'sa_family_t' in scope
89 | }
90 |
91 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
92 | throw Errno.invalidArgument
93 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:95:20: error: cannot find type 'socklen_t' in scope
93 | }
94 |
95 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
96 | switch Int32(sa_family) {
97 | case AF_INET:
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:114:25: error: cannot find type 'sockaddr_storage' in scope
112 | }
113 |
114 | private var _storage: sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
115 | asStorage()
116 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:136:60: error: cannot find type 'sockaddr' in scope
134 | }
135 |
136 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
137 | try withUnsafePointer(to: self) { sa in
138 | try body(sa)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:142:83: error: cannot find type 'sockaddr' in scope
140 | }
141 |
142 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
143 | -> T
144 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:152:29: error: cannot find type 'sa_family_t' in scope
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
152 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
153 | sa_family_t(AF_INET)
154 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:156:23: error: cannot find type 'sa_family_t' in scope
154 | }
155 |
156 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
157 | guard family == AF_INET else { throw Errno.invalidArgument }
158 | self = sockaddr_in()
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:177:20: error: cannot find type 'socklen_t' in scope
175 | }
176 |
177 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
178 | socklen_t(MemoryLayout<Self>.size)
179 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:208:60: error: cannot find type 'sockaddr' in scope
206 | }
207 |
208 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
209 | try withUnsafePointer(to: self) { sin in
210 | try sin.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:216:83: error: cannot find type 'sockaddr' in scope
214 | }
215 |
216 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
217 | -> T
218 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:228:29: error: cannot find type 'sa_family_t' in scope
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
228 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
229 | sa_family_t(AF_INET6)
230 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:232:23: error: cannot find type 'sa_family_t' in scope
230 | }
231 |
232 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
233 | guard family == AF_INET6 else { throw Errno.invalidArgument }
234 | self = sockaddr_in6()
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:253:20: error: cannot find type 'socklen_t' in scope
251 | }
252 |
253 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
254 | socklen_t(MemoryLayout<Self>.size)
255 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:284:60: error: cannot find type 'sockaddr' in scope
282 | }
283 |
284 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
285 | try withUnsafePointer(to: self) { sin6 in
286 | try sin6.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:292:83: error: cannot find type 'sockaddr' in scope
290 | }
291 |
292 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
293 | -> T
294 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:304:29: error: cannot find type 'sa_family_t' in scope
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
304 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
305 | sa_family_t(AF_LOCAL)
306 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:308:23: error: cannot find type 'sa_family_t' in scope
306 | }
307 |
308 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
309 | guard family == AF_LOCAL else { throw Errno.invalidArgument }
310 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:340:20: error: cannot find type 'socklen_t' in scope
338 | }
339 |
340 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
341 | socklen_t(MemoryLayout<Self>.size)
342 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:370:60: error: cannot find type 'sockaddr' in scope
368 | }
369 |
370 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
371 | try withUnsafePointer(to: self) { sun in
372 | try sun.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:378:83: error: cannot find type 'sockaddr' in scope
376 | }
377 |
378 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
379 | -> T
380 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:531:29: error: cannot find type 'sa_family_t' in scope
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
531 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
532 | sa_family_t(AF_UNSPEC)
533 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:535:23: error: cannot find type 'sa_family_t' in scope
533 | }
534 |
535 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
536 | var ss = Self()
537 | switch Int32(family) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:561:20: error: cannot find type 'socklen_t' in scope
559 | }
560 |
561 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
562 | socklen_t(MemoryLayout<Self>.size)
563 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:668:60: error: cannot find type 'sockaddr' in scope
666 | }
667 |
668 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
669 | try withUnsafePointer(to: self) { ss in
670 | try ss.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:676:83: error: cannot find type 'sockaddr' in scope
674 | }
675 |
676 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
677 | -> T
678 | ) rethrows -> T {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/32] Compiling SystemPackage Syscalls.swift
[3/32] Compiling SystemPackage WindowsSyscallAdapters.swift
[4/32] Compiling SystemPackage MachPort.swift
[5/32] Compiling SystemPackage PlatformString.swift
[6/36] Compiling SystemPackage FilePathWindows.swift
[7/36] Compiling SystemPackage FilePermissions.swift
[8/36] Compiling SystemPackage IOCompletion.swift
[9/36] Compiling SystemPackage IORequest.swift
[10/36] Compiling SystemPackage IORing.swift
[11/36] Compiling SystemPackage RawIORequest.swift
[12/36] Compiling SystemPackage Backcompat.swift
[13/36] Compiling SystemPackage CInterop.swift
[14/36] Compiling SystemPackage FilePathSyntax.swift
[15/36] Compiling SystemPackage FilePathTemp.swift
[16/36] Compiling SystemPackage FilePathTempPosix.swift
[17/36] Compiling SystemPackage FilePathTempWindows.swift
[18/36] Emitting module SystemPackage
[19/36] Compiling SystemPackage Errno.swift
[20/36] Compiling SystemPackage ErrnoWindows.swift
[21/36] Compiling SystemPackage FileDescriptor.swift
[22/36] Compiling SystemPackage FileHelpers.swift
[23/36] Compiling SystemPackage FileOperations.swift
[24/36] Compiling SystemPackage SystemString.swift
[25/36] Compiling SystemPackage Util+StringArray.swift
[26/36] Compiling SystemPackage Util.swift
[27/36] Compiling SystemPackage UtilConsumers.swift
[28/36] Compiling SystemPackage Constants.swift
[29/36] Compiling SystemPackage Exports.swift
[30/36] Compiling SystemPackage Mocking.swift
[31/36] Compiling SystemPackage RawBuffer.swift
[32/36] Compiling SystemPackage FilePath.swift
[33/36] Compiling SystemPackage FilePathComponentView.swift
[34/36] Compiling SystemPackage FilePathComponents.swift
[35/36] Compiling SystemPackage FilePathParsing.swift
[36/36] Compiling SystemPackage FilePathString.swift
[38/40] Compiling SocketAddress Utils.swift
/host/spi-builder-workspace/Sources/SocketAddress/Utils.swift:36:49: error: cannot find 'errno' in scope
34 | }
35 |
36 | static var lastError: Errno { Errno(rawValue: errno) }
| `- error: cannot find 'errno' in scope
37 | }
38 |
[39/40] Compiling SocketAddress SocketAddress.swift
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:55:22: error: cannot find type 'sa_family_t' in scope
53 |
54 | public protocol SocketAddress: Sendable {
55 | static var family: sa_family_t { get }
| `- error: cannot find type 'sa_family_t' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:57:16: error: cannot find type 'sa_family_t' in scope
55 | static var family: sa_family_t { get }
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
| `- error: cannot find type 'sa_family_t' in scope
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:58:53: error: cannot find type 'sockaddr' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
| `- error: cannot find type 'sockaddr' in scope
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
60 | -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:59:76: error: cannot find type 'sockaddr' in scope
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
60 | -> T
61 | ) rethrows -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:67:13: error: cannot find type 'socklen_t' in scope
65 |
66 | var port: UInt16 { get throws }
67 | var size: socklen_t { get }
| `- error: cannot find type 'socklen_t' in scope
68 | }
69 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:71:15: error: cannot find type 'sa_family_t' in scope
69 |
70 | public extension SocketAddress {
71 | var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
72 | withSockAddr { $0.pointee.sa_family }
73 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:77:23: error: cannot find type 'sockaddr_storage' in scope
75 |
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:86:11: error: cannot find type 'sockaddr' in scope
84 | }
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr' in scope
87 | public static var family: sa_family_t {
88 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:151:11: error: cannot find type 'sockaddr_in' in scope
149 | }
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in' in scope
152 | public static var family: sa_family_t {
153 | sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:227:11: error: cannot find type 'sockaddr_in6' in scope
225 | }
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in6' in scope
228 | public static var family: sa_family_t {
229 | sa_family_t(AF_INET6)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:303:11: error: cannot find type 'sockaddr_un' in scope
301 | }
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_un' in scope
304 | public static var family: sa_family_t {
305 | sa_family_t(AF_LOCAL)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:530:11: error: cannot find type 'sockaddr_storage' in scope
528 | #endif
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_storage' in scope
531 | public static var family: sa_family_t {
532 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:687:18: error: cannot find type 'sockaddr_storage' in scope
685 | }
686 |
687 | public extension sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
688 | init(bytes: [UInt8]) throws {
689 | guard bytes.count >= MemoryLayout<sockaddr>.size else {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:723:24: error: cannot find type 'sockaddr_storage' in scope
721 |
722 | public struct AnySocketAddress: Sendable {
723 | private var storage: sockaddr_storage
| `- error: cannot find type 'sockaddr_storage' in scope
724 |
725 | public init(_ sa: any SocketAddress) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:744:29: error: cannot find type 'sa_family_t' in scope
742 |
743 | extension AnySocketAddress: SocketAddress {
744 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
745 | sa_family_t(AF_UNSPEC)
746 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:748:23: error: cannot find type 'sa_family_t' in scope
746 | }
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
750 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:752:60: error: cannot find type 'sockaddr' in scope
750 | }
751 |
752 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
753 | try storage.withSockAddr(body)
754 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:756:83: error: cannot find type 'sockaddr' in scope
754 | }
755 |
756 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
757 | -> T
758 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:780:20: error: cannot find type 'socklen_t' in scope
778 | }
779 |
780 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
781 | storage.size
782 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:78:14: error: cannot find 'sockaddr_storage' in scope
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
78 | var ss = sockaddr_storage()
| `- error: cannot find 'sockaddr_storage' in scope
79 | withSockAddr {
80 | _ = memcpy(&ss, $0, Int(size))
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:80:11: error: cannot find 'memcpy' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
80 | _ = memcpy(&ss, $0, Int(size))
| `- error: cannot find 'memcpy' in scope
81 | }
82 | return ss
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:730:19: error: cannot find 'sockaddr_storage' in scope
728 |
729 | public init(bytes: [UInt8]) throws {
730 | storage = try sockaddr_storage(bytes: bytes)
| `- error: cannot find 'sockaddr_storage' in scope
731 | }
732 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:739:7: error: cannot find 'memcmp' in scope
737 | var rhs = rhs
738 | return lhs.storage.size == rhs.storage.size &&
739 | memcmp(&lhs.storage, &rhs.storage, Int(lhs.storage.size)) == 0
| `- error: cannot find 'memcmp' in scope
740 | }
741 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:749:19: error: cannot find 'sockaddr_storage' in scope
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
| `- error: cannot find 'sockaddr_storage' in scope
750 | }
751 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:764:7: warning: no calls to throwing functions occur within 'try' expression
762 | public var presentationAddress: String {
763 | get throws {
764 | try storage.presentationAddress
| `- warning: no calls to throwing functions occur within 'try' expression
765 | }
766 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:770:7: warning: no calls to throwing functions occur within 'try' expression
768 | public var presentationAddressNoPort: String {
769 | get throws {
770 | try storage.presentationAddressNoPort
| `- warning: no calls to throwing functions occur within 'try' expression
771 | }
772 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:776:7: warning: no calls to throwing functions occur within 'try' expression
774 | public var port: UInt16 {
775 | get throws {
776 | try storage.port
| `- warning: no calls to throwing functions occur within 'try' expression
777 | }
778 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:87:29: error: cannot find type 'sa_family_t' in scope
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
87 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
88 | sa_family_t(AF_UNSPEC)
89 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:91:23: error: cannot find type 'sa_family_t' in scope
89 | }
90 |
91 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
92 | throw Errno.invalidArgument
93 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:95:20: error: cannot find type 'socklen_t' in scope
93 | }
94 |
95 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
96 | switch Int32(sa_family) {
97 | case AF_INET:
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:114:25: error: cannot find type 'sockaddr_storage' in scope
112 | }
113 |
114 | private var _storage: sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
115 | asStorage()
116 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:136:60: error: cannot find type 'sockaddr' in scope
134 | }
135 |
136 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
137 | try withUnsafePointer(to: self) { sa in
138 | try body(sa)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:142:83: error: cannot find type 'sockaddr' in scope
140 | }
141 |
142 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
143 | -> T
144 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:152:29: error: cannot find type 'sa_family_t' in scope
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
152 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
153 | sa_family_t(AF_INET)
154 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:156:23: error: cannot find type 'sa_family_t' in scope
154 | }
155 |
156 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
157 | guard family == AF_INET else { throw Errno.invalidArgument }
158 | self = sockaddr_in()
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:177:20: error: cannot find type 'socklen_t' in scope
175 | }
176 |
177 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
178 | socklen_t(MemoryLayout<Self>.size)
179 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:208:60: error: cannot find type 'sockaddr' in scope
206 | }
207 |
208 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
209 | try withUnsafePointer(to: self) { sin in
210 | try sin.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:216:83: error: cannot find type 'sockaddr' in scope
214 | }
215 |
216 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
217 | -> T
218 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:228:29: error: cannot find type 'sa_family_t' in scope
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
228 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
229 | sa_family_t(AF_INET6)
230 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:232:23: error: cannot find type 'sa_family_t' in scope
230 | }
231 |
232 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
233 | guard family == AF_INET6 else { throw Errno.invalidArgument }
234 | self = sockaddr_in6()
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:253:20: error: cannot find type 'socklen_t' in scope
251 | }
252 |
253 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
254 | socklen_t(MemoryLayout<Self>.size)
255 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:284:60: error: cannot find type 'sockaddr' in scope
282 | }
283 |
284 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
285 | try withUnsafePointer(to: self) { sin6 in
286 | try sin6.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:292:83: error: cannot find type 'sockaddr' in scope
290 | }
291 |
292 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
293 | -> T
294 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:304:29: error: cannot find type 'sa_family_t' in scope
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
304 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
305 | sa_family_t(AF_LOCAL)
306 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:308:23: error: cannot find type 'sa_family_t' in scope
306 | }
307 |
308 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
309 | guard family == AF_LOCAL else { throw Errno.invalidArgument }
310 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:340:20: error: cannot find type 'socklen_t' in scope
338 | }
339 |
340 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
341 | socklen_t(MemoryLayout<Self>.size)
342 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:370:60: error: cannot find type 'sockaddr' in scope
368 | }
369 |
370 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
371 | try withUnsafePointer(to: self) { sun in
372 | try sun.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:378:83: error: cannot find type 'sockaddr' in scope
376 | }
377 |
378 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
379 | -> T
380 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:531:29: error: cannot find type 'sa_family_t' in scope
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
531 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
532 | sa_family_t(AF_UNSPEC)
533 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:535:23: error: cannot find type 'sa_family_t' in scope
533 | }
534 |
535 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
536 | var ss = Self()
537 | switch Int32(family) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:561:20: error: cannot find type 'socklen_t' in scope
559 | }
560 |
561 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
562 | socklen_t(MemoryLayout<Self>.size)
563 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:668:60: error: cannot find type 'sockaddr' in scope
666 | }
667 |
668 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
669 | try withUnsafePointer(to: self) { ss in
670 | try ss.withMemoryRebound(to: sockaddr.self, capacity: 1) { sa in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:676:83: error: cannot find type 'sockaddr' in scope
674 | }
675 |
676 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
677 | -> T
678 | ) rethrows -> T {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/40] Emitting module SocketAddress
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:55:22: error: cannot find type 'sa_family_t' in scope
53 |
54 | public protocol SocketAddress: Sendable {
55 | static var family: sa_family_t { get }
| `- error: cannot find type 'sa_family_t' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:57:16: error: cannot find type 'sa_family_t' in scope
55 | static var family: sa_family_t { get }
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
| `- error: cannot find type 'sa_family_t' in scope
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:58:53: error: cannot find type 'sockaddr' in scope
56 |
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
| `- error: cannot find type 'sockaddr' in scope
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
60 | -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:59:76: error: cannot find type 'sockaddr' in scope
57 | init(family: sa_family_t, presentationAddress: String) throws
58 | func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T
59 | mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
60 | -> T
61 | ) rethrows -> T
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:67:13: error: cannot find type 'socklen_t' in scope
65 |
66 | var port: UInt16 { get throws }
67 | var size: socklen_t { get }
| `- error: cannot find type 'socklen_t' in scope
68 | }
69 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:71:15: error: cannot find type 'sa_family_t' in scope
69 |
70 | public extension SocketAddress {
71 | var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
72 | withSockAddr { $0.pointee.sa_family }
73 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:77:23: error: cannot find type 'sockaddr_storage' in scope
75 |
76 | public extension SocketAddress {
77 | func asStorage() -> sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
78 | var ss = sockaddr_storage()
79 | withSockAddr {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:86:11: error: cannot find type 'sockaddr' in scope
84 | }
85 |
86 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr' in scope
87 | public static var family: sa_family_t {
88 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:151:11: error: cannot find type 'sockaddr_in' in scope
149 | }
150 |
151 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in' in scope
152 | public static var family: sa_family_t {
153 | sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:227:11: error: cannot find type 'sockaddr_in6' in scope
225 | }
226 |
227 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_in6' in scope
228 | public static var family: sa_family_t {
229 | sa_family_t(AF_INET6)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:303:11: error: cannot find type 'sockaddr_un' in scope
301 | }
302 |
303 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_un' in scope
304 | public static var family: sa_family_t {
305 | sa_family_t(AF_LOCAL)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:530:11: error: cannot find type 'sockaddr_storage' in scope
528 | #endif
529 |
530 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
| `- error: cannot find type 'sockaddr_storage' in scope
531 | public static var family: sa_family_t {
532 | sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:687:18: error: cannot find type 'sockaddr_storage' in scope
685 | }
686 |
687 | public extension sockaddr_storage {
| `- error: cannot find type 'sockaddr_storage' in scope
688 | init(bytes: [UInt8]) throws {
689 | guard bytes.count >= MemoryLayout<sockaddr>.size else {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:723:24: error: cannot find type 'sockaddr_storage' in scope
721 |
722 | public struct AnySocketAddress: Sendable {
723 | private var storage: sockaddr_storage
| `- error: cannot find type 'sockaddr_storage' in scope
724 |
725 | public init(_ sa: any SocketAddress) {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:744:29: error: cannot find type 'sa_family_t' in scope
742 |
743 | extension AnySocketAddress: SocketAddress {
744 | public static var family: sa_family_t {
| `- error: cannot find type 'sa_family_t' in scope
745 | sa_family_t(AF_UNSPEC)
746 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:748:23: error: cannot find type 'sa_family_t' in scope
746 | }
747 |
748 | public init(family: sa_family_t, presentationAddress: String) throws {
| `- error: cannot find type 'sa_family_t' in scope
749 | storage = try sockaddr_storage(family: family, presentationAddress: presentationAddress)
750 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:752:60: error: cannot find type 'sockaddr' in scope
750 | }
751 |
752 | public func withSockAddr<T>(_ body: (_ sa: UnsafePointer<sockaddr>) throws -> T) rethrows -> T {
| `- error: cannot find type 'sockaddr' in scope
753 | try storage.withSockAddr(body)
754 | }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:756:83: error: cannot find type 'sockaddr' in scope
754 | }
755 |
756 | public mutating func withMutableSockAddr<T>(_ body: (_ sa: UnsafeMutablePointer<sockaddr>) throws
| `- error: cannot find type 'sockaddr' in scope
757 | -> T
758 | ) rethrows -> T {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:780:20: error: cannot find type 'socklen_t' in scope
778 | }
779 |
780 | public var size: socklen_t {
| `- error: cannot find type 'socklen_t' in scope
781 | storage.size
782 | }
BUILD FAILURE 6.1 wasm