Build Information
Failed to build gld-avro-swift, reference main (cbfa00), with Swift 6.2 for Wasm on 6 Nov 2026 22:24:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leo-gan/gld-avro-swift.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/leo-gan/gld-avro-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cbfa003 Link the Serialization hub from the README (#5)
Cloned https://github.com/leo-gan/gld-avro-swift.git
Revision (git rev-parse @):
cbfa003c3dc837568f37e0a04b7d7c528449b111
SUCCESS checkout https://github.com/leo-gan/gld-avro-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/leo-gan/gld-avro-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/15] Write sources
[4/15] Write swift-version-24593BA9C3E375BF.txt
[6/30] Compiling Avro JSON.swift
/host/spi-builder-workspace/src/Avro/JSON.swift:405:9: error: cannot find 'errno' in scope
403 | if raw.isEmpty { return nil }
404 | return raw.withCString { pointer in
405 | errno = 0
| `- error: cannot find 'errno' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
/host/spi-builder-workspace/src/Avro/JSON.swift:407:21: error: cannot find 'strtod' in scope
405 | errno = 0
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
| `- error: cannot find 'strtod' in scope
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
409 | if value.isNaN || value.isInfinite { return nil }
/host/spi-builder-workspace/src/Avro/JSON.swift:408:42: error: cannot find 'errno' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
| `- error: cannot find 'errno' in scope
409 | if value.isNaN || value.isInfinite { return nil }
410 | return value
/host/spi-builder-workspace/src/Avro/JSON.swift:408:51: error: cannot find 'ERANGE' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
| `- error: cannot find 'ERANGE' in scope
409 | if value.isNaN || value.isInfinite { return nil }
410 | return value
[7/30] Compiling Avro JSONCodec.swift
/host/spi-builder-workspace/src/Avro/JSON.swift:405:9: error: cannot find 'errno' in scope
403 | if raw.isEmpty { return nil }
404 | return raw.withCString { pointer in
405 | errno = 0
| `- error: cannot find 'errno' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
/host/spi-builder-workspace/src/Avro/JSON.swift:407:21: error: cannot find 'strtod' in scope
405 | errno = 0
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
| `- error: cannot find 'strtod' in scope
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
409 | if value.isNaN || value.isInfinite { return nil }
/host/spi-builder-workspace/src/Avro/JSON.swift:408:42: error: cannot find 'errno' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
| `- error: cannot find 'errno' in scope
409 | if value.isNaN || value.isInfinite { return nil }
410 | return value
/host/spi-builder-workspace/src/Avro/JSON.swift:408:51: error: cannot find 'ERANGE' in scope
406 | var end: UnsafeMutablePointer<CChar>? = nil
407 | let value = strtod(pointer, &end)
408 | guard let end, end.pointee == 0, errno != ERANGE else { return nil }
| `- error: cannot find 'ERANGE' in scope
409 | if value.isNaN || value.isInfinite { return nil }
410 | return value
[8/32] Compiling Avro Logical.swift
[9/32] Compiling Avro OCF.swift
[10/32] Compiling Avro Resolve.swift
[11/32] Compiling Avro SOE.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/32] Compiling Avro Facade.swift
[13/32] Compiling Avro Fingerprint.swift
[14/32] Compiling Avro Deflate.swift
[15/32] Compiling Avro Error.swift
[16/32] Compiling Avro Canonical.swift
[17/32] Compiling Avro Codegen.swift
[18/32] Emitting module Avro
/host/spi-builder-workspace/src/Avro/Generic.swift:11:32: error: cannot find type 'pthread_key_t' in scope
9 | }
10 |
11 | private let encoderScratchKey: pthread_key_t = {
| `- error: cannot find type 'pthread_key_t' in scope
12 | var key = pthread_key_t()
13 | pthread_key_create(&key) { pointer in
[19/32] Compiling Avro Generic.swift
/host/spi-builder-workspace/src/Avro/Generic.swift:11:32: error: cannot find type 'pthread_key_t' in scope
9 | }
10 |
11 | private let encoderScratchKey: pthread_key_t = {
| `- error: cannot find type 'pthread_key_t' in scope
12 | var key = pthread_key_t()
13 | pthread_key_create(&key) { pointer in
/host/spi-builder-workspace/src/Avro/Generic.swift:21:18: error: cannot find 'pthread_getspecific' in scope
19 |
20 | private func encoderScratch() -> EncoderScratch {
21 | if let raw = pthread_getspecific(encoderScratchKey) {
| `- error: cannot find 'pthread_getspecific' in scope
22 | return Unmanaged<EncoderScratch>.fromOpaque(raw).takeUnretainedValue()
23 | }
/host/spi-builder-workspace/src/Avro/Generic.swift:25:5: error: cannot find 'pthread_setspecific' in scope
23 | }
24 | let scratch = EncoderScratch()
25 | pthread_setspecific(encoderScratchKey, Unmanaged.passRetained(scratch).toOpaque())
| `- error: cannot find 'pthread_setspecific' in scope
26 | return scratch
27 | }
[20/32] Compiling Avro IDL.swift
/host/spi-builder-workspace/src/Avro/Generic.swift:11:32: error: cannot find type 'pthread_key_t' in scope
9 | }
10 |
11 | private let encoderScratchKey: pthread_key_t = {
| `- error: cannot find type 'pthread_key_t' in scope
12 | var key = pthread_key_t()
13 | pthread_key_create(&key) { pointer in
/host/spi-builder-workspace/src/Avro/Generic.swift:21:18: error: cannot find 'pthread_getspecific' in scope
19 |
20 | private func encoderScratch() -> EncoderScratch {
21 | if let raw = pthread_getspecific(encoderScratchKey) {
| `- error: cannot find 'pthread_getspecific' in scope
22 | return Unmanaged<EncoderScratch>.fromOpaque(raw).takeUnretainedValue()
23 | }
/host/spi-builder-workspace/src/Avro/Generic.swift:25:5: error: cannot find 'pthread_setspecific' in scope
23 | }
24 | let scratch = EncoderScratch()
25 | pthread_setspecific(encoderScratchKey, Unmanaged.passRetained(scratch).toOpaque())
| `- error: cannot find 'pthread_setspecific' in scope
26 | return scratch
27 | }
[21/32] Compiling Avro Schema.swift
[22/32] Compiling Avro Wire.swift
BUILD FAILURE 6.2 wasm