Build Information
Failed to build swift-image-formats, reference main (2e5dc1
), with Swift 6.1 for Wasm on 13 Jun 2025 02:48:03 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/stackotter/swift-image-formats.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/stackotter/swift-image-formats
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2e5dc1e Add Sendable and Hashable conformances to various types
Cloned https://github.com/stackotter/swift-image-formats.git
Revision (git rev-parse @):
2e5dc1ead747afab9fd517d81316d961969e3610
SUCCESS checkout https://github.com/stackotter/swift-image-formats.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/stackotter/swift-image-formats.git
https://github.com/stackotter/swift-image-formats.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "libpng",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.45",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/the-swift-collective/libpng"
},
{
"identity" : "jpeg",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/stackotter/jpeg"
},
{
"identity" : "libwebp",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/the-swift-collective/libwebp"
}
],
"manifest_display_name" : "swift-image-formats",
"name" : "swift-image-formats",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "ImageFormats",
"targets" : [
"ImageFormats"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Benchmarks",
"targets" : [
"Benchmarks"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "ImageFormatsTests",
"module_type" : "SwiftTarget",
"name" : "ImageFormatsTests",
"path" : "Tests/ImageFormatsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/ImageFormatsTests/test.jpg",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/ImageFormatsTests/test.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/ImageFormatsTests/test.webp",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"ImageFormatsTests.swift"
],
"target_dependencies" : [
"ImageFormats"
],
"type" : "test"
},
{
"c99name" : "ImageFormats",
"module_type" : "SwiftTarget",
"name" : "ImageFormats",
"path" : "Sources/ImageFormats",
"product_dependencies" : [
"LibPNG",
"JPEG",
"WebP"
],
"product_memberships" : [
"ImageFormats",
"Benchmarks"
],
"sources" : [
"BytesConvertible.swift",
"HSV.swift",
"Image.swift",
"ImageFormat.swift",
"InMemoryStream.swift",
"RGB.swift",
"RGBA.swift",
"RGBAConvertible.swift"
],
"type" : "library"
},
{
"c99name" : "Benchmarks",
"module_type" : "SwiftTarget",
"name" : "Benchmarks",
"path" : "Sources/Benchmarks",
"product_memberships" : [
"Benchmarks"
],
"sources" : [
"Benchmarks.swift"
],
"target_dependencies" : [
"ImageFormats"
],
"type" : "executable"
}
],
"tools_version" : "5.6"
}
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/the-swift-collective/libpng
Fetching https://github.com/the-swift-collective/libwebp
Fetching https://github.com/stackotter/jpeg
[1/54] Fetching libwebp
[55/84] Fetching libwebp, libpng
[85/3195] Fetching libwebp, libpng, jpeg
Fetched https://github.com/the-swift-collective/libpng from cache (2.50s)
Fetched https://github.com/the-swift-collective/libwebp from cache (2.50s)
Fetched https://github.com/stackotter/jpeg from cache (2.59s)
Computing version for https://github.com/the-swift-collective/libwebp
Computed https://github.com/the-swift-collective/libwebp at 1.4.1 (3.07s)
Computing version for https://github.com/stackotter/jpeg
Computed https://github.com/stackotter/jpeg at 1.0.2 (0.49s)
Computing version for https://github.com/the-swift-collective/libpng
Computed https://github.com/the-swift-collective/libpng at 1.6.45 (0.47s)
Fetching https://github.com/the-swift-collective/zlib.git
[1/48] Fetching zlib
Fetched https://github.com/the-swift-collective/zlib.git from cache (0.22s)
Computing version for https://github.com/the-swift-collective/zlib.git
Computed https://github.com/the-swift-collective/zlib.git at 1.3.2 (0.69s)
Creating working copy for https://github.com/the-swift-collective/zlib.git
Working copy of https://github.com/the-swift-collective/zlib.git resolved at 1.3.2
Creating working copy for https://github.com/stackotter/jpeg
Working copy of https://github.com/stackotter/jpeg resolved at 1.0.2
Creating working copy for https://github.com/the-swift-collective/libwebp
Working copy of https://github.com/the-swift-collective/libwebp resolved at 1.4.1
Creating working copy for https://github.com/the-swift-collective/libpng
Working copy of https://github.com/the-swift-collective/libpng resolved at 1.6.45
Building for debugging...
[0/192] Compiling pnglibconf pnglibconf.c
[1/192] Compiling sharpyuv_sse2.c
[2/192] Compiling sharpyuv_neon.c
[2/192] Compiling sharpyuv_cpu.c
[4/192] Compiling sharpyuv_dsp.c
[5/192] Compiling sharpyuv_csp.c
[6/192] Compiling sharpyuv_gamma.c
[7/192] Compiling wicdec.c
[8/192] Compiling pngdec.c
[9/192] Compiling tiffdec.c
[10/192] Compiling metadata.c
[11/192] Compiling sharpyuv.c
[12/192] Compiling pnmdec.c
[12/192] Compiling webpdec.c
[12/192] Compiling jpegdec.c
[15/192] Compiling imageio_util.c
[16/192] Compiling image_dec.c
[17/192] Compiling ZLibC uncompr.c
[17/192] Compiling ZLibC zutil.c
[19/192] Compiling ZLibC inftrees.c
[20/192] Compiling image_enc.c
[21/192] Compiling ZLibC inffast.c
[22/192] Compiling ZLibC trees.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:78:20: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | writ = write(state->fd, strm->next_in, put);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:78:20: note: did you mean 'fwrite'?
/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/stdio.h:103:8: note: 'fwrite' declared here
103 | size_t fwrite(const void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:108:24: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
108 | writ = write(state->fd, state->x.next, put);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:627:9: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
627 | if (close(state->fd) == -1)
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:627:9: note: did you mean 'fclose'?
/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/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
3 errors generated.
[23/192] Compiling ZLibC gzwrite.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
22 | ret = read(state->fd, buf + *have, get);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: note: did you mean 'fread'?
/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/stdio.h:102:8: note: 'fread' declared here
102 | size_t fread(void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
600 | ret = close(state->fd);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: note: did you mean 'fclose'?
/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/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
2 errors generated.
[23/192] Compiling ZLibC gzread.c
[23/192] Compiling ZLibC deflate.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
245 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: note: did you mean 'fseek'?
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/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/stdio.h:95:5: note: 'fseek' declared here
95 | int fseek(FILE *, long, int);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:251:24: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
251 | state->start = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:335:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
335 | if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:372:15: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
372 | ret = LSEEK(state->fd, offset - (z_off64_t)state->x.have, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:458:14: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
458 | offset = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
5 errors generated.
[23/192] Compiling ZLibC gzlib.c
[23/192] Compiling ZLibC inflate.c
[23/192] Compiling ZLibC gzclose.c
[23/192] Compiling ZLibC infback.c
[23/192] Write swift-version-24593BA9C3E375BF.txt
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/170] Write sources
[5/169] Compiling ZLibC gzclose.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:78:20: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | writ = write(state->fd, strm->next_in, put);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:78:20: note: did you mean 'fwrite'?
/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/stdio.h:103:8: note: 'fwrite' declared here
103 | size_t fwrite(const void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:108:24: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
108 | writ = write(state->fd, state->x.next, put);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:627:9: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
627 | if (close(state->fd) == -1)
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:627:9: note: did you mean 'fclose'?
/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/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
3 errors generated.
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
245 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: note: did you mean 'fseek'?
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/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/stdio.h:95:5: note: 'fseek' declared here
95 | int fseek(FILE *, long, int);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:251:24: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
251 | state->start = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:335:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
335 | if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:372:15: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
372 | ret = LSEEK(state->fd, offset - (z_off64_t)state->x.have, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:458:14: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
458 | offset = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
5 errors generated.
[6/169] Compiling ZLibC gzwrite.c
[6/169] Compiling ZLibC gzlib.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
22 | ret = read(state->fd, buf + *have, get);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: note: did you mean 'fread'?
/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/stdio.h:102:8: note: 'fread' declared here
102 | size_t fread(void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
600 | ret = close(state->fd);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: note: did you mean 'fclose'?
/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/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
2 errors generated.
[6/169] Compiling ZLibC gzread.c
[6/169] Compiling ZLibC crc32.c
[6/169] Compiling ZLibC deflate.c
[6/169] Compiling ZLibC infback.c
[6/169] Compiling ZLibC inflate.c
[6/169] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm