The Swift Package Index logo.Swift Package Index

Build Information

Failed to build gld-avro-swift, reference main (cbfa00), with Swift 6.2 for Android on 6 Nov 2026 22:28:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-3":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build 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:         android
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-53886768-3":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:4d5a78170bd55d4f3692b7d4b22644bd314dfc2fffe9d773fe7a8a0436f96b5c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/15] Write sources
[4/15] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/30] 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
[7/32] Compiling Avro Logical.swift
[8/32] Compiling Avro OCF.swift
[9/32] Compiling Avro Resolve.swift
[10/32] Compiling Avro SOE.swift
[11/32] 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
[12/32] 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
[13/32] Compiling Avro Schema.swift
[14/32] Compiling Avro Wire.swift
[15/32] Compiling Avro Deflate.swift
[16/32] Compiling Avro Error.swift
[17/32] Compiling Avro Facade.swift
[18/32] Compiling Avro Fingerprint.swift
[19/32] Compiling Avro Canonical.swift
[20/32] Compiling Avro Codegen.swift
[21/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 | }
[22/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 | }
BUILD FAILURE 6.2 android