The Swift Package Index logo.Swift Package Index

Build Information

Failed to build imgui, reference main (4dbf00), with Swift 6.1 for Wasm on 18 Nov 2026 19:54:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-58779149-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/the-swift-collective/imgui.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/the-swift-collective/imgui
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4dbf007 Only define _GLFW_COCOA for macOS (not iOS, visionOS).
Submodule path 'freetype': checked out '72f77b88bc6400fc451b4cb91e08d7b532efd2e8'
Submodule path 'freetype/subprojects/dlg': checked out '72dfcc858c040c54a6a0b88fcb7e70ee186d3167'
Submodule path 'glfw': checked out 'ce12b24b5c61daa735ee8b054e1f38cd1763fa66'
Submodule path 'imgui-cxx': checked out 'd313c114b76feb4f5dcdc1f8487e157decb7bada'
Submodule 'freetype' (https://github.com/the-swift-collective/freetype.git) registered for path 'freetype'
Submodule 'glfw' (https://github.com/the-swift-collective/glfw.git) registered for path 'glfw'
Submodule 'imgui-cxx' (https://github.com/the-swift-collective/imgui-cxx.git) registered for path 'imgui-cxx'
Cloning into '/host/spi-builder-workspace/freetype'...
Cloning into '/host/spi-builder-workspace/glfw'...
Cloning into '/host/spi-builder-workspace/imgui-cxx'...
Submodule 'dlg' (https://github.com/nyorain/dlg.git) registered for path 'freetype/subprojects/dlg'
Cloning into '/host/spi-builder-workspace/freetype/subprojects/dlg'...
Cloned https://github.com/the-swift-collective/imgui.git
Revision (git rev-parse @):
4dbf0078f306bf09a864ff0ce293f9b44b77a450
SUCCESS checkout https://github.com/the-swift-collective/imgui.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/the-swift-collective/imgui.git
https://github.com/the-swift-collective/imgui.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-58779149-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:46373e069458549b0fb0727bf4d0f0bb9d8a18a2e211e19b57193bdf60e4b3d5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/the-swift-collective/zlib.git
[2/84] Fetching zlib
Fetched https://github.com/the-swift-collective/zlib.git from cache (0.33s)
Computing version for https://github.com/the-swift-collective/zlib.git
Computed https://github.com/the-swift-collective/zlib.git at 1.3.3 (0.59s)
Creating working copy for https://github.com/the-swift-collective/zlib.git
Working copy of https://github.com/the-swift-collective/zlib.git resolved at 1.3.3
Building for debugging...
In file included from /host/spi-builder-workspace/glfw/src/linux_joystick.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/103] Compiling linux_joystick.c
In file included from /host/spi-builder-workspace/glfw/src/context.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/103] Compiling context.c
In file included from /host/spi-builder-workspace/glfw/src/input.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/glfw/src/init.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/103] Compiling input.c
[0/103] Compiling init.c
In file included from /host/spi-builder-workspace/glfw/src/egl_context.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/103] Compiling egl_context.c
In file included from /host/spi-builder-workspace/glfw/src/monitor.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/glfw/src/glx_context.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/103] Compiling monitor.c
[0/103] Compiling glx_context.c
In file included from /host/spi-builder-workspace/glfw/src/posix_time.c:28:
In file included from /host/spi-builder-workspace/glfw/src/internal.h:334:
In file included from /host/spi-builder-workspace/glfw/src/platform.h:179:
/host/spi-builder-workspace/glfw/src/posix_thread.h:28:10: fatal error: 'pthread.h' file not found
   28 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/103] Compiling posix_time.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-58779149-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:46373e069458549b0fb0727bf4d0f0bb9d8a18a2e211e19b57193bdf60e4b3d5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/103] Compiling ZLibC uncompr.c
[1/103] Compiling ZLibC inffast.c
[2/103] Compiling ZLibC inftrees.c
[3/103] Compiling ZLibC trees.c
[4/103] Compiling ZLibC inflate.c
[5/103] Compiling ZLibC zutil.c
[6/103] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/imgui-cxx/misc/freetype/imgui_freetype.cpp:44:
In file included from /host/spi-builder-workspace/freetype/include/freetype/freetype.h:24:
In file included from /host/spi-builder-workspace/freetype/include/freetype/config/ftconfig.h:42:
In file included from /host/spi-builder-workspace/freetype/include/freetype/config/ftstdlib.h:166:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/setjmp.h:13:2: error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
   13 | #error Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
      |  ^
1 error generated.
[7/103] Compiling imgui_freetype.cpp
[7/103] Compiling imgui_extras imgui_node_editor_api.cpp
[7/103] Compiling imgui_extras imgui_canvas.cpp
[7/103] Compiling imgui_cxx imgui_tables.cpp
[7/103] Compiling imgui_stdlib.cpp
[7/103] Compiling imgui_cxx imgui_widgets.cpp
[7/103] Compiling imgui_extras crude_json.cpp
[7/103] Compiling imgui_extras imgui_node_editor.cpp
BUILD FAILURE 6.1 wasm