Build Information
Failed to build SwiftOpenaiApi, reference 5.0.0 (a485ed), with Swift 6.4 for Wasm on 27 Oct 2026 17:06:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/atacan/swift-openai-api.git
Reference: 5.0.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/atacan/swift-openai-api
* tag 5.0.0 -> FETCH_HEAD
HEAD is now at a485ed6 Merge pull request #9 from atacan/feature/transport-products-v5
Cloned https://github.com/atacan/swift-openai-api.git
Revision (git rev-parse @):
a485ed62e28c2cc475e9fa1b0a90d0c8c08b3675
SUCCESS checkout https://github.com/atacan/swift-openai-api.git at 5.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/atacan/swift-openai-api.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-openapi-runtime.git
Fetching https://github.com/apple/swift-openapi-generator.git
Fetching https://github.com/swift-server/swift-openapi-async-http-client
Fetching https://github.com/apple/swift-openapi-urlsession
[1/1259] Fetching swift-openapi-urlsession
[329/1908] Fetching swift-openapi-urlsession, swift-openapi-async-http-client
[355/3869] Fetching swift-openapi-urlsession, swift-openapi-async-http-client, swift-http-types
Fetched https://github.com/swift-server/swift-openapi-async-http-client (0.38s)
Fetched https://github.com/apple/swift-openapi-urlsession (0.39s)
[412/1961] Fetching swift-http-types
[1158/9225] Fetching swift-http-types, swift-openapi-runtime
Fetched https://github.com/apple/swift-http-types.git (0.47s)
[4577/7264] Fetching swift-openapi-runtime
[7265/26308] Fetching swift-openapi-runtime, swift-openapi-generator
Fetched https://github.com/apple/swift-openapi-runtime.git (0.94s)
Fetched https://github.com/apple/swift-openapi-generator.git (0.94s)
Computing version for https://github.com/swift-server/swift-openapi-async-http-client
Computed https://github.com/swift-server/swift-openapi-async-http-client at 1.5.0 (1.86s)
Fetching https://github.com/swift-server/async-http-client.git
[1/16517] Fetching async-http-client
Fetched https://github.com/swift-server/async-http-client.git (1.06s)
Computing version for https://github.com/apple/swift-openapi-generator.git
Computed https://github.com/apple/swift-openapi-generator.git at 1.14.3 (1.28s)
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/mattpolzin/OpenAPIKit
[1/11878] Fetching yams
[239/18037] Fetching yams, swift-algorithms
[9892/37350] Fetching yams, swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms (0.87s)
Fetched https://github.com/apple/swift-argument-parser (0.87s)
[1/186435] Fetching openapikit
Fetched https://github.com/jpsim/Yams (6.13s)
Fetched https://github.com/mattpolzin/OpenAPIKit (6.18s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (7.05s)
Fetching https://github.com/apple/swift-numerics.git
[1/6766] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.99s)
Computing version for https://github.com/mattpolzin/OpenAPIKit
Computed https://github.com/mattpolzin/OpenAPIKit at 6.4.0 (1.15s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.14s)
Computing version for https://github.com/apple/swift-openapi-runtime.git
Computed https://github.com/apple/swift-openapi-runtime.git at 1.13.3 (0.15s)
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-openapi-urlsession
Computed https://github.com/apple/swift-openapi-urlsession at 1.4.0 (0.21s)
Fetching https://github.com/apple/swift-collections
[1/29362] Fetching swift-collections
Fetched https://github.com/apple/swift-collections (2.02s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (2.18s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.36.2 (0.17s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-service-context.git
[1/4145] Fetching swift-configuration
[333/5691] Fetching swift-configuration, swift-service-context
Fetched https://github.com/apple/swift-configuration.git (0.53s)
Fetching https://github.com/apple/swift-nio-ssl.git
[1/8381] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.77s)
Fetching https://github.com/apple/swift-nio.git
[1/6710] Fetching swift-nio-extras
[3692/13407] Fetching swift-nio-extras, swift-distributed-tracing
[9120/30301] Fetching swift-nio-extras, swift-distributed-tracing, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git (1.33s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[8049/23591] Fetching swift-distributed-tracing, swift-nio-ssl
[12274/25484] Fetching swift-distributed-tracing, swift-nio-ssl, swift-atomics
Fetched https://github.com/apple/swift-service-context.git (1.80s)
Fetched https://github.com/apple/swift-atomics.git (1.80s)
Fetched https://github.com/apple/swift-distributed-tracing.git (1.81s)
Fetching https://github.com/apple/swift-nio-http2.git
[9630/16894] Fetching swift-nio-ssl
[11489/19761] Fetching swift-nio-ssl, swift-nio-transport-services
[15877/106452] Fetching swift-nio-ssl, swift-nio-transport-services, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git (0.61s)
[14024/103585] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git (1.88s)
[6069/86691] Fetching swift-nio
[6070/99010] Fetching swift-nio, swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git (1.07s)
[16472/86691] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git (7.75s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (8.67s)
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.16s)
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.14s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.7.2 (0.15s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.3.0 (0.20s)
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/7381] Fetching swift-system
[7382/10267] Fetching swift-system, swift-service-lifecycle
Fetched https://github.com/swift-server/swift-service-lifecycle (1.54s)
Fetched https://github.com/apple/swift-system (1.54s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (1.81s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.13.0 (0.14s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6825] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (1.61s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (1.80s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.5 (0.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.2 (0.16s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.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.5 (0.19s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (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.2 (0.27s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/7607] Fetching swift-certificates
[7608/8891] Fetching swift-certificates, swift-http-structured-headers
Fetched https://github.com/apple/swift-certificates.git (0.67s)
Fetched https://github.com/apple/swift-http-structured-headers.git (0.68s)
[1/2051] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (1.74s)
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 (1.89s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.19s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.1 (0.21s)
Fetching https://github.com/apple/swift-crypto.git
[1/18859] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.71s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.0.3 (1.95s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 6.2.2 (0.14s)
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.2
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-openapi-generator.git
Working copy of https://github.com/apple/swift-openapi-generator.git resolved at 1.14.3
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.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.3.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.3
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.2
Creating working copy for https://github.com/mattpolzin/OpenAPIKit
Working copy of https://github.com/mattpolzin/OpenAPIKit resolved at 6.4.0
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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.0
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/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 6.2.2
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-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.0.3
Creating working copy for https://github.com/apple/swift-openapi-runtime.git
Working copy of https://github.com/apple/swift-openapi-runtime.git resolved at 1.13.3
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.5
Creating working copy for https://github.com/swift-server/swift-openapi-async-http-client
Working copy of https://github.com/swift-server/swift-openapi-async-http-client resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.5
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.36.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
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/apple/swift-openapi-urlsession
Working copy of https://github.com/apple/swift-openapi-urlsession resolved at 1.4.0
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-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-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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.2
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
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 86]
[Pre-planning 1 / 1790]
[Planning 1367 / 1790]
[Planning deferred tasks]
[Constructing 1823 / 4151]
[124 / 956] NIOSOCKS
[267 / 993] SystemPackage
[268 / 1002] NIOConcurrencyHelpers
[269 / 1002] _NIOBase64
[282 / 1002] RealModule
[292 / 1002] SystemPackage
[303 / 1002] SystemPackage-product
[304 / 1002] SystemPackage-product
[308 / 1003] _NIOBase64
[312 / 1003] _NIOBase64
[317 / 1003] RealModule-product
[324 / 1004] SystemPackage
[332 / 1005] RealModule
[336 / 1006] Logging
[342 / 1018] Instrumentation
[349 / 1036] RealModule
[358 / 1036] InternalCollectionsUtilities
[361 / 1036] InternalCollectionsUtilities
[368 / 1037] Logging
[373 / 1037] HTTPTypes
[385 / 1038] SpanPreview
[388 / 1039]
[396 / 1045] Atomics
[408 / 1054] CNIOPosix
[419 / 1055] SpanPreview
[429 / 1055] OpenAPIRuntime
[438 / 1056] CNIOFreeBSD
[445 / 1056] CNIOExtrasZlib
[454 / 1056] CNIOBoringSSL
[461 / 1056] Atomics
[467 / 1056] CNIOBoringSSL
[481 / 1057] CNIOBoringSSL
[482 / 1057] CNIOBoringSSL
[484 / 1057] CNIOBoringSSL
[488 / 1057] CNIOBoringSSL
[490 / 1057] CNIOBoringSSL
[491 / 1057] CNIOBoringSSL
[498 / 1057] CNIOBoringSSL
[506 / 1057] CNIOBoringSSL
[507 / 1057] CNIOBoringSSL
[509 / 1057] CNIOBoringSSL
[511 / 1057] CNIOBoringSSL
[515 / 1057] CNIOBoringSSL
[516 / 1057] CNIOBoringSSL
[519 / 1057] CNIOBoringSSL
[523 / 1057] CNIOBoringSSL
[525 / 1057] CNIOBoringSSL
[527 / 1057] CNIOBoringSSL
[530 / 1057] CNIOBoringSSL
[534 / 1057] CNIOBoringSSL
[537 / 1057] CNIOBoringSSL
[538 / 1057] CNIOBoringSSL
[540 / 1057] CNIOBoringSSL
[545 / 1057] CNIOBoringSSL
[548 / 1057] CNIOBoringSSL
[550 / 1057] CNIOBoringSSL
[552 / 1057] CNIOBoringSSL
[555 / 1057] CNIOBoringSSL
[557 / 1057] CNIOBoringSSL
[560 / 1057] CNIOBoringSSL
[561 / 1057] CNIOBoringSSL
[563 / 1057] CNIOBoringSSL
[564 / 1057] CNIOBoringSSL
[566 / 1057] CNIOBoringSSL
[569 / 1057] CNIOBoringSSL
[571 / 1057] CNIOBoringSSL
[573 / 1057] CNIOBoringSSL
[575 / 1057] CNIOBoringSSL
[577 / 1057] CNIOBoringSSL
[1m/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc:30:10: [0m[0;1;31mfatal error: [0m[1m'netdb.h' file not found[0m
30 | #include <netdb.h>[0m
| [0;1;32m ^~~~~~~~~
[0m1 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
error: Build failed
BUILD FAILURE 6.4 wasm