Build Information
Failed to build CGLFW3, reference 3.4.0 (c26501), with Swift 6.3 for Wasm on 13 Apr 2026 16:39:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/thepotatoking55/CGLFW3.git
Reference: 3.4.0
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/thepotatoking55/CGLFW3
* tag 3.4.0 -> FETCH_HEAD
HEAD is now at c26501e split targets and update to 3.4
Cloned https://github.com/thepotatoking55/CGLFW3.git
Revision (git rev-parse @):
c26501e572dd4130b491acb4a4a3a232db637a8c
SUCCESS checkout https://github.com/thepotatoking55/CGLFW3.git at 3.4.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/thepotatoking55/CGLFW3.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/24] Compiling CGLFW3 dummy.c
[1/24] Compiling egl_context.c
[2/24] Compiling monitor.c
In file included from /host/spi-builder-workspace/Sources/glfw3/src/posix_poll.c:33:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
/host/spi-builder-workspace/Sources/glfw3/src/posix_poll.c:37:32: warning: declaration of 'struct pollfd' will not be visible outside of this function [-Wvisibility]
37 | GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout)
| ^
/host/spi-builder-workspace/Sources/glfw3/src/posix_poll.c:37:45: error: unknown type name 'nfds_t'
37 | GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout)
| ^
/host/spi-builder-workspace/Sources/glfw3/src/posix_poll.c:57:32: error: call to undeclared function 'poll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
57 | const int result = poll(fds, count, milliseconds);
| ^
/host/spi-builder-workspace/Sources/glfw3/src/posix_poll.c:73:32: error: call to undeclared function 'poll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
73 | const int result = poll(fds, count, -1);
| ^
1 warning and 4 errors generated.
[3/24] Compiling posix_poll.c
[3/24] Compiling xkb_unicode.c
[3/24] Compiling init.c
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:34:10: fatal error: 'sys/inotify.h' file not found
34 | #include <sys/inotify.h>
| ^~~~~~~~~~~~~~~
[3/24] Compiling linux_joystick.c
[3/24] Compiling context.c
[3/24] Compiling x11_monitor.c
[3/24] Compiling x11_window.c
[3/24] Compiling input.c
BUILD FAILURE 6.3 wasm