Build Information
Failed to build swift-longhair, reference main (e489e9), with Swift 6.2 for Wasm on 17 Apr 2026 18:19:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sena-mike/swift-longhair.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/sena-mike/swift-longhair
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e489e9a Add README usage guide and validate example in tests (#8)
Submodule path 'Sources/CLonghair': checked out 'd5f9fa07403ce65f63e3edffaa898414c9774619'
Submodule 'Sources/CLonghair' (https://github.com/catid/longhair.git) registered for path 'Sources/CLonghair'
Cloning into '/host/spi-builder-workspace/Sources/CLonghair'...
Cloned https://github.com/sena-mike/swift-longhair.git
Revision (git rev-parse @):
e489e9a141c310d73d93f80601a5394266d534b6
SUCCESS checkout https://github.com/sena-mike/swift-longhair.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/sena-mike/swift-longhair.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling CLonghair gf256.cpp
[3/5] Compiling CLonghair SiameseTools.cpp
[4/5] Compiling CLonghair cauchy_256.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Emitting module Longhair
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:61:17: note: while building module 'SwiftWASILibc' 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/string.h:61:
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- note: while building module 'SwiftWASILibc' 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/string.h:61:
62 | #endif
63 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:10: note: while building module 'std_inttypes_h' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:
7 |
8 | #include <features.h>
9 | #include <inttypes.h>
| `- note: while building module 'std_inttypes_h' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:
10 | #include <sys/socket.h>
11 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "inttypes.h"
| `- 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/inttypes.h:252:17: 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/inttypes.h:252:
250 |
251 | #if __has_include_next(<inttypes.h>)
252 | # include_next <inttypes.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/inttypes.h:252:
253 | #endif
254 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/inttypes.h:24:15: error: cyclic dependency in module 'SwiftWASILibc': SwiftWASILibc -> std_inttypes_h -> SwiftWASILibc
22 | #endif
23 |
24 | #include_next <inttypes.h>
| `- error: cyclic dependency in module 'SwiftWASILibc': SwiftWASILibc -> std_inttypes_h -> SwiftWASILibc
25 |
26 | #if defined(_MSC_VER) && _MSC_VER < 1900
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:61:17: note: while building module 'SwiftWASILibc' 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/string.h:61:
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- note: while building module 'SwiftWASILibc' 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/string.h:61:
62 | #endif
63 |
<module-includes>:14:10: note: in file included from <module-includes>:14:
12 | #include "string.h"
13 | #include "time.h"
14 | #include "arpa/inet.h"
| `- note: in file included from <module-includes>:14:
15 | #include "cpio.h"
16 | #include "dirent.h"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/inet.h:9:10: 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/wasm32-wasip1/arpa/inet.h:9:
7 |
8 | #include <features.h>
9 | #include <netinet/in.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/wasm32-wasip1/arpa/inet.h:9:
10 |
11 | uint32_t htonl(uint32_t);
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:10: error: could not build module 'std_inttypes_h'
7 |
8 | #include <features.h>
9 | #include <inttypes.h>
| `- error: could not build module 'std_inttypes_h'
10 | #include <sys/socket.h>
11 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "string.h"
| `- 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/string.h:61:17: error: could not build module 'SwiftWASILibc'
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- error: could not build module 'SwiftWASILibc'
62 | #endif
63 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h"
| `- note: in file included from <module-includes>:1:
2 | #include "/host/spi-builder-workspace/Sources/CLonghair/cauchy_256.h"
3 | #include "/host/spi-builder-workspace/Sources/CLonghair/gf256.h"
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: error: could not build module 'std_string_h'
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- error: could not build module 'std_string_h'
45 | #include <new> // std::nothrow
| `- note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
46 |
47 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/new:358:12: note: while building module 'std_cstdlib' 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/new:358:
356 |
357 | #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
358 | # include <cstdlib>
| `- note: while building module 'std_cstdlib' 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/new:358:
359 | # include <type_traits>
360 | #endif
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "cstdlib"
| `- 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/cstdlib:86:10: 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/cstdlib:86:
84 | #include <__config>
85 |
86 | #include <stdlib.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/cstdlib:86:
87 |
88 | #ifndef _LIBCPP_STDLIB_H
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/stdlib.h:94:19: error: could not build module 'SwiftWASILibc'
92 |
93 | # if __has_include_next(<stdlib.h>)
94 | # include_next <stdlib.h>
| `- error: could not build module 'SwiftWASILibc'
95 | # endif
96 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
45 | #include <new> // std::nothrow
| `- note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
46 |
47 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "new"
| `- 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/new:358:12: error: could not build module 'std_cstdlib'
356 |
357 | #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
358 | # include <cstdlib>
| `- error: could not build module 'std_cstdlib'
359 | # include <type_traits>
360 | #endif
/host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:10: note: while building module 'std_cstring' imported from /host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:
46 |
47 | #include <stdint.h> // uint32_t etc
48 | #include <cstring> // memcpy, memset
| `- note: while building module 'std_cstring' imported from /host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:
49 |
50 | /// Library header version
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "cstring"
| `- 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/cstring:62:10: error: could not build module 'std_string_h'
60 | #include <__type_traits/is_constant_evaluated.h>
61 |
62 | #include <string.h>
| `- error: could not build module 'std_string_h'
63 |
64 | #ifndef _LIBCPP_STRING_H
/host/spi-builder-workspace/Sources/Longhair/Longhair.swift:1:16: error: could not build C module 'CLonghair'
1 | private import CLonghair
| `- error: could not build C module 'CLonghair'
2 | import Foundation
3 |
[7/7] Compiling Longhair Longhair.swift
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:61:17: note: while building module 'SwiftWASILibc' 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/string.h:61:
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- note: while building module 'SwiftWASILibc' 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/string.h:61:
62 | #endif
63 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:10: note: while building module 'std_inttypes_h' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:
7 |
8 | #include <features.h>
9 | #include <inttypes.h>
| `- note: while building module 'std_inttypes_h' imported from /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:
10 | #include <sys/socket.h>
11 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "inttypes.h"
| `- 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/inttypes.h:252:17: 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/inttypes.h:252:
250 |
251 | #if __has_include_next(<inttypes.h>)
252 | # include_next <inttypes.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/inttypes.h:252:
253 | #endif
254 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/inttypes.h:24:15: error: cyclic dependency in module 'SwiftWASILibc': SwiftWASILibc -> std_inttypes_h -> SwiftWASILibc
22 | #endif
23 |
24 | #include_next <inttypes.h>
| `- error: cyclic dependency in module 'SwiftWASILibc': SwiftWASILibc -> std_inttypes_h -> SwiftWASILibc
25 |
26 | #if defined(_MSC_VER) && _MSC_VER < 1900
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:61:17: note: while building module 'SwiftWASILibc' 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/string.h:61:
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- note: while building module 'SwiftWASILibc' 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/string.h:61:
62 | #endif
63 |
<module-includes>:14:10: note: in file included from <module-includes>:14:
12 | #include "string.h"
13 | #include "time.h"
14 | #include "arpa/inet.h"
| `- note: in file included from <module-includes>:14:
15 | #include "cpio.h"
16 | #include "dirent.h"
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/inet.h:9:10: 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/wasm32-wasip1/arpa/inet.h:9:
7 |
8 | #include <features.h>
9 | #include <netinet/in.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/wasm32-wasip1/arpa/inet.h:9:
10 |
11 | uint32_t htonl(uint32_t);
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h:9:10: error: could not build module 'std_inttypes_h'
7 |
8 | #include <features.h>
9 | #include <inttypes.h>
| `- error: could not build module 'std_inttypes_h'
10 | #include <sys/socket.h>
11 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- note: while building module 'std_string_h' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:
45 | #include <new> // std::nothrow
46 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "string.h"
| `- 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/string.h:61:17: error: could not build module 'SwiftWASILibc'
59 |
60 | #if __has_include_next(<string.h>)
61 | # include_next <string.h>
| `- error: could not build module 'SwiftWASILibc'
62 | #endif
63 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h"
| `- note: in file included from <module-includes>:1:
2 | #include "/host/spi-builder-workspace/Sources/CLonghair/cauchy_256.h"
3 | #include "/host/spi-builder-workspace/Sources/CLonghair/gf256.h"
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:44:10: error: could not build module 'std_string_h'
42 |
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
| `- error: could not build module 'std_string_h'
45 | #include <new> // std::nothrow
| `- note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
46 |
47 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/new:358:12: note: while building module 'std_cstdlib' 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/new:358:
356 |
357 | #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
358 | # include <cstdlib>
| `- note: while building module 'std_cstdlib' 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/new:358:
359 | # include <type_traits>
360 | #endif
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "cstdlib"
| `- 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/cstdlib:86:10: 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/cstdlib:86:
84 | #include <__config>
85 |
86 | #include <stdlib.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/cstdlib:86:
87 |
88 | #ifndef _LIBCPP_STDLIB_H
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/stdlib.h:94:19: error: could not build module 'SwiftWASILibc'
92 |
93 | # if __has_include_next(<stdlib.h>)
94 | # include_next <stdlib.h>
| `- error: could not build module 'SwiftWASILibc'
95 | # endif
96 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
43 | #include <stdint.h> // uint32_t
44 | #include <string.h> // memcpy
45 | #include <new> // std::nothrow
| `- note: while building module 'std_new' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
46 |
47 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "new"
| `- 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/new:358:12: error: could not build module 'std_cstdlib'
356 |
357 | #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
358 | # include <cstdlib>
| `- error: could not build module 'std_cstdlib'
359 | # include <type_traits>
360 | #endif
/host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:10: note: while building module 'std_cstring' imported from /host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:
46 |
47 | #include <stdint.h> // uint32_t etc
48 | #include <cstring> // memcpy, memset
| `- note: while building module 'std_cstring' imported from /host/spi-builder-workspace/Sources/CLonghair/gf256.h:48:
49 |
50 | /// Library header version
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "cstring"
| `- 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/cstring:62:10: error: could not build module 'std_string_h'
60 | #include <__type_traits/is_constant_evaluated.h>
61 |
62 | #include <string.h>
| `- error: could not build module 'std_string_h'
63 |
64 | #ifndef _LIBCPP_STRING_H
/host/spi-builder-workspace/Sources/Longhair/Longhair.swift:1:16: error: could not build C module 'CLonghair'
1 | private import CLonghair
| `- error: could not build C module 'CLonghair'
2 | import Foundation
3 |
BUILD FAILURE 6.2 wasm