Build Information
Failed to build PeripheryKit, reference main (a02676
), with Swift 6.1 for Wasm on 29 May 2025 12:29:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CmST0us/PeripheryKit.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/CmST0us/PeripheryKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a02676d package: remote sysroot copy plugin package: add static and shared product target Cperiphery: bump to 1.0.0 version
Cloned https://github.com/CmST0us/PeripheryKit.git
Revision (git rev-parse @):
a02676dd096523ec792fab3574ae490b421f0364
SUCCESS checkout https://github.com/CmST0us/PeripheryKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/CmST0us/PeripheryKit.git
https://github.com/CmST0us/PeripheryKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "PeripheryKit",
"name" : "PeripheryKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PeripheryKit_static",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "PeripheryKit_shared",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "pio",
"targets" : [
"pio"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "pio",
"module_type" : "SwiftTarget",
"name" : "pio",
"path" : "Sources/pio",
"product_memberships" : [
"pio"
],
"sources" : [
"pio.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "executable"
},
{
"c99name" : "PeripheryKitTests",
"module_type" : "SwiftTarget",
"name" : "PeripheryKitTests",
"path" : "Tests/PeripheryKitTests",
"sources" : [
"PeripheryKitTests.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "test"
},
{
"c99name" : "PeripheryKit",
"module_type" : "SwiftTarget",
"name" : "PeripheryKit",
"path" : "Sources/PeripheryKit",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"Button.swift",
"Buzzer.swift",
"Delay.swift",
"GPIO.swift",
"GPIOEventDispatcher.swift",
"I2C.swift",
"LED.swift",
"PWM.swift",
"Utils/Data+Int.swift",
"Utils/Int+Data.swift"
],
"target_dependencies" : [
"Cperiphery"
],
"type" : "library"
},
{
"c99name" : "DownloadCPeriphery",
"module_type" : "PluginTarget",
"name" : "DownloadCPeriphery",
"path" : "Plugins/DownloadCPeriphery",
"plugin_capability" : {
"intent" : {
"description" : "Download c-periphery",
"type" : "custom",
"verb" : "download-c-periphery"
},
"permissions" : [
{
"network_scope" : {
"all" : {
"ports" : [
443
]
}
},
"reason" : "Download packages",
"type" : "allowNetworkConnections"
},
{
"network_scope" : {
"none" : {
}
},
"reason" : "Write packages",
"type" : "writeToPackageDirectory"
}
],
"type" : "command"
},
"sources" : [
"DownloadCPeriphery.swift"
],
"type" : "plugin"
},
{
"c99name" : "Cperiphery",
"module_type" : "ClangTarget",
"name" : "Cperiphery",
"path" : "Sources/Cperiphery",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"gpio.c",
"gpio_cdev_v1.c",
"gpio_cdev_v2.c",
"gpio_sysfs.c",
"i2c.c",
"led.c",
"mmio.c",
"pwm.c",
"serial.c",
"shims.c",
"spi.c",
"version.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
/host/spi-builder-workspace/Sources/Cperiphery/i2c.c:20:10: fatal error: 'linux/i2c.h' file not found
20 | #include <linux/i2c.h>
| ^~~~~~~~~~~~~
1 error generated.
[1/24] Compiling Cperiphery i2c.c
/host/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c:21:10: fatal error: 'linux/gpio.h' file not found
21 | #include <linux/gpio.h>
| ^~~~~~~~~~~~~~
[1/24] Compiling Cperiphery gpio_cdev_v1.c
In file included from /host/spi-builder-workspace/Sources/Cperiphery/mmio.c:14:
/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"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
[1/24] Compiling Cperiphery mmio.c
[1/24] Compiling Cperiphery led.c
[1/24] Compiling Cperiphery gpio_cdev_v2.c
[1/24] Compiling Cperiphery pwm.c
/host/spi-builder-workspace/Sources/Cperiphery/gpio.c:73:30: error: use of undeclared identifier 'POLLPRI'
73 | (POLLPRI | POLLERR) : (POLLIN | POLLRDNORM);
| ^
1 error generated.
[1/24] Compiling Cperiphery gpio.c
[1/24] Compiling Cperiphery gpio_sysfs.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Write sources
/host/spi-builder-workspace/Sources/Cperiphery/shims.c:24:102: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
24 | printf("clock_nanosleep interrupted, remaining time: %ld seconds and %ld nanoseconds\n", rem.tv_sec, rem.tv_nsec);
| ~~~ ^~~~~~~~~~
| %lld
1 warning generated.
[3/24] Compiling Cperiphery shims.c
/host/spi-builder-workspace/Sources/Cperiphery/spi.c:19:10: fatal error: 'linux/ioctl.h' file not found
19 | #include <linux/ioctl.h>
| ^~~~~~~~~~~~~~~
1 error generated.
[4/24] Compiling Cperiphery spi.c
[4/24] Compiling Cperiphery i2c.c
/host/spi-builder-workspace/Sources/Cperiphery/serial.c:22:10: fatal error: 'termios.h' file not found
22 | #include <termios.h>
| ^~~~~~~~~~~
1 error generated.
[4/24] Compiling Cperiphery serial.c
[4/24] Compiling Cperiphery led.c
[4/24] Compiling Cperiphery mmio.c
[4/24] Compiling Cperiphery pwm.c
[4/24] Compiling Cperiphery version.c
[4/24] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm