The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftOpenAI, reference main (5e67a2), with Swift 6.4 for Wasm on 27 Nov 2026 06:14:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zxss702/SwiftOpenAI.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/zxss702/SwiftOpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5e67a2b Merge branch 'main' of https://github.com/zxss702/SwiftOpenAI
Cloned https://github.com/zxss702/SwiftOpenAI.git
Revision (git rev-parse @):
5e67a2b89561bcb755de00d6734bbd78f40b25f4
SUCCESS checkout https://github.com/zxss702/SwiftOpenAI.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/zxss702/SwiftOpenAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:6e96de89237e7c0ea2deedfd5eb0c8fe8422d29c0e185f62352b98a0ea224104
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-crypto.git
[1/19023] Fetching swift-crypto
[382/35834] Fetching swift-crypto, async-http-client
[20427/118248] Fetching swift-crypto, async-http-client, swift-syntax
[34249/205468] Fetching swift-crypto, async-http-client, swift-syntax, swift-nio
Fetched https://github.com/apple/swift-crypto.git (3.56s)
Fetched https://github.com/swift-server/async-http-client.git (3.80s)
Fetched https://github.com/swiftlang/swift-syntax.git (3.83s)
Fetched https://github.com/apple/swift-nio.git (3.85s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (4.77s)
Fetching https://github.com/apple/swift-asn1.git
[1/2088] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.39s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (0.64s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.37.1 (0.15s)
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-configuration.git
[1/1575] Fetching swift-service-context
[1576/7772] Fetching swift-service-context, swift-algorithms
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio-http2.git
[1824/14522] Fetching swift-service-context, swift-algorithms, swift-distributed-tracing
[1949/18790] Fetching swift-service-context, swift-algorithms, swift-distributed-tracing, swift-configuration
Fetched https://github.com/apple/swift-algorithms.git (0.54s)
Fetched https://github.com/apple/swift-configuration.git (0.54s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/apple/swift-distributed-tracing.git (0.55s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/1936] Fetching swift-atomics
Fetched https://github.com/apple/swift-service-context.git (0.86s)
Fetching https://github.com/apple/swift-log.git
[1/2881] Fetching swift-nio-transport-services
[434/15322] Fetching swift-nio-transport-services, swift-nio-http2
[579/22112] Fetching swift-nio-transport-services, swift-nio-http2, swift-nio-extras
Fetched https://github.com/apple/swift-nio-transport-services.git (0.42s)
[6167/19231] Fetching swift-nio-http2, swift-nio-extras
[6372/36237] Fetching swift-nio-http2, swift-nio-extras, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git (0.52s)
[5363/29447] Fetching swift-nio-http2, swift-nio-ssl
[14143/38031] Fetching swift-nio-http2, swift-nio-ssl, swift-log
Fetched https://github.com/apple/swift-atomics.git (1.04s)
Fetched https://github.com/apple/swift-nio-http2.git (1.04s)
[14196/25590] Fetching swift-nio-ssl, swift-log
Fetched https://github.com/apple/swift-log.git (0.55s)
[5783/17006] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git (1.37s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.09s)
Fetching https://github.com/apple/swift-numerics.git
[1/6862] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.58s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.72s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.13s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.14s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.5.1 (0.13s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.7.4 (0.14s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.5.0 (0.78s)
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/2937] Fetching swift-service-lifecycle
Fetched https://github.com/swift-server/swift-service-lifecycle (0.47s)
[1/30565] Fetching swift-collections
[23537/38166] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system (1.05s)
Fetched https://github.com/apple/swift-collections (1.23s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.13.0 (1.37s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/7047] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (0.54s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.72s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.6 (0.22s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.2 (0.14s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.105.2 (0.26s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.1 (0.15s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.5 (0.31s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.9.0 (0.17s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.8 (0.18s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.3 (0.25s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-types.git
[1/1990] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git (0.42s)
[1/7691] Fetching swift-certificates
[78/8975] Fetching swift-certificates, swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git (0.60s)
Fetched https://github.com/apple/swift-certificates.git (0.60s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.75s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.17s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.2 (0.20s)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.6
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.2
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.5
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.105.2
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.3
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.37.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.1
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.7.4
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.5.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle
Working copy of https://github.com/swift-server/swift-service-lifecycle resolved at 2.13.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.17.2
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.8
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.9.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.4.0-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.4.0-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz (0.16s)
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1617]
[Planning 1090 / 1617]
[Planning deferred tasks]
[Constructing 1248 / 4179]
[Starting]
[218 / 1271]
[234 / 1328] SystemPackage
[235 / 1328] _NIOBase64
[253 / 1328] NIOConcurrencyHelpers
[264 / 1328] SystemPackage
[264 / 1328] SwiftOpenAIMacros
[271 / 1328] SwiftASN1
[272 / 1328] _NIODataStructures
[279 / 1328] SystemPackage-product
[283 / 1329] SwiftOpenAIMacros
[286 / 1329] _NIOBase64
[290 / 1330] _NIODataStructures
[292 / 1330] _NIODataStructures
[293 / 1330] SystemPackage
[296 / 1331] _NIODataStructures
[300 / 1331] SystemPackage
[302 / 1331] RealModule
[305 / 1331] RealModule-product
[310 / 1331] NIOConcurrencyHelpers
[315 / 1333] SwiftASN1
[321 / 1333] SwiftASN1
[325 / 1333] Logging
[329 / 1337] InternalCollectionsUtilities
[335 / 1362] InternalCollectionsUtilities
[344 / 1362] InternalCollectionsUtilities
[348 / 1363] Logging
[350 / 1363] Logging
[352 / 1363] Logging
[363 / 1363] SpanPreview
[373 / 1365] InternalCollectionsUtilities
[376 / 1365] Algorithms
[395 / 1367] CNIOLinux
[407 / 1376] CNIOExtrasZlib
[410 / 1376] CNIOExtrasZlib
[420 / 1377] CryptoBoringWrapper
[421 / 1377] CNIOLLHTTP
[426 / 1377] CNIOBoringSSL
[427 / 1377] CNIOBoringSSL
[429 / 1377] CNIOBoringSSL
[434 / 1377] Atomics
[446 / 1377] CNIOBoringSSL
[449 / 1377] CNIOBoringSSL
[454 / 1377] CNIOBoringSSL
[456 / 1377] CNIOBoringSSL
[460 / 1377] CNIOBoringSSL
[463 / 1377] CNIOBoringSSL
[470 / 1377] CNIOBoringSSL
[474 / 1377] CNIOBoringSSL
[479 / 1377] CNIOBoringSSL
[482 / 1377] CNIOBoringSSL
[486 / 1377] CNIOBoringSSL
[488 / 1377] CNIOBoringSSL
[492 / 1377] CNIOBoringSSL
[494 / 1377] CNIOBoringSSL
[496 / 1377] CNIOBoringSSL
[497 / 1377] CNIOBoringSSL
[500 / 1377] CNIOBoringSSL
[503 / 1377] CNIOBoringSSL
[506 / 1377] CNIOBoringSSL
[508 / 1377] CNIOBoringSSL
[510 / 1377] CNIOBoringSSL
[512 / 1377] CNIOBoringSSL
[516 / 1377] CNIOBoringSSL
[520 / 1377] CNIOBoringSSL
[522 / 1377] CNIOBoringSSL
[524 / 1377] CNIOBoringSSL
[528 / 1377] CNIOBoringSSL
[530 / 1377] CNIOBoringSSL
[531 / 1377] CNIOBoringSSL
[534 / 1377] CNIOBoringSSL
[535 / 1377] CNIOBoringSSL
[538 / 1377] CNIOBoringSSL
[541 / 1377] CNIOBoringSSL
[543 / 1377] CNIOBoringSSL
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc:31:10: fatal error: 'netdb.h' file not found
   31 | #include <netdb.h>
      |          ^~~~~~~~~
1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.o /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.dia -c /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.o
[545 / 1377] CNIOBoringSSL
error: Build failed
BUILD FAILURE 6.4 wasm