Build Information
Failed to build NavLibSwift, reference main (81d275), with Swift 6.2 for Wasm on 18 Oct 2025 20:21:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tomasf/NavLibSwift.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/tomasf/NavLibSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 81d275f Update README
Cloned https://github.com/tomasf/NavLibSwift.git
Revision (git rev-parse @):
81d275f26e3fbfe1d668ab546e3bf3679e5bc712
SUCCESS checkout https://github.com/tomasf/NavLibSwift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/tomasf/NavLibSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/NavLibCpp/NavLib.cpp:1:
In file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_base.h:30:
In file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_types.h:48:
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/errno.h:1:2: warning: redirecting incorrect #include <sys/errno.h> to <errno.h> [-W#warnings]
1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
| ^
1 warning generated.
[2/3] Compiling NavLibCpp NavLib.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module NavLib
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:10: note: while building module 'std_csetjmp' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:
63 | #include <condition_variable>
64 | #include <coroutine>
65 | #include <csetjmp>
| `- note: while building module 'std_csetjmp' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:
66 | #include <csignal>
67 | #include <cstdarg>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "csetjmp"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:
35 | // <setjmp.h> is not provided by libc++
36 | #if __has_include(<setjmp.h>)
37 | # include <setjmp.h>
| `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:
38 | # ifdef _LIBCPP_SETJMP_H
39 | # error "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/setjmp.h:13:2: error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
11 | /* WASI has no setjmp */
12 | #if !defined(__wasm_exception_handling__)
13 | #error Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
| `- error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
14 | #endif
15 | #endif
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "__std_clang_module"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:10: error: could not build module 'std_csetjmp'
63 | #include <condition_variable>
64 | #include <coroutine>
65 | #include <csetjmp>
| `- error: could not build module 'std_csetjmp'
66 | #include <csignal>
| `- note: while building module 'std_csignal' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:66:
67 | #include <cstdarg>
68 | #include <cstdbool>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "csignal"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:
44 | // <signal.h> is not provided by libc++
45 | #if __has_include(<signal.h>)
46 | # include <signal.h>
| `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:
47 | # ifdef _LIBCPP_SIGNAL_H
48 | # error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
1 | #ifndef _WASI_EMULATED_SIGNAL
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| `- error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
3 | compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
4 | #else
<unknown>:0: error: could not build C module 'std'
[5/5] Compiling NavLib NavLibInstance+Subscripts.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/NavLibCpp/NavLib.h"
| `- note: in file included from <module-includes>:1:
2 | #include "/host/spi-builder-workspace/Sources/NavLibCpp/navlib_base.h"
3 | #include "/host/spi-builder-workspace/Sources/NavLibCpp/navlib_defines.h"
/host/spi-builder-workspace/Sources/NavLibCpp/NavLib.h:1:10: note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/NavLib.h:1:
1 | #include "navlib_base.h"
| `- note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/NavLib.h:1:
2 | #include "navlib_error.h"
3 | #include <stdbool.h>
/host/spi-builder-workspace/Sources/NavLibCpp/navlib_base.h:30:10: note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_base.h:30:
28 | // </description>
29 |
30 | #include "navlib_types.h"
| `- note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_base.h:30:
31 | /// <summary>
32 | /// Contains the navigation library API types and functions
/host/spi-builder-workspace/Sources/NavLibCpp/navlib_types.h:48:10: note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_types.h:48:
46 |
47 | // stdlib
48 | #include <sys/errno.h>
| `- note: in file included from /host/spi-builder-workspace/Sources/NavLibCpp/navlib_types.h:48:
49 | #include <string.h>
50 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/errno.h:1:2: warning: redirecting incorrect #include <sys/errno.h> to <errno.h>
1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
| `- warning: redirecting incorrect #include <sys/errno.h> to <errno.h>
2 | #include <errno.h>
3 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:10: note: while building module 'std_csetjmp' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:
63 | #include <condition_variable>
64 | #include <coroutine>
65 | #include <csetjmp>
| `- note: while building module 'std_csetjmp' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:
66 | #include <csignal>
67 | #include <cstdarg>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "csetjmp"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:
35 | // <setjmp.h> is not provided by libc++
36 | #if __has_include(<setjmp.h>)
37 | # include <setjmp.h>
| `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csetjmp:37:
38 | # ifdef _LIBCPP_SETJMP_H
39 | # error "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/setjmp.h:13:2: error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
11 | /* WASI has no setjmp */
12 | #if !defined(__wasm_exception_handling__)
13 | #error Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
| `- error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
14 | #endif
15 | #endif
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "__std_clang_module"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:65:10: error: could not build module 'std_csetjmp'
63 | #include <condition_variable>
64 | #include <coroutine>
65 | #include <csetjmp>
| `- error: could not build module 'std_csetjmp'
66 | #include <csignal>
| `- note: while building module 'std_csignal' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__std_clang_module:66:
67 | #include <cstdarg>
68 | #include <cstdbool>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "csignal"
| `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:
44 | // <signal.h> is not provided by libc++
45 | #if __has_include(<signal.h>)
46 | # include <signal.h>
| `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:46:
47 | # ifdef _LIBCPP_SIGNAL_H
48 | # error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
1 | #ifndef _WASI_EMULATED_SIGNAL
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| `- error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
3 | compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
4 | #else
<unknown>:0: error: could not build C module 'std'
BUILD FAILURE 6.2 wasm