The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCurses, reference 1.1.0 (bdaa97), with Swift 6.1 for Wasm on 30 May 2025 03:41:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/Jomy10/SwiftCurses.git
Reference: 1.1.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/Jomy10/SwiftCurses
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at bdaa972 handle sigint to cleanup ncurses
Cloned https://github.com/Jomy10/SwiftCurses.git
Revision (git rev-parse @):
bdaa97277f6b16d510e543c8a3669f0cc8352ac9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Jomy10/SwiftCurses.git at 1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Jomy10/SwiftCurses.git
https://github.com/Jomy10/SwiftCurses.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "signalhandler",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Genaro-Chris/SignalHandler.git"
    }
  ],
  "manifest_display_name" : "SwiftCurses",
  "name" : "SwiftCurses",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftCurses",
      "targets" : [
        "SwiftCurses"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Examples",
      "targets" : [
        "Examples"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ncursesTests",
      "module_type" : "SwiftTarget",
      "name" : "ncursesTests",
      "path" : "Tests/ncursesTests",
      "sources" : [
        "ncursesTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCurses",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCurses",
      "path" : "Sources/SwiftCurses",
      "product_dependencies" : [
        "SignalHandler"
      ],
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "LinuxCompatibility.swift",
        "Window+attributes.swift",
        "Window+border.swift",
        "Window+clear.swift",
        "Window+controls.swift",
        "Window+dump.swift",
        "Window+input.swift",
        "Window+mouse.swift",
        "Window+output.swift",
        "Window+util.swift",
        "Window.swift",
        "color.swift",
        "error.swift",
        "initScreen.swift",
        "kernel.swift",
        "keycode.swift",
        "mouseEvent.swift",
        "settings.swift"
      ],
      "target_dependencies" : [
        "C_ncurses",
        "C_ncursesBinds",
        "C_ncursesw"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Examples",
      "module_type" : "SwiftTarget",
      "name" : "Examples",
      "path" : "Sources/Examples",
      "product_memberships" : [
        "Examples"
      ],
      "sources" : [
        "01-helloWorld.swift",
        "02-init.swift",
        "03-print.swift",
        "04-input.swift",
        "05-attributes.swift",
        "06-chgat.swift",
        "07-window.swift",
        "08-more-border-functions.swift",
        "09-colors.swift",
        "10-keybboard.swift",
        "11-mouse.swift",
        "12-temporarilyLeavingCursesMode.swift",
        "main.swift",
        "x01-color-definition.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "C_ncursesw",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncursesw",
      "path" : "Sources/C_ncursesw",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "C_ncursesBinds",
      "module_type" : "ClangTarget",
      "name" : "C_ncursesBinds",
      "path" : "Sources/C_ncursesBinds",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "C_ncursesBinds.c"
      ],
      "target_dependencies" : [
        "C_ncurses"
      ],
      "type" : "library"
    },
    {
      "c99name" : "C_ncurses",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncurses",
      "path" : "Sources/C_ncurses",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Fetching https://github.com/Genaro-Chris/SignalHandler.git
[1/1433] Fetching signalhandler
Fetched https://github.com/Genaro-Chris/SignalHandler.git from cache (0.59s)
Creating working copy for https://github.com/Genaro-Chris/SignalHandler.git
Working copy of https://github.com/Genaro-Chris/SignalHandler.git resolved at main (bb52b9c)
warning: you may be able to install ncurses using your system-packager:
    apt-get install libncurses5-dev
warning: you may be able to install ncursesw using your system-packager:
    apt-get install libncursesw5-dev
warning: you may be able to install ncurses using your system-packager:
    apt-get install libncurses5-dev
warning: you may be able to install ncursesw using your system-packager:
    apt-get install libncursesw5-dev
Building for debugging...
[0/10] Write sources
/host/spi-builder-workspace/Sources/C_ncursesBinds/C_ncursesBinds.c:2:10: fatal error: 'ncurses.h' file not found
    2 | #include <ncurses.h>
      |          ^~~~~~~~~~~
1 error generated.
[3/10] Compiling C_ncursesBinds C_ncursesBinds.c
[3/10] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
warning: you may be able to install ncurses using your system-packager:
    apt-get install libncurses5-dev
warning: you may be able to install ncursesw using your system-packager:
    apt-get install libncursesw5-dev
warning: you may be able to install ncurses using your system-packager:
    apt-get install libncurses5-dev
warning: you may be able to install ncursesw using your system-packager:
    apt-get install libncursesw5-dev
[0/1] Planning build
Building for debugging...
/host/spi-builder-workspace/Sources/C_ncursesBinds/C_ncursesBinds.c:2:10: fatal error: 'ncurses.h' file not found
    2 | #include <ncurses.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/7] Compiling C_ncursesBinds C_ncursesBinds.c
[0/7] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm