Build Information
Failed to build IcpKit, reference 0.4.3 (b09420), with Swift 6.2 for Android on 1 Oct 2025 12:32:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kosta-bity/IcpKit.git
Reference: 0.4.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/kosta-bity/IcpKit
* tag 0.4.3 -> FETCH_HEAD
HEAD is now at b094206 fix tests
Cloned https://github.com/kosta-bity/IcpKit.git
Revision (git rev-parse @):
b094206f574da79b6373e20004df2ae74b63f9c3
SUCCESS checkout https://github.com/kosta-bity/IcpKit.git at 0.4.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/kosta-bity/IcpKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/swift-libp2p/swift-bases.git
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/outfoxx/PotentCodables.git
Fetching https://github.com/GigaBitcoin/secp256k1.swift.git
Fetching https://github.com/apple/swift-argument-parser
[1/4826] Fetching bigint
[243/5112] Fetching bigint, swift-bases
[1977/10455] Fetching bigint, swift-bases, secp256k1.swift
[4092/26969] Fetching bigint, swift-bases, secp256k1.swift, swift-argument-parser
Fetched https://github.com/swift-libp2p/swift-bases.git from cache (0.64s)
[23216/26683] Fetching bigint, secp256k1.swift, swift-argument-parser
Fetched https://github.com/attaswift/BigInt.git from cache (0.65s)
[19215/21857] Fetching secp256k1.swift, swift-argument-parser
Fetched https://github.com/GigaBitcoin/secp256k1.swift.git from cache (1.00s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.01s)
[1/113947] Fetching potentcodables
Fetched https://github.com/outfoxx/PotentCodables.git from cache (6.08s)
Computing version for https://github.com/GigaBitcoin/secp256k1.swift.git
Computed https://github.com/GigaBitcoin/secp256k1.swift.git at 0.10.0 (10.01s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.7.0 (0.67s)
Computing version for https://github.com/swift-libp2p/swift-bases.git
Computed https://github.com/swift-libp2p/swift-bases.git at 0.0.4 (0.85s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.81s)
Computing version for https://github.com/outfoxx/PotentCodables.git
Computed https://github.com/outfoxx/PotentCodables.git at 3.5.3 (0.84s)
Fetching https://github.com/SusanDoggie/Float16.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/sharplet/Regex.git
[1/310] Fetching float16
[11/1564] Fetching float16, regex
[1127/19542] Fetching float16, regex, swift-collections
Fetched https://github.com/sharplet/Regex.git from cache (1.56s)
[9120/18288] Fetching float16, swift-collections
Fetched https://github.com/SusanDoggie/Float16.git from cache (2.55s)
Fetched https://github.com/apple/swift-collections.git from cache (2.60s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (8.43s)
Computing version for https://github.com/SusanDoggie/Float16.git
Computed https://github.com/SusanDoggie/Float16.git at 1.1.1 (0.81s)
Fetching https://github.com/apple/swift-numerics
[1/6371] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.69s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.03s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.63s)
Creating working copy for https://github.com/swift-libp2p/swift-bases.git
Working copy of https://github.com/swift-libp2p/swift-bases.git resolved at 0.0.4
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.7.0
Creating working copy for https://github.com/outfoxx/PotentCodables.git
Working copy of https://github.com/outfoxx/PotentCodables.git resolved at 3.5.3
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/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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/GigaBitcoin/secp256k1.swift.git
Working copy of https://github.com/GigaBitcoin/secp256k1.swift.git resolved at 0.10.0
warning: 'spi-builder-workspace': found 13 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/DAB/Nft/DidFiles/DABNft.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/ICPIndex.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/DIP20.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/ICRC1.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/ICRC1Oracle.did
/host/spi-builder-workspace/Sources/DAB/Nft/DidFiles/DIP721.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/DABTokens.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/ICRC2.did
/host/spi-builder-workspace/Sources/DAB/Nft/DidFiles/OrigynNFT.did
/host/spi-builder-workspace/Sources/DAB/Nft/DidFiles/ICRC7.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/NNS_SNS_W.did
/host/spi-builder-workspace/Sources/DAB/Nft/DidFiles/EXT.did
/host/spi-builder-workspace/Sources/DAB/Token/DidFiles/Index.did
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Write sources
[4/74] Copying PotentCodables.docc
[20/74] Compiling fy-utils.c
[21/74] Compiling fy-utf8.c
[22/74] Compiling Utility.c
[23/74] Compiling precomputed_ecmult_gen.c
[24/74] Compiling fy-blob.c
[25/74] Compiling fy-ctype.c
[26/74] Compiling xxhash.c
[27/74] Compiling fy-types.c
[28/74] Compiling fy-path.c
[29/74] Compiling secp256k1.c
[29/74] Write swift-version--11D90AFD9DD3AB2.txt
[31/74] Compiling fy-token.c
[32/74] Compiling fy-walk.c
[33/81] Compiling fy-dump.c
[34/81] Compiling fy-input.c
[35/97] Compiling fy-event.c
[36/97] Compiling fy-docstate.c
[37/97] Compiling fy-docbuilder.c
[38/97] Compiling fy-emit.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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-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.
[39/97] Compiling fy-doc.c
[39/97] Compiling fy-atom.c
[39/97] Compiling fy-parse.c
[39/97] Compiling fy-composer.c
[39/97] Compiling fy-diag.c
[39/97] Compiling precomputed_ecmult.c
BUILD FAILURE 6.2 android