Build Information
Failed to build Meridian, reference 0.4.0 (5f58ad), with Swift 6.1 for Wasm on 2 Mar 2026 18:06:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/khanlou/Meridian.git
Reference: 0.4.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/khanlou/Meridian
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 5f58adc add support for limited availability, optionals, and if statements in route builder
Cloned https://github.com/khanlou/Meridian.git
Revision (git rev-parse @):
5f58adca8511d6ed54cc527ba0ebf57483b59eff
SUCCESS checkout https://github.com/khanlou/Meridian.git at 0.4.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/khanlou/Meridian.git
https://github.com/khanlou/Meridian.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.64.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio"
},
{
"identity" : "websocket-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/websocket-kit.git"
},
{
"identity" : "swift-backtrace",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-backtrace.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "Meridian",
"name" : "Meridian",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Demo",
"targets" : [
"Demo"
],
"type" : {
"executable" : null
}
},
{
"name" : "Meridian",
"targets" : [
"Meridian"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MeridianTests",
"module_type" : "SwiftTarget",
"name" : "MeridianTests",
"path" : "MeridianTests",
"sources" : [
"CustomResponseHeaderTests.swift",
"CustomStatusCodeTests.swift",
"EmptyResponseTests.swift",
"EnvironmentTests.swift",
"HTTPMethodRouteTests.swift",
"HeaderRouteTests.swift",
"JSONBodyRouteTests.swift",
"JSONResponseTests.swift",
"JSONValueRouteTests.swift",
"OptionsTests.swift",
"QueryParameterRouteTests.swift",
"RedirectResponseTests.swift",
"RouteMatcherTests.swift",
"RouterTests.swift",
"TestHelpers.swift",
"URLBodyParameterRouteTests.swift",
"URLParameterRouteTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Meridian"
],
"type" : "test"
},
{
"c99name" : "Meridian",
"module_type" : "SwiftTarget",
"name" : "Meridian",
"path" : "Meridian",
"product_dependencies" : [
"NIO",
"NIOHTTP1",
"NIOWebSocket",
"WebSocketKit",
"ArgumentParser"
],
"product_memberships" : [
"Demo",
"Meridian"
],
"sources" : [
"BundledFiles.swift",
"Environment/EnvironmentValues.swift",
"Environment/JSONEnvironment.swift",
"Environment/LoopGroupEnvironment.swift",
"Environment/RouterEnvironment.swift",
"Environment/ServerNameEnvironment.swift",
"Errors/ErrorRenderer.swift",
"Errors/Errors.swift",
"HTTP/HTTPMethod.swift",
"HTTP/Headers.swift",
"HTTP/RequestHeader.swift",
"HTTP/StatusCode.swift",
"HTTPHandler.swift",
"HTTPRequestParsingHandler.swift",
"HeadMiddleware.swift",
"Middleware/Middleware.swift",
"Middleware/ResponseHydrationMiddleware.swift",
"OptionsMiddleware.swift",
"Property Wrappers/Body.swift",
"Property Wrappers/CustomParameter.swift",
"Property Wrappers/Environment.swift",
"Property Wrappers/Header.swift",
"Property Wrappers/JSONBody.swift",
"Property Wrappers/JSONValue.swift",
"Property Wrappers/Method.swift",
"Property Wrappers/Path.swift",
"Property Wrappers/QueryParameter.swift",
"Property Wrappers/ThreadEnvironment.swift",
"Property Wrappers/URI.swift",
"Property Wrappers/URLBodyParameter.swift",
"Property Wrappers/URLParameter.swift",
"Responder.swift",
"Response/AdditionalHeaderResponse.swift",
"Response/CORS.swift",
"Response/EmptyResponse.swift",
"Response/File.swift",
"Response/JSONResponse.swift",
"Response/Redirect.swift",
"Response/Response.swift",
"Response/ResponseWithDetails.swift",
"Response/StatusCodeResponse.swift",
"Response/StringResponse.swift",
"Response/WebSocket.swift",
"RouteBuilder.swift",
"RouteMatcher.swift",
"Router.swift",
"Server.swift",
"URLParameterKey.swift",
"WebSocketUpgrader.swift"
],
"type" : "library"
},
{
"c99name" : "Demo",
"module_type" : "SwiftTarget",
"name" : "Demo",
"path" : "Demo",
"product_dependencies" : [
"Backtrace"
],
"product_memberships" : [
"Demo"
],
"sources" : [
"Database.swift",
"Todos.swift",
"main.swift"
],
"target_dependencies" : [
"Meridian"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/vapor/websocket-kit.git
Fetching https://github.com/swift-server/swift-backtrace.git
Fetching https://github.com/apple/swift-nio
[1/631] Fetching swift-backtrace
[632/3283] Fetching swift-backtrace, websocket-kit
[2807/20465] Fetching swift-backtrace, websocket-kit, swift-argument-parser
Fetched https://github.com/swift-server/swift-backtrace.git from cache (0.33s)
[3512/19834] Fetching websocket-kit, swift-argument-parser
Fetched https://github.com/vapor/websocket-kit.git from cache (0.38s)
[1891/17182] Fetching swift-argument-parser
[17183/99781] Fetching swift-argument-parser, swift-nio
Fetched https://github.com/apple/swift-argument-parser from cache (7.51s)
Fetched https://github.com/apple/swift-nio from cache (7.65s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (10.35s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (0.63s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.16.1 (0.55s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/2821] Fetching swift-nio-transport-services
[1948/4641] Fetching swift-nio-transport-services, swift-atomics
[3423/11132] Fetching swift-nio-transport-services, swift-atomics, swift-nio-extras
Fetched https://github.com/apple/swift-atomics.git from cache (0.53s)
[1/15350] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.70s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.93s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.95s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.53s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.69s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.95.0 (1.18s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/20279] Fetching swift-collections
[1827/25867] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.21s)
Fetched https://github.com/apple/swift-collections.git from cache (1.23s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (2.02s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.92s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.66s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.32.1 (0.73s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/1766] Fetching swift-asn1
[196/4415] Fetching swift-asn1, swift-service-lifecycle
[4125/10473] Fetching swift-asn1, swift-service-lifecycle, swift-algorithms
[4538/16563] Fetching swift-asn1, swift-service-lifecycle, swift-algorithms, swift-log
[4720/23685] Fetching swift-asn1, swift-service-lifecycle, swift-algorithms, swift-log, swift-certificates
[5218/29831] Fetching swift-asn1, swift-service-lifecycle, swift-algorithms, swift-log, swift-certificates, swift-async-algorithms
Fetched https://github.com/apple/swift-asn1.git from cache (0.32s)
[7209/28065] Fetching swift-service-lifecycle, swift-algorithms, swift-log, swift-certificates, swift-async-algorithms
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.37s)
[13236/25416] Fetching swift-algorithms, swift-log, swift-certificates, swift-async-algorithms
Fetching https://github.com/apple/swift-http-types.git
[25346/26632] Fetching swift-algorithms, swift-log, swift-certificates, swift-async-algorithms, swift-http-structured-headers
[25578/27583] Fetching swift-algorithms, swift-log, swift-certificates, swift-async-algorithms, swift-http-structured-headers, swift-http-types
Fetched https://github.com/apple/swift-log.git from cache (0.68s)
[19938/21493] Fetching swift-algorithms, swift-certificates, swift-async-algorithms, swift-http-structured-headers, swift-http-types
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.70s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.70s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.71s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.36s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.43s)
[1/12000] Fetching swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.32s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.57s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.49s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.10.1 (1.23s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.2 (0.86s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (2.57s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.51s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.50s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.18.0 (0.65s)
Fetching https://github.com/apple/swift-crypto.git
[1/17245] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.03s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.6.0 (2.68s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.66s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.2.0 (2.33s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.40.0 (0.60s)
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.0
Creating working copy for https://github.com/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
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.5.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.18.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.10.1
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.2
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.95.0
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.40.0
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.32.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.10.1
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.16.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.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.6.0
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.36.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
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.26.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.5.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.2.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
Building for debugging...
[0/476] Compiling CBacktrace backtrace.c
[1/476] Compiling CBacktrace atomic.c
[2/476] Write sources
[4/476] Compiling CBacktrace dwarf.c
[5/476] Write sources
[22/476] Compiling CBacktrace print.c
[23/476] Compiling _AtomicsShims.c
[24/476] Compiling CNIOWindows shim.c
[25/476] Compiling CNIOWindows WSAStartup.c
[26/476] Compiling CNIOWASI CNIOWASI.c
[27/476] Compiling CNIOOpenBSD shim.c
[28/476] Compiling CNIOPosix event_loop_id.c
[29/476] Compiling CNIOSHA1 c_nio_sha1.c
[30/476] Compiling CNIOLinux liburing_shims.c
[31/476] Compiling CNIOLinux shim.c
[32/476] Compiling CNIOLLHTTP c_nio_http.c
[33/476] Compiling CNIODarwin shim.c
[34/476] Compiling CNIOLLHTTP c_nio_api.c
[35/476] Compiling fiat_p256_adx_sqr.S
[36/476] Write swift-version-24593BA9C3E375BF.txt
[37/476] Compiling fiat_p256_adx_mul.S
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/mem.cc:33:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[38/476] Compiling mem.cc
[38/476] Compiling a_i2d_fp.cc
[38/476] Compiling fiat_curve25519_adx_square.S
[38/476] Compiling a_gentm.cc
[38/476] Compiling CNIOBoringSSLShims shims.c
[38/476] Compiling a_int.cc
[38/476] Compiling CNIOLLHTTP c_nio_llhttp.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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/439] Compiling fiat_curve25519_adx_mul.S
[1/439] Compiling fiat_curve25519_adx_square.S
[2/439] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[3/439] Compiling tls_method.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[3/439] Compiling tls13_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[3/439] Compiling tls_record.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.cc:30:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
[3/439] Compiling tls13_client.cc
[3/439] Compiling CNIOLLHTTP c_nio_llhttp.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[3/439] Compiling tls13_server.cc
[3/439] Write swift-version-24593BA9C3E375BF.txt
[3/439] Compiling tls13_both.cc
BUILD FAILURE 6.1 wasm