The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-soc-metrics, reference main (7454da), with Swift 6.1 for Wasm on 16 Jul 2026 16:07:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GoodOlClint/swift-soc-metrics.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/GoodOlClint/swift-soc-metrics
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7454da9 docs: add Swift Package Index badges (swift-versions, platforms)
Cloned https://github.com/GoodOlClint/swift-soc-metrics.git
Revision (git rev-parse @):
7454da9c72d420e602e54fa07aa23885de574961
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/GoodOlClint/swift-soc-metrics.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/GoodOlClint/swift-soc-metrics.git
https://github.com/GoodOlClint/swift-soc-metrics.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Emitting module SoCMetrics
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
[5/10] Compiling SoCMetrics SoCMetrics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
[6/10] Compiling SoCMetrics SMC.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Emitting module SoCMetrics
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
[3/8] Compiling SoCMetrics SMC.swift
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
[4/8] Compiling SoCMetrics SoCMetrics.swift
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- note: while building module 'wasi_emulated_signal' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:
 29 | #include <stddef.h>
 30 | #include <stdio.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CoreFoundation.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h:28:10: error: could not build module 'wasi_emulated_signal'
 26 | #include <setjmp.h>
 27 | #endif
 28 | #include <signal.h>
    |          `- error: could not build module 'wasi_emulated_signal'
 29 | #include <stddef.h>
 30 | #include <stdio.h>
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- note: while building module 'CoreFoundation' imported from /host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:10: note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 84 | #undef _WASI_EMULATED_MMAN
 85 | #define _WASI_EMULATED_MMAN
 86 | #include <sys/mman.h>
    |          `- note: while building module 'wasi_emulated_mman' imported from /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h:86:
 87 | #elif TARGET_OS_LINUX
 88 | #include <errno.h>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sys/mman.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  1 | #ifndef _WASI_EMULATED_MMAN
  2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
    |  `- error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  3 | compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
  4 | #else
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "CIOReport.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CIOReport/CIOReport.h:12:10: error: could not build module 'CoreFoundation'
 10 | #define CIOREPORT_H
 11 |
 12 | #include <CoreFoundation/CoreFoundation.h>
    |          `- error: could not build module 'CoreFoundation'
 13 |
 14 | // Opaque subscription handle returned by IOReportCreateSubscription. Declared
/host/spi-builder-workspace/Sources/SoCMetrics/SMC.swift:1:8: error: could not build C module 'CIOReport'
  1 | import CIOReport
    |        `- error: could not build C module 'CIOReport'
  2 | import Foundation
  3 | import IOKit
BUILD FAILURE 6.1 wasm