Build Information
Failed to build SwiftMail, reference 1.6.3 (90ce57), with Swift 6.1 for Wasm on 1 May 2026 12:12:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Cocoanetics/SwiftMail.git
Reference: 1.6.3
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/Cocoanetics/SwiftMail
* tag 1.6.3 -> FETCH_HEAD
HEAD is now at 90ce57a Use forked swift-nio-imap 0.3.0-pre
Cloned https://github.com/Cocoanetics/SwiftMail.git
Revision (git rev-parse @):
90ce57aaab3ec8c904b4d6ceee106f699fef43d4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Cocoanetics/SwiftMail.git at 1.6.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Cocoanetics/SwiftMail.git
https://github.com/Cocoanetics/SwiftMail.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio-ssl
Fetching https://github.com/odrobnik/swift-nio-imap
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-testing
[1/2287] Fetching swift-docc-plugin
[230/19844] Fetching swift-docc-plugin, swift-argument-parser
[780/33757] Fetching swift-docc-plugin, swift-argument-parser, swift-nio-imap
[781/49197] Fetching swift-docc-plugin, swift-argument-parser, swift-nio-imap, swift-nio-ssl
[6191/86943] Fetching swift-docc-plugin, swift-argument-parser, swift-nio-imap, swift-nio-ssl, swift-testing
Fetched https://github.com/apple/swift-argument-parser from cache (2.42s)
Fetched https://github.com/odrobnik/swift-nio-imap from cache (2.44s)
[37871/55473] Fetching swift-docc-plugin, swift-nio-ssl, swift-testing
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-log.git
[51151/62282] Fetching swift-docc-plugin, swift-nio-ssl, swift-testing, swift-log
[59041/145512] Fetching swift-docc-plugin, swift-nio-ssl, swift-testing, swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (1.38s)
Fetching https://github.com/thebarndog/swift-dotenv
[59635/138703] Fetching swift-docc-plugin, swift-nio-ssl, swift-testing, swift-nio
[63797/139174] Fetching swift-docc-plugin, swift-nio-ssl, swift-testing, swift-nio, swift-dotenv
Fetched https://github.com/apple/swift-docc-plugin from cache (4.45s)
[63482/136887] Fetching swift-nio-ssl, swift-testing, swift-nio, swift-dotenv
Fetched https://github.com/apple/swift-testing from cache (4.51s)
[26731/99141] Fetching swift-nio-ssl, swift-nio, swift-dotenv
Fetched https://github.com/thebarndog/swift-dotenv from cache (0.64s)
[27093/98670] Fetching swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-collections.git
Fetched https://github.com/apple/swift-nio-ssl from cache (5.59s)
[36257/107124] Fetching swift-nio, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.84s)
[59926/83230] Fetching swift-nio
Fetched https://github.com/apple/swift-nio from cache (12.76s)
Computing version for https://github.com/apple/swift-testing
Computed https://github.com/apple/swift-testing at 0.12.0 (16.58s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/75038] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.34s)
Computing version for https://github.com/thebarndog/swift-dotenv
Computed https://github.com/thebarndog/swift-dotenv at 2.1.0 (10.49s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (1.28s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (4.16s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3709] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.76s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.10s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.38s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.69s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.37.0 (1.09s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.99.0 (2.08s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[1002/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.90s)
Fetched https://github.com/apple/swift-system.git from cache (1.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.07s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (1.15s)
Computing version for https://github.com/odrobnik/swift-nio-imap
Computed https://github.com/odrobnik/swift-nio-imap at 0.3.0-pre (1.07s)
Fetching https://github.com/apple/swift-se0270-range-set.git
[1/76] Fetching swift-se0270-range-set
Fetched https://github.com/apple/swift-se0270-range-set.git from cache (0.34s)
Computing version for https://github.com/apple/swift-se0270-range-set.git
Computed https://github.com/apple/swift-se0270-range-set.git at 1.0.1 (1.34s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (1.28s)
Creating working copy for https://github.com/apple/swift-nio-ssl
Working copy of https://github.com/apple/swift-nio-ssl resolved at 2.37.0
Creating working copy for https://github.com/apple/swift-se0270-range-set.git
Working copy of https://github.com/apple/swift-se0270-range-set.git resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-testing
Working copy of https://github.com/apple/swift-testing resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.99.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
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.0
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/thebarndog/swift-dotenv
Working copy of https://github.com/thebarndog/swift-dotenv resolved at 2.1.0
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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/odrobnik/swift-nio-imap
Working copy of https://github.com/odrobnik/swift-nio-imap resolved at 0.3.0-pre
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/468] Compiling a_d2i_fp.cc
[5/468] Compiling a_dup.cc
[5/468] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.cc:18:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/../internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[8/468] Compiling a_bitstr.cc
[8/468] Compiling a_octet.cc
[8/468] Compiling _AtomicsShims.c
[8/468] Compiling a_strex.cc
[8/468] Compiling a_bool.cc
[8/468] Compiling a_object.cc
[8/468] Compiling a_strnid.cc
[8/468] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/464] Write sources
[23/464] Compiling CNIOWASI CNIOWASI.c
[23/464] Compiling CNIOWindows shim.c
[25/464] Compiling CNIOWindows WSAStartup.c
[26/464] Compiling CNIOLinux liburing_shims.c
[26/464] Compiling CNIOOpenBSD shim.c
[28/464] Compiling CNIOLinux shim.c
[29/464] Compiling CNIOPosix event_loop_id.c
[30/464] Compiling CNIODarwin shim.c
[31/464] Compiling _AtomicsShims.c
[32/464] Write swift-version-24593BA9C3E375BF.txt
[33/464] Compiling fiat_p256_adx_mul.S
[34/464] Compiling fiat_p256_adx_sqr.S
[35/464] Compiling fiat_curve25519_adx_square.S
[36/464] Compiling fiat_curve25519_adx_mul.S
[37/464] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[38/486] Compiling tls_record.cc
[38/486] Compiling tls13_server.cc
[39/486] Emitting module _NIOBase64
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
[39/486] Compiling tls_method.cc
BUILD FAILURE 6.1 wasm