The Swift Package Index logo.Swift Package Index

Build Information

Failed to build raylib, reference v5.5.2 (3efc4f), with Swift 6.1 for Wasm on 31 Jan 2026 08:13:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Lancelotbronner/raylib-build.git
Reference: v5.5.2
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
 * tag               v5.5.2     -> FETCH_HEAD
HEAD is now at 3efc4f3 Fix platform selection and address all raylib build warnings
Cloned https://github.com/Lancelotbronner/raylib-build.git
Revision (git rev-parse @):
3efc4f33c5ff9fe81c37fbf04d727426d142ea23
SUCCESS checkout https://github.com/Lancelotbronner/raylib-build.git at v5.5.2
========================================
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" : ".",
      "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"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/external/glfw/cocoa_joystick.m:28:
In file included from /host/spi-builder-workspace/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/external/glfw/platform.h:179:
/host/spi-builder-workspace/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_joystick.m
[0/48] Compiling raylib rshapes.c
[0/48] Compiling raylib rtext.c
In file included from /host/spi-builder-workspace/external/glfw/init.c:28:
In file included from /host/spi-builder-workspace/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/external/glfw/platform.h:179:
/host/spi-builder-workspace/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/48] Compiling init.c
[0/48] Compiling raylib rtextures.c
[0/48] Compiling raylib utils.c
In file included from /host/spi-builder-workspace/external/glfw/input.c:28:
In file included from /host/spi-builder-workspace/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/external/glfw/platform.h:179:
/host/spi-builder-workspace/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/48] Compiling input.c
[0/48] Compiling egl_context.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
In file included from /host/spi-builder-workspace/external/glfw/xkb_unicode.c:28:
In file included from /host/spi-builder-workspace/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/external/glfw/platform.h:179:
/host/spi-builder-workspace/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[1/48] Compiling xkb_unicode.c
[1/48] Compiling raylib rcore.c
[1/48] Compiling raylib utils.c
[1/48] Compiling raylib rmodels.c
[1/48] Compiling raylib rtextures.c
[1/48] Compiling raylib rshapes.c
[1/48] Compiling raylib rtext.c
In file included from /host/spi-builder-workspace/raudio.c:180:
/host/spi-builder-workspace/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. */
      |                  ^~~~~~~~~~~
[1/48] Compiling raylib raudio.c
BUILD FAILURE 6.1 wasm