Build Information
Failed to build MNISTKit, reference 0.0.7 (15ba9b
), with Swift 6.1 for Wasm on 27 May 2025 09:46:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/octadero/mnistkit.git
Reference: 0.0.7
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/octadero/mnistkit
* tag 0.0.7 -> FETCH_HEAD
HEAD is now at 15ba9ba Update DataSetProvider.swift
Cloned https://github.com/octadero/mnistkit.git
Revision (git rev-parse @):
15ba9ba1a7e216ba427fbc994e842bed2137142c
SUCCESS checkout https://github.com/octadero/mnistkit.git at 0.0.7
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/octadero/mnistkit.git
https://github.com/octadero/mnistkit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "unarchiver",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.5",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Octadero/Unarchiver.git"
}
],
"manifest_display_name" : "MNISTKit",
"name" : "MNISTKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MNISTKit",
"targets" : [
"MNISTKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MNISTKitTests",
"module_type" : "SwiftTarget",
"name" : "MNISTKitTests",
"path" : "Tests/MNISTKitTests",
"sources" : [
"MNISTKitTests.swift"
],
"target_dependencies" : [
"MNISTKit"
],
"type" : "test"
},
{
"c99name" : "MNISTKit",
"module_type" : "SwiftTarget",
"name" : "MNISTKit",
"path" : "Sources/MNISTKit",
"product_dependencies" : [
"Unarchiver"
],
"product_memberships" : [
"MNISTKit"
],
"sources" : [
"DataSetProvider.swift",
"MNISTFile.swift",
"MNISTKit.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.25s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (0.94s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.21s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.69s)
Creating working copy for https://github.com/Octadero/Unarchiver.git
Working copy of https://github.com/Octadero/Unarchiver.git resolved at 0.0.5
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling Unarchiver Unarchiver.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module Unarchiver
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
[6/6] Compiling Unarchiver Data.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module Unarchiver
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
[3/4] Compiling Unarchiver Data.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
[4/4] Compiling Unarchiver Unarchiver.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/CZlib/shim.h:22:10: error: 'zlib.h' file not found
20 |
21 | #import <stdio.h>
22 | #import <zlib.h>
| `- error: 'zlib.h' file not found
23 |
24 | #endif
/host/spi-builder-workspace/.build/checkouts/Unarchiver/Sources/Unarchiver/Data.swift:21:8: error: could not build C module 'CZlib'
19 |
20 | import Foundation
21 | import CZlib
| `- error: could not build C module 'CZlib'
22 |
23 | /// Compression level whose rawValue is based on the zlib's constants.
BUILD FAILURE 6.1 wasm