The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-raylib-examples, reference main (740c82), with Swift 6.2 for Wasm on 30 Jan 2026 19:15:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Lancelotbronner/swift-raylib-examples.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/swift-raylib-examples
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 740c82b Make sure examples build, add a few audio examples
Cloned https://github.com/Lancelotbronner/swift-raylib-examples.git
Revision (git rev-parse @):
740c82bb3b575b018d0be2c15cb20c32d355fc7f
SUCCESS checkout https://github.com/Lancelotbronner/swift-raylib-examples.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Lancelotbronner/swift-raylib-examples.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/Lancelotbronner/swift-raylib
[1/845] Fetching swift-raylib
Fetched https://github.com/Lancelotbronner/swift-raylib from cache (0.64s)
Computing version for https://github.com/Lancelotbronner/swift-raylib
Computed https://github.com/Lancelotbronner/swift-raylib at 5.5.2 (1.02s)
Fetching https://github.com/Lancelotbronner/raylib-build.git
[1/200] Fetching raylib-build
Fetched https://github.com/Lancelotbronner/raylib-build.git from cache (0.68s)
Computing version for https://github.com/Lancelotbronner/raylib-build.git
Computed https://github.com/Lancelotbronner/raylib-build.git at 5.5.2 (1.28s)
Creating working copy for https://github.com/Lancelotbronner/raylib-build.git
Working copy of https://github.com/Lancelotbronner/raylib-build.git resolved at 5.5.2
Creating working copy for https://github.com/Lancelotbronner/swift-raylib
Working copy of https://github.com/Lancelotbronner/swift-raylib resolved at 5.5.2
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Textures/Sprite Animation/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Textures/Blend Modes/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Textures/Atlas/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Text/Fonts/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Audio/Sound Multi/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Audio/Sound Loading/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Audio/Music Stream/LICENSE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Audio/Module Playing/LICENSE.md
Building for debugging...
[0/177] Compiling glx_context.c
[0/177] Compiling cocoa_joystick.m
[1/177] Compiling cocoa_time.c
[2/177] Copying scarfy.png
[4/177] Copying logo.png
[5/177] Copying foreground.png
[5/177] Copying background.png
[6/177] Copying scarfy.png
[8/177] Copying setback.png
[9/177] Copying romulus.png
[10/177] Copying pixelplay.png
[11/177] Copying mecha.png
[12/177] Copying jupiter_crash.png
[13/177] Copying alpha_beta.png
[14/177] Copying pixantiqua.png
[15/177] Copying alagard.png
[16/177] Copying target.ogg
[17/177] Copying sound.wav
[19/177] Copying mini1111.xm
[20/177] Copying country.mp3
[21/177] Compiling cocoa_monitor.m
[21/177] Compiling cocoa_window.m
[23/177] Compiling init.c
[24/177] Compiling context.c
[25/177] Compiling egl_context.c
[26/177] Compiling raylib rglfw.c
[27/177] Compiling raylib utils.c
[28/177] Write swift-version-24593BA9C3E375BF.txt
[29/177] Compiling xkb_unicode.c
[30/177] Compiling x11_window.c
[31/177] Compiling x11_monitor.c
[32/177] Compiling x11_init.c
[33/177] Compiling wl_window.c
[34/177] Compiling wl_monitor.c
[35/177] Compiling raylib rshapes.c
[36/177] Compiling wl_init.c
[37/177] Compiling win32_window.c
[38/177] Compiling win32_time.c
[39/177] Compiling win32_thread.c
[40/177] Compiling win32_monitor.c
[41/177] Compiling window.c
[42/177] Compiling win32_module.c
[43/177] Compiling win32_joystick.c
[44/177] Compiling win32_init.c
[45/177] Compiling wgl_context.c
[46/177] Compiling posix_time.c
[47/177] Compiling vulkan.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/rcore.c:546:
/host/spi-builder-workspace/.build/checkouts/raylib-build/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.
[48/177] Compiling raylib rcore.c
[48/177] Compiling posix_module.c
[48/177] Compiling posix_thread.c
[48/177] Compiling posix_poll.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/raudio.c:180:
/host/spi-builder-workspace/.build/checkouts/raylib-build/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/.build/checkouts/raylib-build/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/.build/checkouts/raylib-build/external/miniaudio.h:16140:32: error: variable has incomplete type 'struct sched_param'
 16140 |             struct sched_param sched;
       |                                ^
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/miniaudio.h:16140:20: note: forward declaration of 'struct sched_param'
 16140 |             struct sched_param sched;
       |                    ^
/host/spi-builder-workspace/.build/checkouts/raylib-build/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/.build/checkouts/raylib-build/external/miniaudio.h:16141:17: note: did you mean 'pthread_attr_getschedpolicy'?
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/pthread.h:168:5: note: 'pthread_attr_getschedpolicy' declared here
  168 | int pthread_attr_getschedpolicy(const pthread_attr_t *__restrict, int *__restrict);
      |     ^
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/raudio.c:180:
/host/spi-builder-workspace/.build/checkouts/raylib-build/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);
       |                 ^
[48/177] Compiling raylib raudio.c
[48/177] Compiling raylib rmodels.c
[48/177] Compiling raylib rtextures.c
[48/177] Compiling raylib rtext.c
BUILD FAILURE 6.2 wasm