Build Information
Failed to build media-generation-kit, reference main (8868a9), with Swift 6.1 for Wasm on 16 Jul 2026 23:39:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/drawthingsai/media-generation-kit.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/drawthingsai/media-generation-kit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8868a96 drawthings cli auth login
Cloned https://github.com/drawthingsai/media-generation-kit.git
Revision (git rev-parse @):
8868a9685d9c299816f43ef53efd455ffca437f0
SUCCESS checkout https://github.com/drawthingsai/media-generation-kit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/drawthingsai/media-generation-kit.git
https://github.com/drawthingsai/media-generation-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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
Fetching https://github.com/drawthingsai/draw-things-community.git
[1/18371] Fetching draw-things-community
Fetched https://github.com/drawthingsai/draw-things-community.git from cache (3.19s)
Fetching https://github.com/liuliu/ccv.git
[1/41985] Fetching ccv
Fetched https://github.com/liuliu/ccv.git from cache (27.28s)
Fetching https://github.com/liuliu/s4nnc.git
[1/8139] Fetching s4nnc
Fetched https://github.com/liuliu/s4nnc.git from cache (1.83s)
Fetching https://github.com/liuliu/dflat.git
[1/4475] Fetching dflat
Fetched https://github.com/liuliu/dflat.git from cache (0.51s)
Fetching https://github.com/liuliu/swift-fickling.git
[1/153] Fetching swift-fickling
Fetched https://github.com/liuliu/swift-fickling.git from cache (0.33s)
Fetching https://github.com/liuliu/swift-sentencepiece
[1/118] Fetching swift-sentencepiece
Fetched https://github.com/liuliu/swift-sentencepiece from cache (0.33s)
Fetching https://github.com/kelvin13/swift-png
[1/7511] Fetching swift-png
Fetched https://github.com/kelvin13/swift-png from cache (3.46s)
Fetching https://github.com/weiyanlin117/swift-fpzip-support.git
[1/135] Fetching swift-fpzip-support
Fetched https://github.com/weiyanlin117/swift-fpzip-support.git from cache (0.35s)
Fetching https://github.com/apple/swift-protobuf.git
[1/51764] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git from cache (3.56s)
Fetching https://github.com/apple/swift-system.git
[1/6224] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.56s)
Fetching https://github.com/google/flatbuffers.git
[1/97445] Fetching flatbuffers
Fetched https://github.com/google/flatbuffers.git from cache (3.43s)
Fetching https://github.com/weiyanlin117/swift-package-support-sentencepiece
[1/6025] Fetching swift-package-support-sentencepiece
Fetched https://github.com/weiyanlin117/swift-package-support-sentencepiece from cache (2.18s)
Fetching https://github.com/apple/swift-numerics.git
Fetching https://github.com/liuliu/swift-sqlite3-support.git
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/1868] Fetching swift-atomics
[1869/8309] Fetching swift-atomics, swift-numerics
[1870/14385] Fetching swift-atomics, swift-numerics, swift-algorithms
[1995/14504] Fetching swift-atomics, swift-numerics, swift-algorithms, swift-sqlite3-support
[2327/66012] Fetching swift-atomics, swift-numerics, swift-algorithms, swift-sqlite3-support, grpc-swift
[18058/92115] Fetching swift-atomics, swift-numerics, swift-algorithms, swift-sqlite3-support, grpc-swift, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.02s)
Fetching https://github.com/jagreenwood/swift-log-datadog.git
Fetched https://github.com/liuliu/swift-sqlite3-support.git from cache (1.07s)
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/apple/swift-atomics.git from cache (1.25s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.25s)
Fetched https://github.com/apple/swift-numerics.git from cache (1.25s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-docc-plugin
Fetched https://github.com/grpc/grpc-swift.git from cache (1.26s)
[1/295] Fetching swift-log-datadog
Fetched https://github.com/jagreenwood/swift-log-datadog.git from cache (0.36s)
[1/7773] Fetching swift-log
[7774/10098] Fetching swift-log, swift-docc-plugin
[8007/28157] Fetching swift-log, swift-docc-plugin, swift-argument-parser
[8549/45960] Fetching swift-log, swift-docc-plugin, swift-argument-parser, swift-crypto
Fetched https://github.com/apple/swift-docc-plugin from cache (0.53s)
Fetched https://github.com/apple/swift-log.git from cache (0.53s)
[5592/35862] Fetching swift-argument-parser, swift-crypto
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.69s)
[1781/17803] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.38s)
Computing version for https://github.com/liuliu/swift-sqlite3-support.git
Computed https://github.com/liuliu/swift-sqlite3-support.git at 3.47.1 (2.71s)
Computing version for https://github.com/jagreenwood/swift-log-datadog.git
Computed https://github.com/jagreenwood/swift-log-datadog.git at 0.3.0 (0.23s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.21s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.23s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.24s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3754] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.59s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.85s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.21s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.33s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.22s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.27.5 (0.99s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio.git
[1/2860] Fetching swift-nio-transport-services
[2089/9458] Fetching swift-nio-transport-services, swift-nio-extras
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.44s)
[2772/6598] Fetching swift-nio-extras
[6599/18754] Fetching swift-nio-extras, swift-nio-http2
[7937/34351] Fetching swift-nio-extras, swift-nio-http2, swift-nio-ssl
[14669/118884] Fetching swift-nio-extras, swift-nio-http2, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.18s)
[68329/112286] Fetching swift-nio-http2, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.82s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.82s)
Fetched https://github.com/apple/swift-nio.git from cache (2.85s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (3.08s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.44.0 (0.23s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.3 (0.31s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
[1/1249] Fetching swift-http-structured-headers
[826/4024] Fetching swift-http-structured-headers, swift-service-lifecycle
[1290/5243] Fetching swift-http-structured-headers, swift-service-lifecycle, swift-http-types
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.38s)
[1160/3994] Fetching swift-service-lifecycle, swift-http-types
[1929/11399] Fetching swift-service-lifecycle, swift-http-types, swift-certificates
[2389/17998] Fetching swift-service-lifecycle, swift-http-types, swift-certificates, swift-async-algorithms
Fetched https://github.com/apple/swift-http-types.git from cache (0.52s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.53s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.53s)
[1/1914] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.72s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.72s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.94s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (0.25s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.6.0 (0.22s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.2 (0.24s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.3 (0.43s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (0.24s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.21s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.3 (0.27s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (0.71s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.22s)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/liuliu/swift-sqlite3-support.git
Working copy of https://github.com/liuliu/swift-sqlite3-support.git resolved at 3.47.1
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.44.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at fbd61a676d79cbde05cd4fda3cc46e94d6b8f0eb
Creating working copy for https://github.com/liuliu/ccv.git
Working copy of https://github.com/liuliu/ccv.git resolved at ae1de9962437c14ff7d84af9bac66305e7ce5927
Creating working copy for https://github.com/liuliu/dflat.git
Working copy of https://github.com/liuliu/dflat.git resolved at 73925e51e4f44add842177a229f9990cb13711ff
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.27.5
Creating working copy for https://github.com/liuliu/s4nnc.git
Working copy of https://github.com/liuliu/s4nnc.git resolved at e3a83b351b84a7917fefd28366a3b9417fee3b2e
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at d57a5aecf24a25b32ec4a74be2f5d0a995a47c4b
Creating working copy for https://github.com/drawthingsai/draw-things-community.git
Working copy of https://github.com/drawthingsai/draw-things-community.git resolved at d473a2f148b3e7dc9b90d0b7cfccc5cda999eb66
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/weiyanlin117/swift-package-support-sentencepiece
Working copy of https://github.com/weiyanlin117/swift-package-support-sentencepiece resolved at a39a5be0b3e3ad9bcb19b085af7dd891c00aa3d2
Creating working copy for https://github.com/liuliu/swift-sentencepiece
Working copy of https://github.com/liuliu/swift-sentencepiece resolved at 8d17bf2e017c97563e8805545d676be9739b6c0e
Creating working copy for https://github.com/jagreenwood/swift-log-datadog.git
Working copy of https://github.com/jagreenwood/swift-log-datadog.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/kelvin13/swift-png
Working copy of https://github.com/kelvin13/swift-png resolved at 075dfb248ae327822635370e9d4f94a5d3fe93b2
Creating working copy for https://github.com/google/flatbuffers.git
Working copy of https://github.com/google/flatbuffers.git resolved at c92e78a9f841a6110ec27180d68d1f7f2afda21d
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.3
Creating working copy for https://github.com/liuliu/swift-fickling.git
Working copy of https://github.com/liuliu/swift-fickling.git resolved at 5c982bf479c4cdf8c7f72002cd79ec88b553ab34
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.34.3
Creating working copy for https://github.com/weiyanlin117/swift-fpzip-support.git
Working copy of https://github.com/weiyanlin117/swift-fpzip-support.git resolved at 0ec6d4668c9c83bc3da0f8b2d6dfc46da0b98609
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
[5/5] Compiling plugin GRPCSwiftPlugin
[6/6] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[6/1339] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/dflat/src/sqlite/os.c:1:
/host/spi-builder-workspace/.build/checkouts/dflat/src/sqlite/include/os.h:1:10: fatal error: 'pthread.h' file not found
1 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[12/1339] Compiling _SQLiteDflatOSShim os.c
[12/1339] Compiling rsaz-avx2-apple.S
[12/1339] Compiling p256_beeu-x86_64-asm-linux.S
[12/1339] Compiling v3_extku.cc
[12/1339] Compiling SQLite3 sqlite3.c
[12/1339] Compiling v3_enum.cc
[12/1339] Compiling _AtomicsShims.c
[12/1339] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
[5/5] Compiling plugin GRPCSwiftPlugin
[6/6] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[6/1333] Write sources
[9/1333] Compiling stringprintf.cc
[9/1333] Compiling structurally_valid.cc
[9/1333] Compiling zero_copy_stream.cc
[12/1333] Compiling time.cc
[12/1333] Compiling zero_copy_stream_impl.cc
[14/1333] Compiling zero_copy_stream_impl_lite.cc
[15/1333] Compiling wire_format_lite.cc
[16/1333] Compiling io_win32.cc
[17/1333] Compiling strutil.cc
[18/1333] Compiling stringpiece.cc
[19/1333] Compiling statusor.cc
[20/1333] Compiling status.cc
[21/1333] Compiling int128.cc
[22/1333] Compiling parse_context.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/third_party/protobuf-lite/message_lite.cc:56:
/host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/google/protobuf/stubs/mutex.h:107:8: error: no type named 'mutex' in namespace 'std'
107 | std::mutex mu_;
| ~~~~~^
1 error generated.
[23/1333] Compiling message_lite.cc
[23/1333] Compiling extension_set.cc
[23/1333] Compiling common.cc
[23/1333] Compiling generated_message_table_driven_lite.cc
[23/1333] Compiling generated_message_util.cc
[23/1333] Compiling generated_enum_util.cc
[23/1333] Compiling repeated_field.cc
[23/1333] Compiling implicit_weak_message.cc
BUILD FAILURE 6.1 wasm