Build Information
Failed to build CGLFW3, reference 3.4.0 (c26501
), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 05:27:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path: $PWD
https://github.com/thepotatoking55/CGLFW3.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/24] Compiling CGLFW3 dummy.c
/host/spi-builder-workspace/Sources/glfw3/src/xkb_unicode.c:940:12: error: use of undeclared identifier 'GLFW_INVALID_CODEPOINT'
940 | return GLFW_INVALID_CODEPOINT;
| ^
1 error generated.
[1/24] Compiling xkb_unicode.c
[1/24] Compiling egl_context.c
[1/24] Compiling init.c
/host/spi-builder-workspace/Sources/glfw3/src/x11_window.c:32:10: fatal error: 'X11/cursorfont.h' file not found
32 | #include <X11/cursorfont.h>
| ^~~~~~~~~~~~~~~~~~
[1/24] Compiling x11_window.c
[1/24] Compiling input.c
[1/24] Compiling context.c
[1/24] Compiling x11_monitor.c
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:43:33: error: unknown type name 'GLXFBConfig'
43 | static int getGLXFBConfigAttrib(GLXFBConfig fbconfig, int attrib)
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:46:5: error: call to undeclared function 'glXGetFBConfigAttrib'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
46 | glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value);
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:46:5: note: did you mean 'getGLXFBConfigAttrib'?
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:43:12: note: 'getGLXFBConfigAttrib' declared here
43 | static int getGLXFBConfigAttrib(GLXFBConfig fbconfig, int attrib)
| ^
44 | {
45 | int value;
46 | glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value);
| ~~~~~~~~~~~~~~~~~~~~
| getGLXFBConfigAttrib
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:46:32: error: no member named 'x11' in 'struct _GLFWlibrary'
46 | glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value);
| ~~~~~ ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:53:35: error: unknown type name 'GLXFBConfig'
53 | GLXFBConfig* result)
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:55:5: error: use of undeclared identifier 'GLXFBConfig'
55 | GLXFBConfig* nativeConfigs;
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:55:18: error: use of undeclared identifier 'nativeConfigs'
55 | GLXFBConfig* nativeConfigs;
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:64:14: error: call to undeclared function 'glXGetClientString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
64 | vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR);
| ^
/host/spi-builder-workspace/Sources/glfw3/src/glx_context.c:64:39: error: no member named 'x11' in 'struct _GLFWlibrary'
64 | vendor = glXGetClientString(_gl[1/24] Compiling glx_context.c
BUILD FAILURE 6.2 wasm