The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-longhair, reference 0.0.1 (1c2330), with Swift 6.3 for Wasm on 16 Apr 2026 06:57:30 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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sena-mike/swift-longhair.git
Reference: 0.0.1
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
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 1c23301 Update docs
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 @):
1c2330135ba837951110dac598c7a8aaf45cc660
SUCCESS checkout https://github.com/sena-mike/swift-longhair.git at 0.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/5] Write sources
[1/5] Compiling CLonghair gf256.cpp
[2/5] Compiling CLonghair SiameseTools.cpp
[3/5] Write swift-version-24593BA9C3E375BF.txt
[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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 65 | #  endif
 66 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:19: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:
253 |
254 | #  if __has_include_next(<inttypes.h>)
255 | #    include_next <inttypes.h>
    |                   `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:
256 | #  endif
257 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 65 | #  endif
 66 |
<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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: error: could not build module 'SwiftWASILibc'
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 65 | #  endif
 66 |
<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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:12: note: while building module 'std_ctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:
 40 | #  include <__config>
 41 |
 42 | #  include <ctype.h>
    |            `- note: while building module 'std_ctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:
 43 |
 44 | #  ifndef _LIBCPP_CTYPE_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "ctype.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/ctype.h:42:19: error: could not build module 'SwiftWASILibc'
40 |
41 | #  if __has_include_next(<ctype.h>)
42 | #    include_next <ctype.h>
   |                   `- error: could not build module 'SwiftWASILibc'
43 | #  endif
44 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' 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 "algorithm"
    |          `- note: in file included from <module-includes>:1:
  2 | #include "__algorithm/adjacent_find.h"
  3 | #include "__algorithm/all_of.h"
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:
1854 | #  include <__algorithm/fill.h>
1855 | #  include <__algorithm/fill_n.h>
1856 | #  include <__algorithm/find.h>
     |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:
1857 | #  include <__algorithm/find_end.h>
1858 | #  include <__algorithm/find_first_of.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:
 30 |
 31 | #if _LIBCPP_HAS_WIDE_CHARACTERS
 32 | #  include <cwchar>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:
 33 | #endif
 34 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:
114 | #  include <__type_traits/is_same.h>
115 | #  include <__type_traits/remove_cv.h>
116 | #  include <cwctype>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:
117 |
118 | #  include <wchar.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:
 54 | #else
 55 | #  include <__config>
 56 | #  include <cctype>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:
 57 |
 58 | #  include <wctype.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:12: error: could not build module 'std_ctype_h'
 40 | #  include <__config>
 41 |
 42 | #  include <ctype.h>
    |            `- error: could not build module 'std_ctype_h'
 43 |
 44 | #  ifndef _LIBCPP_CTYPE_H
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:12: note: while building module 'std_wctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:
 56 | #  include <cctype>
 57 |
 58 | #  include <wctype.h>
    |            `- note: while building module 'std_wctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:
 59 |
 60 | #  ifndef _LIBCPP_WCTYPE_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "wctype.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:19: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:
64 | // will fail because it does not refer to the same declaration.
65 | #  if __has_include_next(<wctype.h>)
66 | #    include_next <wctype.h>
   |                   `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:
67 | #    define _LIBCPP_INCLUDED_C_LIBRARY_WCTYPE_H
68 | #  endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wctype.h:8:10: error: could not build module 'SwiftWASILibc'
 6 | #endif
 7 |
 8 | #include <features.h>
   |          `- error: could not build module 'SwiftWASILibc'
 9 |
10 | #define __NEED_wint_t
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:12: note: while building module 'std_math_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:
329 |
330 | #  include <__math/special_functions.h>
331 | #  include <math.h>
    |            `- note: while building module 'std_math_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:
332 |
333 | #  ifndef _LIBCPP_MATH_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "math.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/math.h:304:21: error: could not build module 'SwiftWASILibc'
302 |
303 | #    if __has_include_next(<math.h>)
304 | #      include_next <math.h>
    |                     `- error: could not build module 'SwiftWASILibc'
305 | #    endif
306 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:12: note: while building module 'std_errno_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:
28 | #  include <__config>
29 |
30 | #  include <errno.h>
   |            `- note: while building module 'std_errno_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:
31 |
32 | #  ifndef _LIBCPP_ERRNO_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "errno.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/errno.h:35:19: error: could not build module 'SwiftWASILibc'
 33 |
 34 | #  if __has_include_next(<errno.h>)
 35 | #    include_next <errno.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 36 | #  endif
 37 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:12: note: while building module 'std_fenv_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:
58 | #  include <__config>
59 |
60 | #  include <fenv.h>
   |            `- note: while building module 'std_fenv_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:
61 |
62 | #  ifndef _LIBCPP_FENV_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "fenv.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/fenv.h:62:19: error: could not build module 'SwiftWASILibc'
 60 |
 61 | #  if __has_include_next(<fenv.h>)
 62 | #    include_next <fenv.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 63 | #  endif
 64 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:14: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:
47 | // <signal.h> is not provided by libc++
48 | #  if __has_include(<signal.h>)
49 | #    include <signal.h>
   |              `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:
50 | #    ifdef _LIBCPP_SIGNAL_H
51 | #      error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "signal.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:12: note: while building module 'std_uchar_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:
43 | #  include <__cstddef/size_t.h>
44 |
45 | #  include <uchar.h>
   |            `- note: while building module 'std_uchar_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:
46 |
47 | #  ifndef _LIBCPP_UCHAR_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "uchar.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:21: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:
49 | // get the declaration of mbstate_t too.
50 | #    if __has_include_next(<uchar.h>)
51 | #      include_next <uchar.h>
   |                     `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:
52 | #    else
53 | #      include <__mbstate_t.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/uchar.h:16:10: error: could not build module 'SwiftWASILibc'
14 | #define __NEED_size_t
15 |
16 | #include <features.h>
   |          `- error: could not build module 'SwiftWASILibc'
17 | #include <bits/alltypes.h>
18 |
/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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 65 | #  endif
 66 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:19: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:
253 |
254 | #  if __has_include_next(<inttypes.h>)
255 | #    include_next <inttypes.h>
    |                   `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/inttypes.h:255:
256 | #  endif
257 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- note: while building module 'SwiftWASILibc' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:
 65 | #  endif
 66 |
<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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-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.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/string.h:64:19: error: could not build module 'SwiftWASILibc'
 62 |
 63 | #  if __has_include_next(<string.h>)
 64 | #    include_next <string.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 65 | #  endif
 66 |
<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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:12: note: while building module 'std_ctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:
 40 | #  include <__config>
 41 |
 42 | #  include <ctype.h>
    |            `- note: while building module 'std_ctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:
 43 |
 44 | #  ifndef _LIBCPP_CTYPE_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "ctype.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/ctype.h:42:19: error: could not build module 'SwiftWASILibc'
40 |
41 | #  if __has_include_next(<ctype.h>)
42 | #    include_next <ctype.h>
   |                   `- error: could not build module 'SwiftWASILibc'
43 | #  endif
44 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' 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 "algorithm"
    |          `- note: in file included from <module-includes>:1:
  2 | #include "__algorithm/adjacent_find.h"
  3 | #include "__algorithm/all_of.h"
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:
1854 | #  include <__algorithm/fill.h>
1855 | #  include <__algorithm/fill_n.h>
1856 | #  include <__algorithm/find.h>
     |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/algorithm:1856:
1857 | #  include <__algorithm/find_end.h>
1858 | #  include <__algorithm/find_first_of.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:
 30 |
 31 | #if _LIBCPP_HAS_WIDE_CHARACTERS
 32 | #  include <cwchar>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__algorithm/find.h:32:
 33 | #endif
 34 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:
114 | #  include <__type_traits/is_same.h>
115 | #  include <__type_traits/remove_cv.h>
116 | #  include <cwctype>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwchar:116:
117 |
118 | #  include <wchar.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:12: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:
 54 | #else
 55 | #  include <__config>
 56 | #  include <cctype>
    |            `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:56:
 57 |
 58 | #  include <wctype.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cctype:42:12: error: could not build module 'std_ctype_h'
 40 | #  include <__config>
 41 |
 42 | #  include <ctype.h>
    |            `- error: could not build module 'std_ctype_h'
 43 |
 44 | #  ifndef _LIBCPP_CTYPE_H
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:12: note: while building module 'std_wctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:
 56 | #  include <cctype>
 57 |
 58 | #  include <wctype.h>
    |            `- note: while building module 'std_wctype_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cwctype:58:
 59 |
 60 | #  ifndef _LIBCPP_WCTYPE_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "wctype.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:19: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:
64 | // will fail because it does not refer to the same declaration.
65 | #  if __has_include_next(<wctype.h>)
66 | #    include_next <wctype.h>
   |                   `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/wctype.h:66:
67 | #    define _LIBCPP_INCLUDED_C_LIBRARY_WCTYPE_H
68 | #  endif
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wctype.h:8:10: error: could not build module 'SwiftWASILibc'
 6 | #endif
 7 |
 8 | #include <features.h>
   |          `- error: could not build module 'SwiftWASILibc'
 9 |
10 | #define __NEED_wint_t
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:12: note: while building module 'std_math_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:
329 |
330 | #  include <__math/special_functions.h>
331 | #  include <math.h>
    |            `- note: while building module 'std_math_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cmath:331:
332 |
333 | #  ifndef _LIBCPP_MATH_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "math.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/math.h:304:21: error: could not build module 'SwiftWASILibc'
302 |
303 | #    if __has_include_next(<math.h>)
304 | #      include_next <math.h>
    |                     `- error: could not build module 'SwiftWASILibc'
305 | #    endif
306 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:12: note: while building module 'std_errno_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:
28 | #  include <__config>
29 |
30 | #  include <errno.h>
   |            `- note: while building module 'std_errno_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cerrno:30:
31 |
32 | #  ifndef _LIBCPP_ERRNO_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "errno.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/errno.h:35:19: error: could not build module 'SwiftWASILibc'
 33 |
 34 | #  if __has_include_next(<errno.h>)
 35 | #    include_next <errno.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 36 | #  endif
 37 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:12: note: while building module 'std_fenv_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:
58 | #  include <__config>
59 |
60 | #  include <fenv.h>
   |            `- note: while building module 'std_fenv_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cfenv:60:
61 |
62 | #  ifndef _LIBCPP_FENV_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "fenv.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/fenv.h:62:19: error: could not build module 'SwiftWASILibc'
 60 |
 61 | #  if __has_include_next(<fenv.h>)
 62 | #    include_next <fenv.h>
    |                   `- error: could not build module 'SwiftWASILibc'
 63 | #  endif
 64 |
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:14: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:
47 | // <signal.h> is not provided by libc++
48 | #  if __has_include(<signal.h>)
49 | #    include <signal.h>
   |              `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/csignal:49:
50 | #    ifdef _LIBCPP_SIGNAL_H
51 | #      error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "signal.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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
/host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:10: note: while building module 'std' 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' imported from /host/spi-builder-workspace/Sources/CLonghair/SiameseTools.h:45:
 46 |
 47 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:12: note: while building module 'std_uchar_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:
43 | #  include <__cstddef/size_t.h>
44 |
45 | #  include <uchar.h>
   |            `- note: while building module 'std_uchar_h' imported from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cuchar:45:
46 |
47 | #  ifndef _LIBCPP_UCHAR_H
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "uchar.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:21: note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:
49 | // get the declaration of mbstate_t too.
50 | #    if __has_include_next(<uchar.h>)
51 | #      include_next <uchar.h>
   |                     `- note: in file included from /root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/uchar.h:51:
52 | #    else
53 | #      include <__mbstate_t.h>
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/uchar.h:16:10: error: could not build module 'SwiftWASILibc'
14 | #define __NEED_size_t
15 |
16 | #include <features.h>
   |          `- error: could not build module 'SwiftWASILibc'
17 | #include <bits/alltypes.h>
18 |
/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.3 wasm