The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Sodium, reference master (cfd195), with Swift 6.2 for Android on 12 Apr 2026 23:03:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jedisct1/swift-sodium.git
Reference: master
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/jedisct1/swift-sodium
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cfd195c Move KeyPairGenerator after the functional methods for consistency
Cloned https://github.com/jedisct1/swift-sodium.git
Revision (git rev-parse @):
cfd195c76882aa9b997560ca7cb95d72fbf5db00
SUCCESS checkout https://github.com/jedisct1/swift-sodium.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jedisct1/swift-sodium.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Sodium/Info.plist
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module _Clibsodium
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/ClibsodiumSystem/shim.h:1:10: error: 'sodium.h' file not found
1 | #include <sodium.h>
  |          `- error: 'sodium.h' file not found
2 |
3 | #warning Using a system installation of libsodium - This is unsupported.
/host/spi-builder-workspace/Sources/_Clibsodium/Clibsodium.swift:1:19: error: could not build C module 'Clibsodium'
1 | @_exported import Clibsodium
  |                   `- error: could not build C module 'Clibsodium'
2 |
[5/5] Compiling _Clibsodium Clibsodium.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/ClibsodiumSystem/shim.h:1:10: error: 'sodium.h' file not found
1 | #include <sodium.h>
  |          `- error: 'sodium.h' file not found
2 |
3 | #warning Using a system installation of libsodium - This is unsupported.
/host/spi-builder-workspace/Sources/_Clibsodium/Clibsodium.swift:1:19: error: could not build C module 'Clibsodium'
1 | @_exported import Clibsodium
  |                   `- error: could not build C module 'Clibsodium'
2 |
BUILD FAILURE 6.2 android