The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftWebview, reference main (b7582b), with Swift 6.1 for Wasm on 28 May 2025 18:03:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jakenvac/SwiftWebview.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/jakenvac/SwiftWebview
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7582ba Update README.md
Cloned https://github.com/jakenvac/SwiftWebview.git
Revision (git rev-parse @):
b7582bab77f890e3eadc2ba3c0ece113b64685d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jakenvac/SwiftWebview.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jakenvac/SwiftWebview.git
https://github.com/jakenvac/SwiftWebview.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++11",
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftWebview",
  "name" : "SwiftWebview",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftWebview",
      "targets" : [
        "SwiftWebview"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "cWebview",
      "module_type" : "ClangTarget",
      "name" : "cWebview",
      "path" : "Sources/cWebview",
      "product_memberships" : [
        "SwiftWebview"
      ],
      "sources" : [
        "include/webview.cc"
      ],
      "target_dependencies" : [
        "cWebkit2gtk"
      ],
      "type" : "library"
    },
    {
      "c99name" : "cWebkit2gtk",
      "module_type" : "SystemLibraryTarget",
      "name" : "cWebkit2gtk",
      "path" : "Sources/cWebkit2gtk",
      "product_memberships" : [
        "SwiftWebview"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "SwiftWebview",
      "module_type" : "SwiftTarget",
      "name" : "SwiftWebview",
      "path" : "Sources/SwiftWebview",
      "product_memberships" : [
        "SwiftWebview"
      ],
      "sources" : [
        "SwiftWebview.swift"
      ],
      "target_dependencies" : [
        "cWebview"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
In file included from /host/spi-builder-workspace/Sources/cWebview/include/webview.cc:1:
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:199:2: error: "please, specify webview backend"
  199 | #error "please, specify webview backend"
      |  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2174:24: error: expected class name
 2174 | class webview : public browser_engine {
      |                        ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2177:9: error: member initializer 'browser_engine' does not name a non-static data member or base class
 2177 |       : browser_engine(debug, wnd) {}
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2181:7: error: use of undeclared identifier 'browser_engine'
 2181 |       browser_engine::navigate("about:blank");
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2184:5: error: use of undeclared identifier 'browser_engine'
 2184 |     browser_engine::navigate(url);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2231:5: error: use of undeclared identifier 'init'; did you mean 'int'?
 2231 |     init(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2232:5: error: use of undeclared identifier 'eval'
 2232 |     eval(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2239:7: error: use of undeclared identifier 'init'; did you mean 'int'?
 2239 |       init(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2240:7: error: use of undeclared identifier 'eval'
 2240 |       eval(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2248:9: error: use of undeclared identifier 'eval'
 2248 |         eval("window._rpc[" + seq + "].resolve(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2251:9: error: use of undeclared identifier 'eval'
 2251 |         eval("window._rpc[" + seq + "].reject(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2246:5: error: use of undeclared identifier 'dispatch'
 2246 |     dispatch([seq, status, result, this]() {
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2276:11: error: no member named 'window' in 'webview::webview'
 2276 |   if (!w->window()) {
      |        ~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2288:39: error: no member named 'run' in 'webview::webview'
 2288 |   static_cast<webview::webview *>(w)->run();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2292:39: error: no member named 'terminate' in 'webview::webview'
 2292 |   static_cast<webview::webview *>(w)->terminate();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2297:39: error: no member named 'dispatch' in 'webview::webview'
 2297 |   static_cast<webview::webview *>(w)->dispatch([=]() { fn(w, arg); });
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2301:46: error: no member named 'window' in 'webview::webview'
 2301 |   return static_cast<webview::webview *>(w)->window();
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2305:39: error: no member named 'set_title' in 'webview::webview'
 2305 |   static_cast<webview::webview *>(w)->set_title(title);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2310:39: error: no member named 'set_size' in 'webview::webview'
 2310 |   static_cast<webview::webview *>(w)->set_size(width, height, hints);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1/3] Compiling webview.cc
[1/3] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/2] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/cWebview/include/webview.cc:1:
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:199:2: error: "please, specify webview backend"
  199 | #error "please, specify webview backend"
      |  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2174:24: error: expected class name
 2174 | class webview : public browser_engine {
      |                        ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2177:9: error: member initializer 'browser_engine' does not name a non-static data member or base class
 2177 |       : browser_engine(debug, wnd) {}
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2181:7: error: use of undeclared identifier 'browser_engine'
 2181 |       browser_engine::navigate("about:blank");
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2184:5: error: use of undeclared identifier 'browser_engine'
 2184 |     browser_engine::navigate(url);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2231:5: error: use of undeclared identifier 'init'; did you mean 'int'?
 2231 |     init(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2232:5: error: use of undeclared identifier 'eval'
 2232 |     eval(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2239:7: error: use of undeclared identifier 'init'; did you mean 'int'?
 2239 |       init(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2240:7: error: use of undeclared identifier 'eval'
 2240 |       eval(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2248:9: error: use of undeclared identifier 'eval'
 2248 |         eval("window._rpc[" + seq + "].resolve(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2251:9: error: use of undeclared identifier 'eval'
 2251 |         eval("window._rpc[" + seq + "].reject(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2246:5: error: use of undeclared identifier 'dispatch'
 2246 |     dispatch([seq, status, result, this]() {
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2276:11: error: no member named 'window' in 'webview::webview'
 2276 |   if (!w->window()) {
      |        ~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2288:39: error: no member named 'run' in 'webview::webview'
 2288 |   static_cast<webview::webview *>(w)->run();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2292:39: error: no member named 'terminate' in 'webview::webview'
 2292 |   static_cast<webview::webview *>(w)->terminate();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2297:39: error: no member named 'dispatch' in 'webview::webview'
 2297 |   static_cast<webview::webview *>(w)->dispatch([=]() { fn(w, arg); });
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2301:46: error: no member named 'window' in 'webview::webview'
 2301 |   return static_cast<webview::webview *>(w)->window();
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2305:39: error: no member named 'set_title' in 'webview::webview'
 2305 |   static_cast<webview::webview *>(w)->set_title(title);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2310:39: error: no member named 'set_size' in 'webview::webview'
 2310 |   static_cast<webview::webview *>(w)->set_size(width, height, hints);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1/2] Compiling webview.cc
BUILD FAILURE 6.1 wasm