The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SocketAddress, reference 0.5.2 (d92d1a), with Swift 6.4 for Wasm on 26 Sep 2026 02:40:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PADL/SocketAddress.git
Reference: 0.5.2
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.5.2      -> FETCH_HEAD
HEAD is now at d92d1ae CLinuxSockAddr: expose <linux/filter.h>
Cloned https://github.com/PADL/SocketAddress.git
Revision (git rev-parse @):
d92d1ae9edfce7df18214e7eb44ecf711b7defaa
SUCCESS checkout https://github.com/PADL/SocketAddress.git at 0.5.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/PADL/SocketAddress.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-system
[1/6983] Fetching swift-system
Fetched https://github.com/apple/swift-system (0.74s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.99s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/SocketAddress/CMakeLists.txt
Building for debugging...
[Pre-planning 1 / 128]
[35 / 50] SystemPackage
[45 / 55] SocketAddress
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:63:42: error: cannot find type 'sa_family_t' in scope
 61 | }
 62 |
 63 | private func getSizesForFamily(_ family: sa_family_t) throws -> (Int, Int) {
    |                                          `- error: cannot find type 'sa_family_t' in scope
 64 |   switch Int32(family) {
 65 |   case AF_INET:
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:83:66: error: cannot find type 'socklen_t' in scope
 81 | }
 82 |
 83 | private func getSizesForFamily(_ family: sa_family_t) throws -> (socklen_t, socklen_t) {
    |                                                                  `- error: cannot find type 'socklen_t' in scope
 84 |   let sizes: (Int, Int) = try getSizesForFamily(family)
 85 |   return (socklen_t(sizes.0), socklen_t(sizes.1))
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:83:77: error: cannot find type 'socklen_t' in scope
 81 | }
 82 |
 83 | private func getSizesForFamily(_ family: sa_family_t) throws -> (socklen_t, socklen_t) {
    |                                                                             `- error: cannot find type 'socklen_t' in scope
 84 |   let sizes: (Int, Int) = try getSizesForFamily(family)
 85 |   return (socklen_t(sizes.0), socklen_t(sizes.1))
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:83:42: error: cannot find type 'sa_family_t' in scope
 81 | }
 82 |
 83 | private func getSizesForFamily(_ family: sa_family_t) throws -> (socklen_t, socklen_t) {
    |                                          `- error: cannot find type 'sa_family_t' in scope
 84 |   let sizes: (Int, Int) = try getSizesForFamily(family)
 85 |   return (socklen_t(sizes.0), socklen_t(sizes.1))
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:89:22: error: cannot find type 'sa_family_t' in scope
 87 |
 88 | public protocol SocketAddress: Sendable {
 89 |   static var family: sa_family_t { get }
    |                      `- error: cannot find type 'sa_family_t' in scope
 90 |
 91 |   init(family: sa_family_t, presentationAddress: String) throws
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:91:16: error: cannot find type 'sa_family_t' in scope
 89 |   static var family: sa_family_t { get }
 90 |
 91 |   init(family: sa_family_t, presentationAddress: String) throws
    |                `- error: cannot find type 'sa_family_t' in scope
 92 |   #if compiler(>=6.0)
 93 |   mutating func withMutableSockAddr<T, E: Error>(
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:94:35: error: cannot find type 'sockaddr' in scope
 92 |   #if compiler(>=6.0)
 93 |   mutating func withMutableSockAddr<T, E: Error>(
 94 |     _ body: (UnsafeMutablePointer<sockaddr>, socklen_t) throws(E) -> T
    |                                   `- error: cannot find type 'sockaddr' in scope
 95 |   ) throws(E) -> T
 96 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:94:46: error: cannot find type 'socklen_t' in scope
 92 |   #if compiler(>=6.0)
 93 |   mutating func withMutableSockAddr<T, E: Error>(
 94 |     _ body: (UnsafeMutablePointer<sockaddr>, socklen_t) throws(E) -> T
    |                                              `- error: cannot find type 'socklen_t' in scope
 95 |   ) throws(E) -> T
 96 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:102:28: error: cannot find type 'sockaddr' in scope
100 |   #if compiler(>=6.0)
101 |   func withSockAddr<R, E: Error>(
102 |     _ body: (UnsafePointer<sockaddr>, socklen_t) throws(E) -> R
    |                            `- error: cannot find type 'sockaddr' in scope
103 |   ) throws(E) -> R
104 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:102:39: error: cannot find type 'socklen_t' in scope
100 |   #if compiler(>=6.0)
101 |   func withSockAddr<R, E: Error>(
102 |     _ body: (UnsafePointer<sockaddr>, socklen_t) throws(E) -> R
    |                                       `- error: cannot find type 'socklen_t' in scope
103 |   ) throws(E) -> R
104 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:111:13: error: cannot find type 'socklen_t' in scope
109 |
110 |   var port: UInt16 { get throws }
111 |   var size: socklen_t { get }
    |             `- error: cannot find type 'socklen_t' in scope
112 | }
113 |
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:115:15: error: cannot find type 'sa_family_t' in scope
113 |
114 | public extension SocketAddress {
115 |   var family: sa_family_t {
    |               `- error: cannot find type 'sa_family_t' in scope
116 |     withSockAddr { sa, _ in sa.pointee.sa_family }
117 |   }
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:121:23: error: cannot find type 'sockaddr_storage' in scope
119 |
120 | public extension SocketAddress {
121 |   func asStorage() -> sockaddr_storage {
    |                       `- error: cannot find type 'sockaddr_storage' in scope
122 |     var ss = sockaddr_storage()
123 |     withSockAddr { sa, _ in
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:130:11: error: cannot find type 'sockaddr' in scope
128 | }
129 |
130 | extension sockaddr: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr' in scope
131 |   public static var family: sa_family_t {
132 |     sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:205:11: error: cannot find type 'sockaddr_in' in scope
203 | }
204 |
205 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in' in scope
206 |   public static var family: sa_family_t {
207 |     sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:299:11: error: cannot find type 'sockaddr_in6' in scope
297 | }
298 |
299 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in6' in scope
300 |   public static var family: sa_family_t {
301 |     sa_family_t(AF_INET6)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:393:11: error: cannot find type 'sockaddr_un' in scope
391 | }
392 |
393 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_un' in scope
394 |   public static var family: sa_family_t {
395 |     sa_family_t(AF_LOCAL)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:679:11: error: cannot find type 'sockaddr_storage' in scope
677 | #endif
678 |
679 | extension sockaddr_storage: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_storage' in scope
680 |   public static var family: sa_family_t {
681 |     sa_family_t(AF_UNSPEC)
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:864:18: error: cannot find type 'sockaddr_storage' in scope
862 | }
863 |
864 | public extension sockaddr_storage {
    |                  `- error: cannot find type 'sockaddr_storage' in scope
865 |   init(bytes: [UInt8]) throws {
866 |     guard bytes.count >= MemoryLayout<sockaddr>.size else {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:895:29: error: cannot find type 'sa_family_t' in scope
893 |
894 | extension AnySocketAddress: SocketAddress {
895 |   public static var family: sa_family_t { sa_family_t(AF_UNSPEC) }
    |                             `- error: cannot find type 'sa_family_t' in scope
896 |
897 |   public init(family: sa_family_t, presentationAddress: String) throws {
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:897:23: error: cannot find type 'sa_family_t' in scope
895 |   public static var family: sa_family_t { sa_family_t(AF_UNSPEC) }
896 |
897 |   public init(family: sa_family_t, presentationAddress: String) throws {
    |                       `- error: cannot find type 'sa_family_t' in scope
898 |     switch Int32(family) {
899 |     case AF_INET:
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:918:35: error: cannot find type 'sockaddr' in scope
916 |   #if compiler(>=6.0)
917 |   public mutating func withMutableSockAddr<T, E: Error>(
918 |     _ body: (UnsafeMutablePointer<sockaddr>, socklen_t) throws(E) -> T
    |                                   `- error: cannot find type 'sockaddr' in scope
919 |   ) throws(E) -> T { try _sa.withMutableSockAddr(body) }
920 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:918:46: error: cannot find type 'socklen_t' in scope
916 |   #if compiler(>=6.0)
917 |   public mutating func withMutableSockAddr<T, E: Error>(
918 |     _ body: (UnsafeMutablePointer<sockaddr>, socklen_t) throws(E) -> T
    |                                              `- error: cannot find type 'socklen_t' in scope
919 |   ) throws(E) -> T { try _sa.withMutableSockAddr(body) }
920 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:929:28: error: cannot find type 'sockaddr' in scope
927 |   #if compiler(>=6.0)
928 |   public func withSockAddr<R, E: Error>(
929 |     _ body: (UnsafePointer<sockaddr>, socklen_t) throws(E) -> R
    |                            `- error: cannot find type 'sockaddr' in scope
930 |   ) throws(E) -> R { try _sa.withSockAddr(body) }
931 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:929:39: error: cannot find type 'socklen_t' in scope
927 |   #if compiler(>=6.0)
928 |   public func withSockAddr<R, E: Error>(
929 |     _ body: (UnsafePointer<sockaddr>, socklen_t) throws(E) -> R
    |                                       `- error: cannot find type 'socklen_t' in scope
930 |   ) throws(E) -> R { try _sa.withSockAddr(body) }
931 |   #else
/host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift:954:20: error: cannot find type 'socklen_t' in scope
952 |   }
953 |
954 |   public var size: socklen_t {
    |                    `- error: cannot find type 'socklen_t' in scope
955 |     _sa.size
956 |   }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SocketAddress/SocketAddress.swift /host/spi-builder-workspace/Sources/SocketAddress/Utils.swift /host/spi-builder-workspace/Sources/SocketAddress/WinSDKCompat.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/Sources/CLinuxSockAddr/module.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SocketAddress -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/SocketAddress_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/Modules/SocketAddress.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/Modules/SocketAddress.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/SocketAddress-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/SocketAddress-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/SocketAddress-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SocketAddress.build/Debug-webassembly-wasm32/SocketAddress-t.build/Objects-normal/wasm32/Modules/SocketAddress.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm