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.1 for Wasm on 29 May 2025 15:06:01 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sinoru/swift-sodium.git
https://github.com/sinoru/swift-sodium.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio"
    }
  ],
  "manifest_display_name" : "swift-sodium",
  "name" : "swift-sodium",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Sodium",
      "targets" : [
        "Sodium"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SodiumFoundationCompat",
      "targets" : [
        "SodiumFoundationCompat"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SodiumNIOCompat",
      "targets" : [
        "SodiumNIOCompat"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Clibsodium",
      "targets" : [
        "Clibsodium"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SodiumSecretStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "SodiumSecretStreamTests",
      "path" : "Tests/SodiumSecretStreamTests",
      "sources" : [
        "SecretStreamTests.swift"
      ],
      "target_dependencies" : [
        "SodiumSecretStream"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SodiumSecretStream",
      "module_type" : "SwiftTarget",
      "name" : "SodiumSecretStream",
      "path" : "Sources/SodiumSecretStream",
      "product_memberships" : [
        "Sodium",
        "SodiumFoundationCompat",
        "SodiumNIOCompat"
      ],
      "sources" : [
        "SecretStream.swift",
        "SecretStreamCipher.swift",
        "SecretStreamTag.swift",
        "SecretStreamXChaCha20Poly1305.swift",
        "SodiumSecretStream.swift"
      ],
      "target_dependencies" : [
        "SodiumCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SodiumSecretBoxTests",
      "module_type" : "SwiftTarget",
      "name" : "SodiumSecretBoxTests",
      "path" : "Tests/SodiumSecretBoxTests",
      "sources" : [
        "SecretBoxTests.swift"
      ],
      "target_dependencies" : [
        "SodiumSecretBox"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SodiumSecretBox",
      "module_type" : "SwiftTarget",
      "name" : "SodiumSecretBox",
      "path" : "Sources/SodiumSecretBox",
      "product_memberships" : [
        "Sodium",
        "SodiumFoundationCompat",
        "SodiumNIOCompat"
      ],
      "sources" : [
        "SecretBox.swift",
        "SecretBoxCipher.swift",
        "SecretBoxXChaCha20Poly1305.swift",
        "SecretBoxXSalsa20Poly1305.swift",
        "SodiumSecretBox.swift"
      ],
      "target_dependencies" : [
        "SodiumCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SodiumNIOCompat",
      "module_type" : "SwiftTarget",
      "name" : "SodiumNIOCompat",
      "path" : "Sources/SodiumNIOCompat",
      "product_dependencies" : [
        "NIOCore"
      ],
      "product_memberships" : [
        "SodiumNIOCompat"
      ],
      "sources" : [
        "ByteBufferView+Sodium.swift",
        "SodiumNIOCompat.swift"
      ],
      "target_dependencies" : [
        "Sodium"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SodiumFoundationCompat",
      "module_type" : "SwiftTarget",
      "name" : "SodiumFoundationCompat",
      "path" : "Sources/SodiumFoundationCompat",
      "product_memberships" : [
        "SodiumFoundationCompat"
      ],
      "sources" : [
        "Data+Sodium.swift",
        "SodiumFoundationCompat.swift"
      ],
      "target_dependencies" : [
        "Sodium"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SodiumCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SodiumCoreTests",
      "path" : "Tests/SodiumCoreTests",
      "sources" : [
        "SodiumTests+DataProtocol_Base64.swift",
        "SodiumTests+DataProtocol_Random.swift",
        "SodiumTests.swift"
      ],
      "target_dependencies" : [
        "SodiumCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SodiumCore",
      "module_type" : "SwiftTarget",
      "name" : "SodiumCore",
      "path" : "Sources/SodiumCore",
      "product_memberships" : [
        "Sodium",
        "SodiumFoundationCompat",
        "SodiumNIOCompat"
      ],
      "sources" : [
        "Ciphers/AEADCipher.swift",
        "Ciphers/Cipher.swift",
        "Ciphers/XChaCha20Poly1305.swift",
        "Ciphers/XSalsa20Poly1305.swift",
        "DataSize.swift",
        "Sodium+Data.swift",
        "Sodium+DataProtocol.swift",
        "Sodium+DataProtocol_Base64.swift",
        "Sodium+DataProtocol_Random.swift",
        "Sodium+Error.swift",
        "Sodium.swift",
        "SymmetricKey.swift"
      ],
      "target_dependencies" : [
        "Clibsodium"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Sodium",
      "module_type" : "SwiftTarget",
      "name" : "Sodium",
      "path" : "Sources/Sodium",
      "product_memberships" : [
        "Sodium",
        "SodiumFoundationCompat",
        "SodiumNIOCompat"
      ],
      "sources" : [
        "Sodium.swift"
      ],
      "target_dependencies" : [
        "SodiumCore",
        "SodiumSecretBox",
        "SodiumSecretStream"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Clibsodium",
      "module_type" : "ClangTarget",
      "name" : "Clibsodium",
      "path" : "Sources/Clibsodium",
      "product_memberships" : [
        "Sodium",
        "SodiumFoundationCompat",
        "SodiumNIOCompat",
        "Clibsodium"
      ],
      "sources" : [
        "crypto_aead/aegis128l/aead_aegis128l.c",
        "crypto_aead/aegis128l/aegis128l_aesni.c",
        "crypto_aead/aegis128l/aegis128l_armcrypto.c",
        "crypto_aead/aegis128l/aegis128l_soft.c",
        "crypto_aead/aegis256/aead_aegis256.c",
        "crypto_aead/aegis256/aegis256_aesni.c",
        "crypto_aead/aegis256/aegis256_armcrypto.c",
        "crypto_aead/aegis256/aegis256_soft.c",
        "crypto_aead/aes256gcm/aead_aes256gcm.c",
        "crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c",
        "crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c",
        "crypto_aead/chacha20poly1305/aead_chacha20poly1305.c",
        "crypto_aead/xchacha20poly1305/aead_xchacha20poly1305.c",
        "crypto_auth/crypto_auth.c",
        "crypto_auth/hmacsha256/auth_hmacsha256.c",
        "crypto_auth/hmacsha512/auth_hmacsha512.c",
        "crypto_auth/hmacsha512256/auth_hmacsha512256.c",
        "crypto_box/crypto_box.c",
        "crypto_box/crypto_box_easy.c",
        "crypto_box/crypto_box_seal.c",
        "crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c",
        "crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c",
        "crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c",
        "crypto_core/ed25519/core_ed25519.c",
        "crypto_core/ed25519/core_ristretto255.c",
        "crypto_core/ed25519/ref10/ed25519_ref10.c",
        "crypto_core/hchacha20/core_hchacha20.c",
        "crypto_core/hsalsa20/core_hsalsa20.c",
        "crypto_core/hsalsa20/ref2/core_hsalsa20_ref2.c",
        "crypto_core/salsa/ref/core_salsa_ref.c",
        "crypto_core/softaes/softaes.c",
        "crypto_generichash/blake2b/generichash_blake2.c",
        "crypto_generichash/blake2b/ref/blake2b-compress-avx2.c",
        "crypto_generichash/blake2b/ref/blake2b-compress-ref.c",
        "crypto_generichash/blake2b/ref/blake2b-compress-sse41.c",
        "crypto_generichash/blake2b/ref/blake2b-compress-ssse3.c",
        "crypto_generichash/blake2b/ref/blake2b-ref.c",
        "crypto_generichash/blake2b/ref/generichash_blake2b.c",
        "crypto_generichash/crypto_generichash.c",
        "crypto_hash/crypto_hash.c",
        "crypto_hash/sha256/cp/hash_sha256_cp.c",
        "crypto_hash/sha256/hash_sha256.c",
        "crypto_hash/sha512/cp/hash_sha512_cp.c",
        "crypto_hash/sha512/hash_sha512.c",
        "crypto_kdf/blake2b/kdf_blake2b.c",
        "crypto_kdf/crypto_kdf.c",
        "crypto_kdf/hkdf/kdf_hkdf_sha256.c",
        "crypto_kdf/hkdf/kdf_hkdf_sha512.c",
        "crypto_kx/crypto_kx.c",
        "crypto_onetimeauth/crypto_onetimeauth.c",
        "crypto_onetimeauth/poly1305/donna/poly1305_donna.c",
        "crypto_onetimeauth/poly1305/onetimeauth_poly1305.c",
        "crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c",
        "crypto_pwhash/argon2/argon2-core.c",
        "crypto_pwhash/argon2/argon2-encoding.c",
        "crypto_pwhash/argon2/argon2-fill-block-avx2.c",
        "crypto_pwhash/argon2/argon2-fill-block-avx512f.c",
        "crypto_pwhash/argon2/argon2-fill-block-ref.c",
        "crypto_pwhash/argon2/argon2-fill-block-ssse3.c",
        "crypto_pwhash/argon2/argon2.c",
        "crypto_pwhash/argon2/blake2b-long.c",
        "crypto_pwhash/argon2/pwhash_argon2i.c",
        "crypto_pwhash/argon2/pwhash_argon2id.c",
        "crypto_pwhash/crypto_pwhash.c",
        "crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c",
        "crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c",
        "crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c",
        "crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c",
        "crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c",
        "crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c",
        "crypto_scalarmult/crypto_scalarmult.c",
        "crypto_scalarmult/curve25519/ref10/x25519_ref10.c",
        "crypto_scalarmult/curve25519/sandy2x/consts.S",
        "crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c",
        "crypto_scalarmult/curve25519/sandy2x/fe51_invert.c",
        "crypto_scalarmult/curve25519/sandy2x/fe51_mul.S",
        "crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S",
        "crypto_scalarmult/curve25519/sandy2x/fe51_pack.S",
        "crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c",
        "crypto_scalarmult/curve25519/sandy2x/ladder.S",
        "crypto_scalarmult/curve25519/sandy2x/sandy2x.S",
        "crypto_scalarmult/curve25519/scalarmult_curve25519.c",
        "crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c",
        "crypto_scalarmult/ristretto255/ref10/scalarmult_ristretto255_ref10.c",
        "crypto_secretbox/crypto_secretbox.c",
        "crypto_secretbox/crypto_secretbox_easy.c",
        "crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c",
        "crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c",
        "crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c",
        "crypto_shorthash/crypto_shorthash.c",
        "crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c",
        "crypto_shorthash/siphash24/ref/shorthash_siphashx24_ref.c",
        "crypto_shorthash/siphash24/shorthash_siphash24.c",
        "crypto_shorthash/siphash24/shorthash_siphashx24.c",
        "crypto_sign/crypto_sign.c",
        "crypto_sign/ed25519/ref10/keypair.c",
        "crypto_sign/ed25519/ref10/obsolete.c",
        "crypto_sign/ed25519/ref10/open.c",
        "crypto_sign/ed25519/ref10/sign.c",
        "crypto_sign/ed25519/sign_ed25519.c",
        "crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c",
        "crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c",
        "crypto_stream/chacha20/ref/chacha20_ref.c",
        "crypto_stream/chacha20/stream_chacha20.c",
        "crypto_stream/crypto_stream.c",
        "crypto_stream/salsa20/ref/salsa20_ref.c",
        "crypto_stream/salsa20/stream_salsa20.c",
        "crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S",
        "crypto_stream/salsa20/xmm6/salsa20_xmm6.c",
        "crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.c",
        "crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.c",
        "crypto_stream/salsa2012/ref/stream_salsa2012_ref.c",
        "crypto_stream/salsa2012/stream_salsa2012.c",
        "crypto_stream/salsa208/ref/stream_salsa208_ref.c",
        "crypto_stream/salsa208/stream_salsa208.c",
        "crypto_stream/xchacha20/stream_xchacha20.c",
        "crypto_stream/xsalsa20/stream_xsalsa20.c",
        "crypto_verify/verify.c",
        "randombytes/internal/randombytes_internal_random.c",
        "randombytes/randombytes.c",
        "randombytes/sysrandom/randombytes_sysrandom.c",
        "sodium/codecs.c",
        "sodium/core.c",
        "sodium/runtime.c",
        "sodium/utils.c",
        "sodium/version.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio
[1/76097] Fetching swift-nio
Fetched https://github.com/apple/swift-nio from cache (3.91s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (7.15s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/4391] Fetching swift-system
[2329/6101] Fetching swift-system, swift-atomics
[6102/22692] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.40s)
[2540/18301] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.42s)
[996/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.17s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.69s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (2.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.75s)
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.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.2.0
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
Building for debugging...
[0/149] Compiling aegis128l_aesni.c
[1/149] Compiling aead_aegis128l.c
[2/149] Write sources
[4/149] Compiling kdf_hkdf_sha512.c
[5/149] Write sources
[15/149] Compiling _AtomicsShims.c
[16/149] Compiling aegis128l_soft.c
[17/149] Compiling version.c
/host/spi-builder-workspace/Sources/Clibsodium/sodium/runtime.c:13:11: fatal error: 'sys/auxv.h' file not found
   13 | # include <sys/auxv.h>
      |           ^~~~~~~~~~~~
1 error generated.
[18/149] Compiling runtime.c
[18/149] Compiling core.c
[18/149] Write swift-version-24593BA9C3E375BF.txt
[18/149] Compiling aegis128l_armcrypto.c
[18/149] Compiling utils.c
[18/149] Compiling aead_aegis256.c
[18/149] Compiling aegis256_armcrypto.c
[18/149] Compiling aegis256_aesni.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/131] Write sources
[1/131] Compiling CNIOWASI CNIOWASI.c
[2/131] Compiling CNIOWindows shim.c
[2/131] Compiling CNIOLinux liburing_shims.c
[4/131] Compiling CNIOLinux shim.c
[4/131] Compiling CNIOWindows WSAStartup.c
/host/spi-builder-workspace/Sources/Clibsodium/sodium/runtime.c:13:11: fatal error: 'sys/auxv.h' file not found
   13 | # include <sys/auxv.h>
      |           ^~~~~~~~~~~~
1 error generated.
[6/131] Compiling runtime.c
[6/131] Compiling randombytes_sysrandom.c
[6/131] Compiling codecs.c
[6/131] Compiling utils.c
[6/131] Compiling core.c
[6/131] Compiling c-nioatomics.c
[6/131] Compiling c-atomics.c
[6/131] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm