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 swift-sodium, reference v0.0.2 (1c76ec), with Swift 6.2 (beta) for Android on 21 Jun 2025 23:00:05 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sinoru/swift-sodium.git
Reference: v0.0.2
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/sinoru/swift-sodium
 * tag               v0.0.2     -> FETCH_HEAD
HEAD is now at 1c76ec2 Merge branch 'release/0.0.2'
Cloned https://github.com/sinoru/swift-sodium.git
Revision (git rev-parse @):
1c76ec249bec72659723e0775d0aee32777b64ca
SUCCESS checkout https://github.com/sinoru/swift-sodium.git at v0.0.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/sinoru/swift-sodium.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-nio
[1/76339] Fetching swift-nio
Fetched https://github.com/apple/swift-nio from cache (3.86s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (7.12s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1797] Fetching swift-atomics
[990/6233] Fetching swift-atomics, swift-system
[6234/22873] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.40s)
[2629/18437] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.08s)
Fetched https://github.com/apple/swift-collections.git from cache (1.11s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.37s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.33s)
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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
Building for debugging...
[0/149] Write sources
[12/149] Compiling _AtomicsShims.c
[13/149] Compiling version.c
[14/149] Compiling aead_aegis256.c
[15/149] Compiling utils.c
[16/149] Compiling aegis256_aesni.c
[17/149] Write swift-version-8C5A4AE7A8CE2BA.txt
[18/149] Compiling aegis128l_soft.c
[19/149] Compiling runtime.c
[20/149] Compiling core.c
[21/149] Compiling randombytes.c
[22/149] Compiling codecs.c
[23/149] Compiling randombytes_sysrandom.c
[24/149] Compiling randombytes_internal_random.c
[25/149] Compiling verify.c
[26/150] Compiling stream_xsalsa20.c
[27/154] Compiling stream_salsa208.c
[28/154] Compiling stream_salsa208_ref.c
[29/155] Compiling stream_xchacha20.c
[30/155] Compiling stream_salsa2012.c
[31/160] Compiling stream_salsa2012_ref.c
[32/168] Compiling salsa20_xmm6int-sse2.c
[33/169] Compiling salsa20_xmm6.c
[34/169] Compiling salsa20_xmm6int-avx2.c
[35/169] Compiling salsa20_ref.c
[36/169] Compiling stream_salsa20.c
[37/169] Compiling salsa20_xmm6-asm.S
[38/169] Compiling crypto_stream.c
[39/169] Compiling aegis128l_armcrypto.c
[40/169] Compiling chacha20_dolbeau-avx2.c
[41/169] Compiling chacha20_ref.c
[42/169] Compiling stream_chacha20.c
[43/169] Compiling chacha20_dolbeau-ssse3.c
[44/169] Compiling sign_ed25519.c
[45/169] Compiling obsolete.c
[46/169] Compiling sign.c
[47/169] Compiling crypto_sign.c
[47/169] Compiling keypair.c
[49/169] Compiling open.c
[50/169] Compiling shorthash_siphash24.c
[51/169] Compiling shorthash_siphashx24.c
[52/169] Compiling shorthash_siphashx24_ref.c
[53/169] Compiling crypto_shorthash.c
[54/169] Compiling shorthash_siphash24_ref.c
[55/169] Compiling secretstream_xchacha20poly1305.c
[56/169] Compiling secretbox_xsalsa20poly1305.c
[57/169] Compiling secretbox_xchacha20poly1305.c
[58/169] Compiling crypto_secretbox.c
[59/169] Compiling crypto_secretbox_easy.c
[60/169] Compiling scalarmult_ristretto255_ref10.c
[61/169] Compiling scalarmult_ed25519_ref10.c
[62/169] Compiling sandy2x.S
[63/169] Compiling ladder.S
[64/169] Compiling scalarmult_curve25519.c
[64/169] Compiling fe_frombytes_sandy2x.c
[67/169] Emitting module _NIOBase64
[67/169] Compiling fe51_invert.c
[68/169] Compiling fe51_pack.S
[69/169] Compiling fe51_nsquare.S
[70/169] Compiling curve25519_sandy2x.c
[71/169] Compiling fe51_mul.S
[72/169] Compiling crypto_scalarmult.c
[73/169] Compiling consts.S
[74/169] Compiling x25519_ref10.c
[75/169] Compiling pwhash_scryptsalsa208sha256_sse.c
[76/169] Compiling scrypt_platform.c
[77/169] Compiling crypto_pwhash.c
[78/169] Compiling crypto_scrypt-common.c
[79/169] Compiling pbkdf2-sha256.c
[80/169] Compiling pwhash_scryptsalsa208sha256.c
[81/169] Compiling blake2b-long.c
[82/169] Compiling pwhash_argon2i.c
[83/169] Compiling pwhash_argon2id.c
[84/169] Compiling argon2-fill-block-ssse3.c
[85/169] Compiling pwhash_scryptsalsa208sha256_nosse.c
[86/169] Compiling argon2-fill-block-avx2.c
[87/169] Compiling argon2-fill-block-avx512f.c
[88/169] Compiling argon2-encoding.c
[89/169] Compiling argon2.c
[90/169] Compiling argon2-fill-block-ref.c
[91/169] Compiling argon2-core.c
[92/169] Compiling poly1305_sse2.c
[93/169] Compiling poly1305_donna.c
[94/169] Compiling onetimeauth_poly1305.c
[95/169] Compiling crypto_onetimeauth.c
[95/169] Compiling crypto_kx.c
[97/169] Compiling kdf_hkdf_sha512.c
[98/169] Compiling kdf_hkdf_sha256.c
[99/169] Compiling crypto_kdf.c
[100/169] Compiling kdf_blake2b.c
[101/169] Compiling hash_sha256.c
[102/169] Compiling hash_sha512.c
[103/169] Compiling hash_sha512_cp.c
[104/169] Compiling crypto_hash.c
[105/169] Compiling crypto_generichash.c
[106/169] Compiling hash_sha256_cp.c
[107/169] Compiling generichash_blake2b.c
[108/169] Compiling blake2b-compress-ssse3.c
[109/169] Compiling blake2b-ref.c
[110/169] Compiling blake2b-compress-sse41.c
[111/169] Compiling blake2b-compress-avx2.c
[112/169] Compiling generichash_blake2.c
[113/169] Compiling core_salsa_ref.c
[113/169] Compiling softaes.c
[115/169] Compiling core_hsalsa20.c
[116/169] Compiling core_hsalsa20_ref2.c
[117/169] Compiling core_hchacha20.c
[118/169] Compiling blake2b-compress-ref.c
[119/169] Compiling core_ristretto255.c
[120/169] Compiling core_ed25519.c
[121/169] Compiling box_curve25519xsalsa20poly1305.c
[122/169] Compiling box_seal_curve25519xchacha20poly1305.c
[123/169] Compiling box_curve25519xchacha20poly1305.c
[124/169] Compiling crypto_box_easy.c
[125/169] Compiling crypto_box_seal.c
[126/169] Compiling crypto_box.c
[127/169] Compiling auth_hmacsha256.c
[128/169] Compiling auth_hmacsha512256.c
[129/169] Compiling crypto_auth.c
[130/169] Compiling auth_hmacsha512.c
[131/169] Compiling aead_xchacha20poly1305.c
[132/169] Compiling ed25519_ref10.c
[133/169] Compiling aead_aes256gcm_aesni.c
[134/169] Compiling aead_chacha20poly1305.c
[135/169] Compiling aead_aes256gcm.c
[136/169] Compiling aegis128l_aesni.c
[137/169] Compiling aead_aegis128l.c
[138/169] Compiling aegis256_soft.c
[139/169] Compiling CNIOWindows WSAStartup.c
[139/169] Compiling CNIOWindows shim.c
[141/169] Compiling CNIOWASI CNIOWASI.c
[142/169] Compiling CNIOLinux liburing_shims.c
[143/169] Compiling CNIODarwin shim.c
[144/169] Compiling CNIOLinux shim.c
[145/169] Write sources
[146/187] Compiling aegis256_armcrypto.c
[147/187] Compiling aead_aes256gcm_armcrypto.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[149/199] Emitting module SodiumCore
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/crypto_sign_edwards25519sha512batch.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/crypto_sign_edwards25519sha512batch.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10_fe_25_5.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10_fe_25_5.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/softaes.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/softaes.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/common.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/common.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/implementations.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/implementations.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/mutex.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/mutex.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10_fe_51.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/ed25519_ref10_fe_51.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/chacha20_ietf_ext.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/chacha20_ietf_ext.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/sse2_64_32.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/sse2_64_32.h'
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "sodium.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibsodium/include/sodium.h:76:1: warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/asm_cet.h'
74 |
75 | #endif
76 |
   | `- warning: umbrella header for module 'Clibsodium' does not include header '/sodium/private/asm_cet.h'
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:21:43: error: cannot find 'CHAR_BIT' in scope
 19 |
 20 | public struct DataSize: Equatable, Hashable, Sendable {
 21 |     private static let charBit: Int = Int(CHAR_BIT)
    |                                           `- error: cannot find 'CHAR_BIT' in scope
 22 |     public private(set) var rawValue: UInt16
 23 |
