Build Information
Failed to build raylib, reference main (662d67), with Swift 6.3 for Wasm on 18 Apr 2026 09:32:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path: $PWD
https://github.com/Lancelotbronner/raylib-build.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/48] Compiling cocoa_time.c
[0/48] Compiling cocoa_window.m
[0/48] Compiling cocoa_init.m
[0/48] Compiling cocoa_joystick.m
[4/48] Compiling cocoa_monitor.m
[5/48] Compiling raylib rglfw.c
[6/48] Compiling context.c
[7/48] Compiling raylib utils.c
[8/48] Compiling egl_context.c
[9/48] Compiling x11_window.c
[10/48] Compiling xkb_unicode.c
[11/48] Compiling x11_monitor.c
[12/48] Compiling x11_init.c
[13/48] Compiling wl_window.c
[14/48] Compiling wl_monitor.c
[15/48] Compiling wl_init.c
[16/48] Compiling raylib rshapes.c
[17/48] Compiling win32_window.c
[18/48] Compiling win32_time.c
[19/48] Compiling win32_monitor.c
[20/48] Compiling window.c
[21/48] Compiling win32_thread.c
[22/48] Compiling win32_init.c
[23/48] Compiling win32_module.c
[24/48] Compiling win32_joystick.c
[25/48] Compiling wgl_context.c
[26/48] Compiling raylib rtext.c
[27/48] Compiling vulkan.c
[28/48] Compiling posix_time.c
[29/48] Compiling posix_thread.c
[30/48] Compiling posix_poll.c
[31/48] Compiling posix_module.c
[32/48] Compiling platform.c
In file included from /host/spi-builder-workspace/Sources/raylib/rcore.c:546:
/host/spi-builder-workspace/Sources/raylib/platforms/rcore_web.h:50:10: fatal error: 'GLFW/glfw3.h' file not found
50 | #include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
| ^~~~~~~~~~~~~~
1 error generated.
[33/48] Compiling raylib rcore.c
[33/48] Compiling null_joystick.c
[33/48] Compiling osmesa_context.c
[33/48] Compiling null_window.c
[33/48] Compiling null_monitor.c
[33/48] Compiling raylib rmodels.c
In file included from /host/spi-builder-workspace/Sources/raylib/raudio.c:180:
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:16136:31: error: call to undeclared function 'sched_get_priority_min'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16136 | int priorityMin = sched_get_priority_min(scheduler);
| ^
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:16137:31: error: call to undeclared function 'sched_get_priority_max'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16137 | int priorityMax = sched_get_priority_max(scheduler);
| ^
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:16141:17: error: call to undeclared function 'pthread_attr_getschedparam'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16141 | if (pthread_attr_getschedparam(&attr, &sched) == 0) {
| ^
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:16141:17: note: did you mean 'pthread_attr_getschedpolicy'?
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/pthread.h:178:5: note: 'pthread_attr_getschedpolicy' declared here
178 | int pthread_attr_getschedpolicy(const pthread_attr_t *__restrict, int *__restrict);
| ^
In file included from /host/spi-builder-workspace/Sources/raylib/raudio.c:180:
/host/spi-builder-workspace/Sources/raylib/external/miniaudio.h:16157:17: error: call to undeclared function 'pthread_attr_setschedparam'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16157 | pthread_attr_setschedparam(&attr, &sched);
| ^
[33/48] Compiling raylib rtextures.c
[33/48] Compiling raylib raudio.c
BUILD FAILURE 6.3 wasm