The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build CGLFW3, reference 3.4.0 (c26501), with Swift 6.1 for Android on 28 May 2025 15:44:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/thepotatoking55/CGLFW3.git
https://github.com/thepotatoking55/CGLFW3.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CGLFW3",
  "name" : "CGLFW3",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CGLFW3",
      "targets" : [
        "CGLFW3"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "glfw3",
      "module_type" : "ClangTarget",
      "name" : "glfw3",
      "path" : "Sources/glfw3",
      "product_memberships" : [
        "CGLFW3"
      ],
      "sources" : [
        "src/context.c",
        "src/egl_context.c",
        "src/glx_context.c",
        "src/init.c",
        "src/input.c",
        "src/linux_joystick.c",
        "src/monitor.c",
        "src/null_init.c",
        "src/null_joystick.c",
        "src/null_monitor.c",
        "src/null_window.c",
        "src/osmesa_context.c",
        "src/platform.c",
        "src/posix_module.c",
        "src/posix_poll.c",
        "src/posix_thread.c",
        "src/posix_time.c",
        "src/vulkan.c",
        "src/window.c",
        "src/x11_init.c",
        "src/x11_monitor.c",
        "src/x11_window.c",
        "src/xkb_unicode.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CGLFW3Tests",
      "module_type" : "SwiftTarget",
      "name" : "CGLFW3Tests",
      "path" : "Tests/CGLFW3Tests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "CGLFW3"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CGLFW3",
      "module_type" : "ClangTarget",
      "name" : "CGLFW3",
      "path" : "Sources/CGLFW3",
      "product_memberships" : [
        "CGLFW3"
      ],
      "sources" : [
        "dummy.c"
      ],
      "target_dependencies" : [
        "glfw3"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/24] Compiling null_init.c
[1/24] Compiling null_monitor.c
[2/24] Compiling null_joystick.c
[2/24] Compiling init.c
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:53:34: error: no member named 'linjs' in 'struct _GLFWjoystick'
   53 |                              js->linjs.keyMap[code - BTN_MISC],
      |                              ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:53:54: error: use of undeclared identifier 'BTN_MISC'
   53 |                              js->linjs.keyMap[code - BTN_MISC],
      |                                                      ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:61:27: error: no member named 'linjs' in 'struct _GLFWjoystick'
   61 |     const int index = js->linjs.absMap[code];
      |                       ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:63:17: error: use of undeclared identifier 'ABS_HAT0X'
   63 |     if (code >= ABS_HAT0X && code <= ABS_HAT3Y)
      |                 ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:63:38: error: use of undeclared identifier 'ABS_HAT3Y'
   63 |     if (code >= ABS_HAT0X && code <= ABS_HAT3Y)
      |                                      ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:72:33: error: use of undeclared identifier 'ABS_HAT0X'
   72 |         const int hat = (code - ABS_HAT0X) / 2;
      |                                 ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:73:34: error: use of undeclared identifier 'ABS_HAT0X'
   73 |         const int axis = (code - ABS_HAT0X) % 2;
      |                                  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:74:26: error: no member named 'linjs' in 'struct _GLFWjoystick'
   74 |         int* state = js->linjs.hats[hat];
      |                      ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:89:49: error: no member named 'linjs' in 'struct _GLFWjoystick'
   89 |         const struct input_absinfo* info = &js->linjs.absInfo[code];
      |                                             ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:92:31: error: incomplete definition of type 'const struct input_absinfo'
   92 |         const int range = info->maximum - info->minimum;
      |                           ~~~~^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
   89 |         const struct input_absinfo* info = &js->linjs.absInfo[code];
      |                      ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:92:47: error: incomplete definition of type 'const struct input_absinfo'
   92 |         const int range = info->maximum - info->minimum;
      |                                           ~~~~^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
   89 |         const struct input_absinfo* info = &js->linjs.absInfo[code];
      |                      ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:96:44: error: incomplete definition of type 'const struct input_absinfo'
   96 |             normalized = (normalized - info->minimum) / range;
      |                                        ~~~~^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
   89 |         const struct input_absinfo* info = &js->linjs.absInfo[code];
      |                      ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:109:32: error: use of undeclared identifier 'ABS_CNT'
  109 |     for (int code = 0;  code < ABS_CNT;  code++)
      |                                ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:111:17: error: no member named 'linjs' in 'struct _GLFWjoystick'
  111 |         if (js->linjs.absMap[code] < 0)
      |             ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:114:43: error: no member named 'linjs' in 'struct _GLFWjoystick'
  114 |         struct input_absinfo* info = &js->linjs.absInfo[code];
      |                                       ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:116:23: error: no member named 'linjs' in 'struct _GLFWjoystick'
  116 |         if (ioctl(js->linjs.fd, EVIOCGABS(code), info) < 0)
      |                   ~~  ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:116:33: error: call to undeclared function 'EVIOCGABS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  116 |         if (ioctl(js->linjs.fd, EVIOCGABS(code), info) < 0)
      |                                 ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:119:38: error: incomplete definition of type 'struct input_absinfo'
  119 |         handleAbsEvent(js, code, info->value);
      |                                  ~~~~^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:114:16: note: forward declaration of 'struct input_absinfo'
  114 |         struct input_absinfo* info = &js->linjs.absInfo[code];
      |                ^
/host/spi-builder-workspace/Sources/glfw3/src/linux_joystick.c:133:41: error: no member named 'linjs' in 'struct _GLFWjoystick'
  133 |         if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0)
      |                    ~~~~~~~~~~~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[4/24] Compiling linux_joystick.c
[4/24] Compiling null_window.c
[4/24] Compiling vulkan.c
[4/24] Compiling window.c
[4/24] Compiling x11_init.c
[4/24] Compiling x11_monitor.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>
      |          ^~~~~~~~~~~~~~~~~~
[4/24] Compiling x11_window.c
[4/24] Compiling xkb_unicode.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
/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.
[0/20] Compiling xkb_unicode.c
[0/20] Compiling window.c
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:46:35: error: unknown type name 'KeySym'
   46 | static int translateKeySyms(const KeySym* keysyms, int width)
      |                                   ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:52:18: error: use of undeclared identifier 'XK_KP_0'
   52 |             case XK_KP_0:           return GLFW_KEY_KP_0;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:53:18: error: use of undeclared identifier 'XK_KP_1'
   53 |             case XK_KP_1:           return GLFW_KEY_KP_1;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:54:18: error: use of undeclared identifier 'XK_KP_2'
   54 |             case XK_KP_2:           return GLFW_KEY_KP_2;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:55:18: error: use of undeclared identifier 'XK_KP_3'
   55 |             case XK_KP_3:           return GLFW_KEY_KP_3;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:56:18: error: use of undeclared identifier 'XK_KP_4'
   56 |             case XK_KP_4:           return GLFW_KEY_KP_4;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:57:18: error: use of undeclared identifier 'XK_KP_5'
   57 |             case XK_KP_5:           return GLFW_KEY_KP_5;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:58:18: error: use of undeclared identifier 'XK_KP_6'
   58 |             case XK_KP_6:           return GLFW_KEY_KP_6;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:59:18: error: use of undeclared identifier 'XK_KP_7'
   59 |             case XK_KP_7:           return GLFW_KEY_KP_7;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:60:18: error: use of undeclared identifier 'XK_KP_8'
   60 |             case XK_KP_8:           return GLFW_KEY_KP_8;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c:61:18: error: use of undeclared identifier 'XK_KP_9'
   61 |             case XK_KP_9:           return GLFW_KEY_KP_9;
      |                  ^
/host/spi-builder-workspace/Sources/glfw3/src/x11_init.c[0/20] Compiling x11_init.c
[0/20] Compiling x11_monitor.c
[0/20] Compiling posix_time.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>
      |          ^~~~~~~~~~~~~~~~~~
[0/20] Compiling x11_window.c
[0/20] Compiling vulkan.c
[0/20] Compiling posix_thread.c
BUILD FAILURE 6.1 android