The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build automerge-repo, reference main (cdeb80), with Swift 6.1 for Android on 29 May 2025 22:01:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/automerge/automerge-repo-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/automerge/automerge-repo-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cdeb805 cleaning up documentation - resolving warnings, tweaking a few abstracts, matching code updates (#123)
Cloned https://github.com/automerge/automerge-repo-swift.git
Revision (git rev-parse @):
cdeb8053c3aa2510189429d717ab09e70f134716
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/automerge/automerge-repo-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/automerge/automerge-repo-swift.git
https://github.com/automerge/automerge-repo-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "automerge-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/automerge/automerge-swift"
    },
    {
      "identity" : "potentcodables",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/outfoxx/PotentCodables"
    },
    {
      "identity" : "base58swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.14",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/heckj/Base58Swift"
    },
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms"
    },
    {
      "identity" : "swift-distributed-tracing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-distributed-tracing"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "automerge-repo",
  "name" : "automerge-repo",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "AutomergeRepo",
      "targets" : [
        "AutomergeRepo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AutomergeRepoTests",
      "module_type" : "SwiftTarget",
      "name" : "AutomergeRepoTests",
      "path" : "Tests/AutomergeRepoTests",
      "sources" : [
        "BS58IdTests.swift",
        "BackoffTests.swift",
        "BaseRepoTests.swift",
        "CBORExperiments.swift",
        "DocHandleTests.swift",
        "DocumentIdTests.swift",
        "ObservingChangesTest.swift",
        "RepoFindTest.swift",
        "RepoHelpers.swift",
        "SharePolicyTests.swift",
        "StorageSubsystemTests.swift",
        "TestNetworkProviders/InMemoryNetwork.swift",
        "TestNetworkProviders/TestOutgoingNetworkProvider.swift",
        "TestNetworkProviders/UnconfiguredTestNetwork.swift",
        "TestStorageProviders/InMemoryStorage.swift",
        "TwoReposWithInMemoryNetworkTests.swift"
      ],
      "target_dependencies" : [
        "AutomergeRepo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AutomergeRepo",
      "module_type" : "SwiftTarget",
      "name" : "AutomergeRepo",
      "path" : "Sources/AutomergeRepo",
      "product_dependencies" : [
        "Automerge",
        "PotentCodables",
        "Base58Swift",
        "AsyncAlgorithms",
        "Tracing"
      ],
      "product_memberships" : [
        "AutomergeRepo"
      ],
      "sources" : [
        "AutomergeRepo.swift",
        "DocHandle.swift",
        "DocumentId.swift",
        "EphemeralMessageReceiver.swift",
        "Errors.swift",
        "InternalDocHandle.swift",
        "Networking/Backoff.swift",
        "Networking/NetworkAdapterEvents.swift",
        "Networking/NetworkEventReceiver.swift",
        "Networking/NetworkProvider.swift",
        "Networking/NetworkSubsystem.swift",
        "Networking/Providers/AvailablePeer.swift",
        "Networking/Providers/NWParameters+peerSyncParameters.swift",
        "Networking/Providers/P2PAutomergeSyncProtocol.swift",
        "Networking/Providers/PeerConnectionInfo.swift",
        "Networking/Providers/PeerToPeerConnection.swift",
        "Networking/Providers/PeerToPeerProvider.swift",
        "Networking/Providers/PeerToPeerProviderConfiguration.swift",
        "Networking/Providers/TXTRecordKeys.swift",
        "Networking/Providers/WebSocketProvider.swift",
        "Networking/Providers/WebSocketProviderConfiguration.swift",
        "Networking/Providers/WebSocketProviderState.swift",
        "PeerMetadata.swift",
        "Repo+LogComponent.swift",
        "Repo.swift",
        "RepoTypes.swift",
        "ShareAuthorizing.swift",
        "Storage/DocumentStorage.swift",
        "Storage/StorageProvider.swift",
        "Sync/CBORCoder.swift",
        "Sync/ProtocolState.swift",
        "Sync/SyncV1Msg+encode+decode.swift",
        "Sync/SyncV1Msg+messages.swift",
        "Sync/SyncV1Msg.swift",
        "extensions/Data+hexEncodedString.swift",
        "extensions/NWPathMonitor+paths.swift",
        "extensions/OSLog+extensions.swift",
        "extensions/String+hexEncoding.swift",
        "extensions/TimeInterval+milliseconds.swift",
        "extensions/UUID+bs58String.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/automerge/automerge-swift
Fetching https://github.com/outfoxx/PotentCodables
Fetching https://github.com/apple/swift-distributed-tracing
Fetching https://github.com/apple/swift-async-algorithms
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/heckj/Base58Swift
[5/485] Fetching base58swift
[103/5459] Fetching base58swift, swift-distributed-tracing
[4118/10444] Fetching base58swift, swift-distributed-tracing, swift-async-algorithms
[5114/16384] Fetching base58swift, swift-distributed-tracing, swift-async-algorithms, automerge-swift
[8317/18433] Fetching base58swift, swift-distributed-tracing, swift-async-algorithms, automerge-swift, swift-docc-plugin
[11998/109635] Fetching base58swift, swift-distributed-tracing, swift-async-algorithms, automerge-swift, swift-docc-plugin, potentcodables
Fetched https://github.com/heckj/Base58Swift from cache (0.71s)
[33555/109150] Fetching swift-distributed-tracing, swift-async-algorithms, automerge-swift, swift-docc-plugin, potentcodables
Fetched https://github.com/apple/swift-async-algorithms from cache (0.74s)
Fetched https://github.com/apple/swift-distributed-tracing from cache (0.74s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.75s)
[25195/97142] Fetching automerge-swift, potentcodables
Fetched https://github.com/automerge/automerge-swift from cache (4.23s)
Fetched https://github.com/outfoxx/PotentCodables from cache (4.24s)
Computing version for https://github.com/heckj/Base58Swift
Computed https://github.com/heckj/Base58Swift at 2.1.15 (4.89s)
Fetching https://github.com/attaswift/BigInt.git
[1/4776] Fetching bigint
Fetched https://github.com/attaswift/BigInt.git from cache (0.80s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.4 (1.97s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.50s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (2.65s)
Computing version for https://github.com/apple/swift-distributed-tracing
Computed https://github.com/apple/swift-distributed-tracing at 1.2.0 (0.69s)
Fetching https://github.com/apple/swift-service-context.git
[1/1063] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.34s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.0 (2.86s)
Computing version for https://github.com/outfoxx/PotentCodables
Computed https://github.com/outfoxx/PotentCodables at 3.5.1 (0.85s)
Fetching https://github.com/SusanDoggie/Float16.git
Fetching https://github.com/sharplet/Regex.git
[1/310] Fetching float16
[311/1564] Fetching float16, regex
Fetched https://github.com/SusanDoggie/Float16.git from cache (0.38s)
[828/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (0.96s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (3.42s)
Computing version for https://github.com/SusanDoggie/Float16.git
Computed https://github.com/SusanDoggie/Float16.git at 1.1.1 (0.62s)
Fetching https://github.com/apple/swift-numerics
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.51s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (1.15s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.5.2 (2.36s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.88s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.65s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.46s)
Computing version for https://github.com/automerge/automerge-swift
Computed https://github.com/automerge/automerge-swift at 0.6.1 (0.66s)
Creating working copy for https://github.com/SusanDoggie/Float16.git
Working copy of https://github.com/SusanDoggie/Float16.git resolved at 1.1.1
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-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.5.2
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
Creating working copy for https://github.com/outfoxx/PotentCodables
Working copy of https://github.com/outfoxx/PotentCodables resolved at 3.5.1
Creating working copy for https://github.com/apple/swift-distributed-tracing
Working copy of https://github.com/apple/swift-distributed-tracing resolved at 1.2.0
Creating working copy for https://github.com/heckj/Base58Swift
Working copy of https://github.com/heckj/Base58Swift resolved at 2.1.15
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
Creating working copy for https://github.com/automerge/automerge-swift
Working copy of https://github.com/automerge/automerge-swift resolved at 0.6.1
Downloading binary artifact https://github.com/automerge/automerge-swift/releases/download/0.6.1/automergeFFI.xcframework.zip
[1369/46544488] Downloading https://github.com/automerge/automerge-swift/releases/download/0.6.1/automergeFFI.xcframework.zip
Downloaded https://github.com/automerge/automerge-swift/releases/download/0.6.1/automergeFFI.xcframework.zip (4.41s)
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/49] Write sources
[18/49] Compiling fy-utils.c
[19/49] Copying PotentCodables.docc
[20/49] Compiling fy-utf8.c
[21/49] Compiling fy-composer.c
[22/49] Compiling fy-ctype.c
[23/49] Compiling fy-blob.c
[24/49] Compiling fy-atom.c
[25/49] Write swift-version-24593BA9C3E375BF.txt
[26/49] Compiling xxhash.c
[27/49] Compiling fy-diag.c
[28/49] Compiling fy-types.c
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-doc.c:5871:2: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 5871 |         qsort_r(fynpp, count, sizeof(*fynpp), fy_node_mapping_sort_cmp, &ctx);
      |         ^
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-doc.c:5871:2: note: did you mean 'qsort'?
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdlib.h:126:6: note: 'qsort' declared here
  126 | void qsort(void* _Nullable __base, size_t __nmemb, size_t __size, int (* _Nonnull __comparator)(const void* _Nullable __lhs, const void* _Nullable __rhs));
      |      ^
1 error generated.
[29/49] Compiling fy-doc.c
[29/49] Compiling fy-walk.c
[29/49] Compiling fy-path.c
[29/49] Compiling fy-parse.c
[29/49] Compiling fy-token.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/22] Write sources
[3/23] Compiling fy-input.c
[4/23] Compiling fy-token.c
[5/23] Compiling fy-dump.c
[6/23] Compiling fy-path.c
[7/23] Compiling fy-emit.c
[8/23] Compiling fy-event.c
[9/23] Write sources
[16/23] Compiling fy-walk.c
[17/23] Write swift-version-24593BA9C3E375BF.txt
[18/23] Compiling fy-docbuilder.c
[19/23] Compiling fy-docstate.c
[20/23] Compiling fy-accel.c
[21/23] Compiling fy-parse.c
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-doc.c:5871:2: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 5871 |         qsort_r(fynpp, count, sizeof(*fynpp), fy_node_mapping_sort_cmp, &ctx);
      |         ^
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-doc.c:5871:2: note: did you mean 'qsort'?
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdlib.h:126:6: note: 'qsort' declared here
  126 | void qsort(void* _Nullable __base, size_t __nmemb, size_t __size, int (* _Nonnull __comparator)(const void* _Nullable __lhs, const void* _Nullable __rhs));
      |      ^
1 error generated.
[22/35] Compiling fy-doc.c
BUILD FAILURE 6.1 android