[150/200] Compiling SodiumCore XChaCha20Poly1305.swift
[151/200] Compiling SodiumCore XSalsa20Poly1305.swift
[152/200] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[153/201] Compiling Atomics AtomicMemoryOrderings.swift
[154/201] Compiling Atomics DoubleWord.swift
[155/203] Compiling SodiumCore SymmetricKey.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[156/203] Compiling SodiumCore DataSize.swift
[157/203] Compiling SodiumCore Sodium+Data.swift
[158/203] Compiling Atomics AtomicReference.swift
[160/203] Compiling SodiumCore Sodium+DataProtocol.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[161/203] Compiling SodiumCore Sodium+DataProtocol_Base64.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:21:43: error: cannot find 'CHAR_BIT' in scope
 19 |
 20 | public struct DataSize: Equatable, Hashable, Sendable {
 21 |     private static let charBit: Int = Int(CHAR_BIT)
    |                                           `- error: cannot find 'CHAR_BIT' in scope
 22 |     public private(set) var rawValue: UInt16
 23 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:21:43: error: cannot find 'CHAR_BIT' in scope
 19 |
 20 | public struct DataSize: Equatable, Hashable, Sendable {
 21 |     private static let charBit: Int = Int(CHAR_BIT)
    |                                           `- error: cannot find 'CHAR_BIT' in scope
 22 |     public private(set) var rawValue: UInt16
 23 |
[166/203] Compiling SodiumCore Sodium+DataProtocol_Random.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[167/203] Emitting module InternalCollectionsUtilities
[168/203] Compiling SodiumCore AEADCipher.swift
[169/203] Compiling SodiumCore Cipher.swift
[170/203] Compiling Atomics UnsafeAtomic.swift
[171/203] Compiling Atomics UnsafeAtomicLazyReference.swift
[172/203] Compiling Atomics ManagedAtomic.swift
[173/203] Compiling Atomics ManagedAtomicLazyReference.swift
[174/203] Compiling Atomics AtomicStorage.swift
[175/203] Compiling Atomics AtomicValue.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[185/203] Compiling _NIODataStructures PriorityQueue.swift
[186/203] Compiling SodiumCore Sodium.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[187/203] Compiling SodiumCore Sodium+Error.swift
/host/spi-builder-workspace/Sources/SodiumCore/DataSize.swift:17:8: error: Unknown platform
 15 | import ucrt
 16 | #else
 17 | #error("Unknown platform")
    |        `- error: Unknown platform
 18 | #endif
 19 |
[188/203] Compiling _NIOBase64 Base64.swift
[189/203] Emitting module _NIODataStructures
[189/203] Compiling c-nioatomics.c
[189/203] Compiling c-atomics.c
BUILD FAILURE 6.2 android