Build Information
Failed to build raylib, reference main (662d67), with Swift 6.1 for Wasm on 31 Jan 2026 08:13:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/Lancelotbronner/raylib-build.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/Lancelotbronner/raylib-build
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 662d67e Started linux support
Cloned https://github.com/Lancelotbronner/raylib-build.git
Revision (git rev-parse @):
662d67e0d44324c900fc9a8fc4377d86121db825
SUCCESS checkout https://github.com/Lancelotbronner/raylib-build.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Lancelotbronner/raylib-build.git
https://github.com/Lancelotbronner/raylib-build.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "raylib",
"name" : "raylib",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "raylib",
"targets" : [
"raylib"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "raylib",
"module_type" : "ClangTarget",
"name" : "raylib",
"path" : "Sources/raylib",
"product_memberships" : [
"raylib"
],
"sources" : [
"external/glfw/cocoa_init.m",
"external/glfw/cocoa_joystick.m",
"external/glfw/cocoa_monitor.m",
"external/glfw/cocoa_time.c",
"external/glfw/cocoa_window.m",
"external/glfw/context.c",
"external/glfw/egl_context.c",
"external/glfw/glx_context.c",
"external/glfw/init.c",
"external/glfw/input.c",
"external/glfw/linux_joystick.c",
"external/glfw/monitor.c",
"external/glfw/nsgl_context.m",
"external/glfw/null_init.c",
"external/glfw/null_joystick.c",
"external/glfw/null_monitor.c",
"external/glfw/null_window.c",
"external/glfw/osmesa_context.c",
"external/glfw/platform.c",
"external/glfw/posix_module.c",
"external/glfw/posix_poll.c",
"external/glfw/posix_thread.c",
"external/glfw/posix_time.c",
"external/glfw/vulkan.c",
"external/glfw/wgl_context.c",
"external/glfw/win32_init.c",
"external/glfw/win32_joystick.c",
"external/glfw/win32_module.c",
"external/glfw/win32_monitor.c",
"external/glfw/win32_thread.c",
"external/glfw/win32_time.c",
"external/glfw/win32_window.c",
"external/glfw/window.c",
"external/glfw/wl_init.c",
"external/glfw/wl_monitor.c",
"external/glfw/wl_window.c",
"external/glfw/x11_init.c",
"external/glfw/x11_monitor.c",
"external/glfw/x11_window.c",
"external/glfw/xkb_unicode.c",
"raudio.c",
"rcore.c",
"rglfw.c",
"rmodels.c",
"rshapes.c",
"rtext.c",
"rtextures.c",
"utils.c"
],
"target_dependencies" : [
"X11",
"Wayland"
],
"type" : "library"
},
{
"c99name" : "X11",
"module_type" : "SystemLibraryTarget",
"name" : "X11",
"path" : "Sources/X11",
"product_memberships" : [
"raylib"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "Wayland",
"module_type" : "SystemLibraryTarget",
"name" : "Wayland",
"path" : "Sources/Wayland",
"product_memberships" : [
"raylib"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "6.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/context.c:28:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/platform.h:179:
/host/spi-builder-workspace/Sources/raylib/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
28 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/48] Compiling context.c
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/egl_context.c:28:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/platform.h:179:
/host/spi-builder-workspace/Sources/raylib/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
28 | #include <pthread.h>
| ^~~~~~~~~~~
[0/48] Compiling egl_context.c
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/cocoa_time.c:27:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/platform.h:179:
/host/spi-builder-workspace/Sources/raylib/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
28 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/48] Compiling cocoa_time.c
[0/48] Compiling raylib rtextures.c
[0/48] Compiling raylib rshapes.c
[0/48] Compiling raylib utils.c
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/cocoa_window.m:27:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/platform.h:179:
/host/spi-builder-workspace/Sources/raylib/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
28 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/48] Compiling cocoa_window.m
[0/48] Compiling raylib rtext.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/48] Compiling raylib rglfw.c
[1/48] Compiling raylib utils.c
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/x11_window.c:29:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/Sources/raylib/external/glfw/platform.h:179:
/host/spi-builder-workspace/Sources/raylib/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
28 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[2/48] Compiling x11_window.c
In file included from /host/spi-builder-workspace/Sources/raylib/raudio.c:180:
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:3857:18: fatal error: 'pthread.h' file not found
3857 | #include <pthread.h> /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
| ^~~~~~~~~~~
[2/48] Compiling raylib raudio.c
[2/48] Compiling raylib rtextures.c
[2/48] Compiling raylib rtext.c
[2/48] Compiling raylib rshapes.c
[2/48] Compiling raylib rcore.c
[2/48] Compiling raylib rmodels.c
[2/48] Compiling xkb_unicode.c
BUILD FAILURE 6.1 wasm