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 RubyGateway, reference main (7f360a), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 01:59:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/johnfairh/RubyGateway.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/johnfairh/RubyGateway
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7f360a6 Update CI for Xcode 16.3 / Swift 6.1 (#61)
Submodule path 'CRuby': checked out '6cdfc7db30f8fc7a27199a1b6b829e42e67bb5c7'
Submodule 'CRuby' (https://github.com/johnfairh/CRuby.git) registered for path 'CRuby'
Cloning into '/host/spi-builder-workspace/CRuby'...
Cloned https://github.com/johnfairh/RubyGateway.git
Revision (git rev-parse @):
7f360a6e125663443e964486d2b376acfb712fd1
SUCCESS checkout https://github.com/johnfairh/RubyGateway.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/johnfairh/RubyGateway.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Fetching https://github.com/johnfairh/CRuby
[1/103] Fetching cruby
Fetched https://github.com/johnfairh/CRuby from cache (0.25s)
Computing version for https://github.com/johnfairh/CRuby
Computed https://github.com/johnfairh/CRuby at 2.1.0 (3.47s)
Creating working copy for https://github.com/johnfairh/CRuby
Working copy of https://github.com/johnfairh/CRuby resolved at 2.1.0
Building for debugging...
[0/10] Write sources
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:8:1: error: use of '@import' when modules are disabled
    8 | @import CRuby;
      | ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:35:22: error: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   35 |     Rbg_value *box = malloc(sizeof(*box));
      |                      ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:35:22: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:36:16: error: use of undeclared identifier 'NULL'
   36 |     if (box == NULL)
      |                ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:40:9: error: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   40 |         abort();
      |         ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:40:9: note: include the header <stdlib.h> or explicitly provide a declaration for 'abort'
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:47:10: error: call to undeclared function 'SPECIAL_CONST_P'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   47 |     if (!RB_SPECIAL_CONST_P(value))
      |          ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:14:28: note: expanded from macro 'RB_SPECIAL_CONST_P'
   14 | #define RB_SPECIAL_CONST_P SPECIAL_CONST_P
      |                            ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:49:9: error: call to undeclared function 'rb_gc_register_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   49 |         rb_gc_register_address(&box->value);
      |         ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:61:10: error: call to undeclared function 'SPECIAL_CONST_P'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   61 |     if (!RB_SPECIAL_CONST_P(box->value))
      |          ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:14:28: note: expanded from macro 'RB_SPECIAL_CONST_P'
   14 | #define RB_SPECIAL_CONST_P SPECIAL_CONST_P
      |                            ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:63:9: error: call to undeclared function 'rb_gc_unregister_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   63 |         rb_gc_unregister_address(&box->value);
      |         ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:65:18: error: use of undeclared identifier 'Qundef'
   65 |     box->value = Qundef;
      |                  ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:66:5: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   66 |     free(box);
      |     ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_value.m:66:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
10 errors generated.
[2/10] Compiling RubyGatewayHelpers rbg_value.m
[2/10] Compiling RubyGatewayHelpers rbg_macros.m
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_protect.m:8:1: error: use of '@import' when modules are disabled
    8 | @import CRuby;
      | ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_protect.m:144:12: error: call to undeclared function 'rb_funcallv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  144 |     return rb_funcallv(recv, mid, argc, argv);
      |            ^
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_protect.m:144:12: note: did you mean 'rb_funcallv_kw'?
/host/spi-builder-workspace/Sources/RubyGatewayHelpers/rbg_protect.m:142:14: note: 'rb_funcallv_kw' declared here
  142 | static VALUE rb_funcallv_kw(VALUE recv, ID mid, int argc, const VALUE *argv, int kw_splat)
      |              ^
  143 | {
  144 |     [2/10] Compiling RubyGatewayHelpers rbg_protect.m
[2/10] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm