The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-raylib, reference main (4fb66a), with Swift 6.1 for Wasm on 30 Jan 2026 19:25:59 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/swift-raylib.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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4fb66ac Bump raylib build and address warnings
Cloned https://github.com/Lancelotbronner/swift-raylib.git
Revision (git rev-parse @):
4fb66ac3efbf14c653a9b65f825b63c8fb0dfdd2
SUCCESS checkout https://github.com/Lancelotbronner/swift-raylib.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Lancelotbronner/swift-raylib.git
https://github.com/Lancelotbronner/swift-raylib.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "raylib-build",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.5.2",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Lancelotbronner/raylib-build.git"
    }
  ],
  "manifest_display_name" : "swift-raylib",
  "name" : "swift-raylib",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RaylibKit",
      "targets" : [
        "RaylibKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RaylibKit",
      "module_type" : "SwiftTarget",
      "name" : "RaylibKit",
      "path" : "Sources",
      "product_dependencies" : [
        "raylib"
      ],
      "product_memberships" : [
        "RaylibKit"
      ],
      "sources" : [
        "Application/App.swift",
        "Application/Applet.swift",
        "Application/Application.swift",
        "Application/Scene.swift",
        "Audio/AudioDevice.swift",
        "Audio/AudioObject.swift",
        "Audio/AudioProcessor.swift",
        "Audio/AudioStream.swift",
        "Audio/Mixer.swift",
        "Audio/Music.swift",
        "Audio/Sound.swift",
        "Audio/Wave+Samples.swift",
        "Audio/Wave.swift",
        "Debugging/Trace.swift",
        "Display/ConfigurationFlags.swift",
        "Display/Cursor.swift",
        "Display/Monitor.swift",
        "Display/Screen.swift",
        "Display/Window.swift",
        "Extensions/Collection+.swift",
        "Extensions/FloatingPoint+.swift",
        "Extensions/Integer+.swift",
        "Extensions/OptionSet+.swift",
        "Extensions/String+.swift",
        "Filesystem/Directory.swift",
        "Filesystem/DragAndDrop.swift",
        "Filesystem/File.swift",
        "Filesystem/FilePaths.swift",
        "Filesystem/Filesystem.swift",
        "Filesystem/Path.swift",
        "Image/Canvas+Wire.swift",
        "Image/Canvas.swift",
        "Image/Image+Generation.swift",
        "Image/Image.swift",
        "Image/ImageUtils.swift",
        "Input/Button.swift",
        "Input/Gamepad.swift",
        "Input/Gestures.swift",
        "Input/Keyboard.swift",
        "Input/KeyboardButton.swift",
        "Input/Mouse.swift",
        "Input/MouseButton.swift",
        "Input/Touch.swift",
        "Math/Angle.swift",
        "Math/Functions/Normalization Functions.swift",
        "Math/Functions/Remapping Functions.swift",
        "Math/Functions/Trigonometry Functions.swift",
        "Math/Matrix.swift",
        "Math/Operations/Vector Operations.swift",
        "Math/Operators.swift",
        "Math/Point2.swift",
        "Math/Quaternion.swift",
        "Math/Random.swift",
        "Math/Scalar+Double.swift",
        "Math/Scalar+Float.swift",
        "Math/Scalar.swift",
        "Math/Scalar/Scalar+Comparable.swift",
        "Math/Scalar/Scalar+Lerp.swift",
        "Math/Scalar/_Scalar.swift",
        "Math/Vector.swift",
        "Math/Vector/Vector FloatingPoint.swift",
        "Math/Vector/Vector+Additive.swift",
        "Math/Vector/Vector+Comparable.swift",
        "Math/Vector/Vector+Integer.swift",
        "Math/Vector/Vector+Numeric.swift",
        "Math/Vector2.swift",
        "Math/Vector3.swift",
        "Math/Vectors/_Vector3.swift",
        "Math/Vectors/_Vector4.swift",
        "Memory/Memory.swift",
        "Models/BoundingBox.swift",
        "Models/Cube.swift",
        "Models/Cylinder.swift",
        "Models/Material.swift",
        "Models/Mesh.swift",
        "Models/Model.swift",
        "Models/ModelAnimation.swift",
        "Models/OutlineRenderer3D.swift",
        "Models/Plane.swift",
        "Models/PrimitiveRenderer3D.swift",
        "Models/ShapeRenderer3D.swift",
        "Models/Sphere.swift",
        "Rendering/BlendMode.swift",
        "Rendering/Camera2D.swift",
        "Rendering/Camera3D.swift",
        "Rendering/CameraMode.swift",
        "Rendering/Color.swift",
        "Rendering/RenderTexture.swift",
        "Rendering/Renderer.swift",
        "Shader/Shader+Locations.swift",
        "Shader/Shader+Uniforms.swift",
        "Shader/Shader.swift",
        "Shader/Uniform.swift",
        "Shapes/Circle.swift",
        "Shapes/Ellipse.swift",
        "Shapes/Frame.swift",
        "Shapes/Line.swift",
        "Shapes/Polygon.swift",
        "Shapes/PrimitiveRenderer2D.swift",
        "Shapes/Rectangle.swift",
        "Shapes/Ring.swift",
        "Shapes/RoundedRectangle.swift",
        "Shapes/Sector.swift",
        "Shapes/Shape.swift",
        "Shapes/ShapeRenderer2D.swift",
        "Shapes/Triangle.swift",
        "Shapes/WireRenderer2D.swift",
        "Storage/Serialization.swift",
        "System/Clipboard.swift",
        "System/System.swift",
        "System/Time.swift",
        "Text/CharacterInfo.swift",
        "Text/Font.swift",
        "Text/Format.swift",
        "Text/Text.swift",
        "Text/TextRenderer2D.swift",
        "Text/TextUtils.swift",
        "Texture/Texture+.swift",
        "Texture/Texture.swift",
        "Texture/TextureRenderer2D.swift",
        "Texture/TextureUtils.swift",
        "Utilities/Edges.swift",
        "Utilities/Parameters.swift",
        "Utilities/Spritesheet.swift",
        "Utilities/Timeline.swift",
        "VR/VR.swift",
        "raylib.swift"
      ],
      "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
Fetching https://github.com/Lancelotbronner/raylib-build.git
[1/200] Fetching raylib-build
Fetched https://github.com/Lancelotbronner/raylib-build.git from cache (0.45s)
Computing version for https://github.com/Lancelotbronner/raylib-build.git
Computed https://github.com/Lancelotbronner/raylib-build.git at 5.5.2 (2.00s)
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
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/null_joystick.c:27:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling null_joystick.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/cocoa_joystick.m:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling cocoa_joystick.m
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/linux_joystick.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling linux_joystick.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/input.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling input.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/monitor.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling monitor.c
[0/50] Compiling raylib utils.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/null_init.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/50] Compiling null_init.c
[0/50] Write swift-version-24593BA9C3E375BF.txt
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/50] Compiling raylib rglfw.c
[1/50] Compiling raylib rshapes.c
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/xkb_unicode.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/internal.h:325:
In file included from /host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/platform.h:179:
/host/spi-builder-workspace/.build/checkouts/raylib-build/external/glfw/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[2/50] Compiling xkb_unicode.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: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/50] Compiling raylib raudio.c
[2/50] Compiling raylib rtextures.c
[2/50] Compiling raylib rmodels.c
[2/50] Compiling raylib rcore.c
[2/50] Compiling raylib rtext.c
[2/50] Write swift-version-24593BA9C3E375BF.txt
[2/50] Compiling raylib utils.c
BUILD FAILURE 6.1 wasm