Build Information
Failed to build AppAttest, reference main (f4fc1e), with Swift 6.1 for Wasm on 5 Jan 2026 11:21:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iansampson/AppAttest.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/iansampson/AppAttest
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f4fc1ea Merge pull request #6 from ronaldmannak/main
Cloned https://github.com/iansampson/AppAttest.git
Revision (git rev-parse @):
f4fc1ea12c712d6833905d9c11c73c1601ae4001
SUCCESS checkout https://github.com/iansampson/AppAttest.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/iansampson/AppAttest.git
https://github.com/iansampson/AppAttest.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swiftcbor",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.6",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/myfreeweb/SwiftCBOR"
},
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "3.1.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto"
},
{
"identity" : "anchor",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/iansampson/Anchor"
}
],
"manifest_display_name" : "AppAttest",
"name" : "AppAttest",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "AppAttest",
"targets" : [
"AppAttest"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AppAttestTests",
"module_type" : "SwiftTarget",
"name" : "AppAttestTests",
"path" : "Tests/AppAttestTests",
"sources" : [
"AppAttestTests.swift",
"AssertionSample.swift",
"AttestationSample.swift",
"TestData.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"AppAttest"
],
"type" : "test"
},
{
"c99name" : "AppAttest",
"module_type" : "SwiftTarget",
"name" : "AppAttest",
"path" : "Sources/AppAttest",
"product_dependencies" : [
"SwiftCBOR",
"Crypto",
"Anchor"
],
"product_memberships" : [
"AppAttest"
],
"sources" : [
"API.swift",
"ASN1/ASN1.swift",
"ASN1/Basic ASN1 Types/ASN1BitString.swift",
"ASN1/Basic ASN1 Types/ASN1Identifier.swift",
"ASN1/Basic ASN1 Types/ASN1Integer.swift",
"ASN1/Basic ASN1 Types/ASN1OctetString.swift",
"ASN1/Basic ASN1 Types/ArraySliceBigint.swift",
"ASN1/Basic ASN1 Types/ObjectIdentifier.swift",
"ASN1/CryptoKitErrors.swift",
"ASN1/SubjectPublicKeyInfo.swift",
"Assertion/Assertion.swift",
"Attestation/Attestation.swift",
"Attestation/AuthenticatorData.swift",
"Attestation/Challenge.swift",
"Attestation/Flatten.swift",
"Attestation/Octet.swift",
"Attestation/RootCertificate.swift",
"Attestation/Validation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/iansampson/Anchor
[1/1945] Fetching anchor
Fetched https://github.com/iansampson/Anchor from cache (0.93s)
Fetching https://github.com/apple/swift-crypto
Fetching https://github.com/myfreeweb/SwiftCBOR
[1/1422] Fetching swiftcbor
[1296/18882] Fetching swiftcbor, swift-crypto
Fetched https://github.com/myfreeweb/SwiftCBOR from cache (0.53s)
[350/17460] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto from cache (3.18s)
Computing version for https://github.com/myfreeweb/SwiftCBOR
Computed https://github.com/myfreeweb/SwiftCBOR at 0.6.0 (4.21s)
Computing version for https://github.com/apple/swift-crypto
Computed https://github.com/apple/swift-crypto at 3.15.1 (3.31s)
Fetching https://github.com/apple/swift-asn1.git
[1/1692] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.47s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (4.60s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-crypto
Working copy of https://github.com/apple/swift-crypto resolved at 3.15.1
Creating working copy for https://github.com/iansampson/Anchor
Working copy of https://github.com/iansampson/Anchor resolved at main (1b1d5a9)
Creating working copy for https://github.com/myfreeweb/SwiftCBOR
Working copy of https://github.com/myfreeweb/SwiftCBOR resolved at 0.6.0
Building for debugging...
[0/775] Write sources
[3/775] Compiling des.cc
[3/775] Write sources
[5/775] Compiling pair.cc
[6/775] Write swift-version-24593BA9C3E375BF.txt
[7/775] Compiling a_d2i_fp.cc
[8/776] Compiling fiat_p256_adx_sqr.S
[9/785] Compiling fiat_p256_adx_mul.S
[10/791] Compiling fiat_curve25519_adx_square.S
[11/791] Compiling fiat_curve25519_adx_mul.S
[12/791] Compiling md5-x86_64-apple.S
[13/791] Compiling md5-x86_64-linux.S
[14/791] Compiling md5-586-linux.S
[15/791] Compiling md5-586-apple.S
[16/791] Compiling a_bool.cc
[17/791] Compiling CCryptoBoringSSLShims shims.c
[18/791] Compiling chacha20_poly1305_x86_64-linux.S
[19/791] Compiling params.cc
[20/791] Compiling chacha20_poly1305_x86_64-apple.S
[21/791] Compiling dh_asn1.cc
[22/791] Compiling chacha20_poly1305_armv8-linux.S
[23/791] Compiling chacha20_poly1305_armv8-win.S
[24/791] Compiling chacha20_poly1305_armv8-apple.S
[25/791] Compiling chacha-x86_64-linux.S
[26/791] Compiling chacha-x86_64-apple.S
[27/791] Compiling chacha-armv8-win.S
[28/791] Compiling chacha-x86-linux.S
[29/791] Compiling chacha-x86-apple.S
[30/791] Compiling chacha-armv8-linux.S
[31/791] Compiling chacha-armv4-linux.S
[32/791] Compiling chacha-armv8-apple.S
[33/791] Compiling aes128gcmsiv-x86_64-linux.S
[34/791] Compiling aes128gcmsiv-x86_64-apple.S
[35/791] Compiling pkcs8.cc
[36/791] Compiling x86_64-mont5-linux.S
[37/791] Compiling x86_64-mont5-apple.S
[38/791] Compiling x86_64-mont-linux.S
[39/791] Compiling x86_64-mont-apple.S
[40/791] Compiling x86-mont-linux.S
[41/791] Compiling vpaes-x86_64-linux.S
[42/791] Compiling x86-mont-apple.S
[43/791] Compiling vpaes-x86-apple.S
[44/791] Compiling vpaes-x86_64-apple.S
[45/791] Compiling vpaes-x86-linux.S
[46/791] Compiling vpaes-armv8-linux.S
[47/791] Compiling vpaes-armv8-win.S
[48/791] Compiling vpaes-armv8-apple.S
[49/791] Compiling vpaes-armv7-linux.S
[50/791] Compiling sha512-x86_64-linux.S
[51/791] Compiling sha512-x86_64-apple.S
[52/791] Compiling sha512-armv8-win.S
[53/791] Compiling sha512-armv8-apple.S
[54/791] Compiling sha512-586-linux.S
[55/791] Compiling sha512-armv4-linux.S
[56/791] Compiling sha512-armv8-linux.S
[57/791] Compiling sha512-586-apple.S
[58/791] Compiling sha256-x86_64-linux.S
[59/791] Compiling sha256-armv8-win.S
[60/791] Compiling sha256-armv8-linux.S
[61/791] Compiling sha256-586-linux.S
[62/791] Compiling sha256-armv8-apple.S
[63/791] Compiling sha256-x86_64-apple.S
[64/791] Compiling sha256-armv4-linux.S
[65/791] Compiling sha256-586-apple.S
[66/791] Compiling sha1-x86_64-linux.S
[67/791] Compiling sha1-armv8-apple.S
[68/791] Compiling sha1-x86_64-apple.S
[69/791] Compiling sha1-armv8-linux.S
[70/791] Compiling sha1-armv4-large-linux.S
[71/791] Compiling sha1-armv8-win.S
[72/791] Compiling sha1-586-apple.S
[73/791] Compiling sha1-586-linux.S
[74/791] Compiling rsaz-avx2-linux.S
[75/791] Compiling rsaz-avx2-apple.S
[76/791] Compiling rdrand-x86_64-linux.S
[77/791] Compiling rdrand-x86_64-apple.S
[78/791] Compiling p256_beeu-x86_64-asm-linux.S
[79/791] Compiling p256_beeu-armv8-asm-linux.S
[80/791] Compiling p256_beeu-x86_64-asm-apple.S
[81/791] Compiling p256_beeu-armv8-asm-win.S
[82/791] Compiling p256_beeu-armv8-asm-apple.S
[83/791] Compiling p256-x86_64-asm-linux.S
[84/791] Compiling err_data.cc
[85/791] Compiling p256-x86_64-asm-apple.S
[86/791] Compiling p256-armv8-asm-linux.S
[87/791] Compiling p256-armv8-asm-win.S
[88/791] Compiling p256-armv8-asm-apple.S
[89/791] Compiling ghashv8-armv8-win.S
[90/791] Compiling ghashv8-armv8-apple.S
[91/791] Compiling ghashv8-armv8-linux.S
[92/791] Compiling ghashv8-armv7-linux.S
[93/791] Compiling ghash-x86-linux.S
[94/791] Compiling ghash-x86_64-apple.S
[95/791] Compiling ghash-x86_64-linux.S
[96/791] Compiling ghash-ssse3-x86_64-linux.S
[97/791] Compiling ghash-ssse3-x86_64-apple.S
[98/791] Compiling ghash-x86-apple.S
[99/791] Compiling ghash-ssse3-x86-linux.S
[100/791] Compiling ghash-ssse3-x86-apple.S
[101/791] Compiling ghash-neon-armv8-win.S
[102/791] Compiling ghash-neon-armv8-linux.S
[103/791] Compiling ghash-neon-armv8-apple.S
[104/791] Compiling ghash-armv4-linux.S
[105/791] Compiling co-586-linux.S
[106/791] Compiling co-586-apple.S
[107/791] Compiling bsaes-armv7-linux.S
[108/791] Compiling bn-armv8-win.S
[109/791] Compiling bn-armv8-apple.S
[110/791] Compiling bn-armv8-linux.S
[111/791] Compiling bn-586-linux.S
[112/791] Compiling bn-586-apple.S
[113/791] Compiling armv8-mont-win.S
[114/791] Compiling aesv8-gcm-armv8-linux.S
[115/791] Compiling armv8-mont-apple.S
[116/791] Compiling armv8-mont-linux.S
[117/791] Compiling armv4-mont-linux.S
[118/791] Compiling aesv8-gcm-armv8-win.S
[119/791] Compiling aesv8-gcm-armv8-apple.S
[120/791] Compiling aesv8-armv8-win.S
[121/791] Compiling aesv8-armv8-apple.S
[122/791] Compiling aesv8-armv8-linux.S
[123/791] Compiling aesni-x86_64-linux.S
[124/791] Compiling aesv8-armv7-linux.S
[125/791] Compiling aesni-x86-apple.S
[126/791] Compiling aesni-x86_64-apple.S
[127/791] Compiling aesni-x86-linux.S
[128/791] Compiling aesni-gcm-x86_64-apple.S
[129/791] Compiling aesni-gcm-x86_64-linux.S
[130/791] Compiling aes-gcm-avx2-x86_64-linux.S
[131/791] Compiling aes-gcm-avx512-x86_64-apple.S
[132/791] Compiling aes-gcm-avx2-x86_64-apple.S
[133/791] Compiling aes-gcm-avx512-x86_64-linux.S
[134/791] Compiling xwing.cc
[135/791] Compiling x_spki.cc
[137/791] Emitting module SwiftCBOR
[137/793] Compiling x_pubkey.cc
[138/793] Compiling x_req.cc
[139/793] Compiling x_x509a.cc
[140/793] Compiling x_sig.cc
[141/793] Compiling x_x509.cc
[142/793] Compiling x_name.cc
[143/793] Compiling x_attrib.cc
[144/793] Compiling x_exten.cc
[145/793] Compiling x_crl.cc
[146/793] Compiling x_all.cc
[147/793] Compiling x509spki.cc
[148/793] Compiling x_algor.cc
[149/793] Compiling x509rset.cc
[150/793] Compiling x509_v3.cc
[151/793] Compiling x509_vpm.cc
[152/793] Compiling x509cset.cc
[153/793] Compiling x509_txt.cc
[154/793] Compiling x509name.cc
[155/793] Compiling x509_vfy.cc
[157/793] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[158/793] Compiling SwiftCBOR Util.swift
[158/793] Compiling x509_def.cc
[159/793] Compiling x509_trs.cc
[160/793] Compiling x509_set.cc
[161/793] Compiling x509_obj.cc
[162/793] Compiling x509_lu.cc
[163/793] Compiling x509_req.cc
[164/793] Compiling x509_ext.cc
[166/793] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[167/793] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[168/793] Compiling SwiftCBOR CodableCBOREncoder.swift
[169/793] Compiling SwiftCBOR KeyedEncodingContainer.swift
[170/793] Compiling SwiftCBOR CBORInputStream.swift
[171/793] Compiling SwiftCBOR CBOROptions.swift
[172/793] Compiling SwiftCBOR CodableCBORDecoder.swift
[173/793] Compiling SwiftCBOR KeyedDecodingContainer.swift
[174/793] Compiling SwiftCBOR SingleValueDecodingContainer.swift
[175/793] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[176/793] Compiling SwiftCBOR AnyCodingKey.swift
[177/793] Compiling SwiftCBOR CBOR.swift
[178/793] Compiling SwiftCBOR CBORDecoder.swift
[179/793] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCBOR/Sources/CBOREncoder.swift:276:53: error: cannot find 'NSEC_PER_SEC' in scope
274 |
275 | let seconds = Int64(integral)
276 | let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
277 |
278 | switch options.dateStrategy {
[180/793] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCBOR/Sources/CBOREncoder.swift:276:53: error: cannot find 'NSEC_PER_SEC' in scope
274 |
275 | let seconds = Int64(integral)
276 | let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
277 |
278 | switch options.dateStrategy {
[180/793] Compiling x509.cc
[181/793] Compiling v3_prn.cc
[181/793] Compiling v3_skey.cc
[181/793] Compiling x509_cmp.cc
[181/793] Compiling v3_utl.cc
[181/793] Compiling x509_att.cc
[181/793] Compiling v3_purp.cc
[181/793] Compiling x509_d2.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
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/613] Compiling v3_prn.c
In file included from /host/spi-builder-workspace/.build/checkouts/Anchor/Sources/CAnchorBoringSSL/crypto/x509v3/v3_purp.c:70:
/host/spi-builder-workspace/.build/checkouts/Anchor/Sources/CAnchorBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
134 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[1/613] Compiling v3_purp.c
[1/613] Compiling v3_pcons.c
[1/613] Compiling x509_d2.cc
[1/613] Compiling v3_pmaps.c
[1/613] Compiling x509_cmp.cc
In file included from /host/spi-builder-workspace/.build/checkouts/Anchor/Sources/CAnchorBoringSSL/crypto/x509v3/v3_utl.c:73:
/host/spi-builder-workspace/.build/checkouts/Anchor/Sources/CAnchorBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
134 | #include <pthread.h>
| ^~~~~~~~~~~
[1/613] Compiling v3_utl.c
[1/613] Compiling v3_skey.c
[1/613] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm