Build Information
Failed to build TweetNacl, reference 1.1.0 (f8fd11), with Swift 6.1 for Wasm on 28 May 2025 03:58:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitmark-inc/tweetnacl-swiftwrap.git
Reference: 1.1.0
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/bitmark-inc/tweetnacl-swiftwrap
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at f8fd111 Merge pull request #9 from danielrbrowne/tech/refactor-api
Cloned https://github.com/bitmark-inc/tweetnacl-swiftwrap.git
Revision (git rev-parse @):
f8fd111642bf2336b11ef9ea828510693106e954
SUCCESS checkout https://github.com/bitmark-inc/tweetnacl-swiftwrap.git at 1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/bitmark-inc/tweetnacl-swiftwrap.git
https://github.com/bitmark-inc/tweetnacl-swiftwrap.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "TweetNacl",
"name" : "TweetNacl",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "TweetNacl",
"targets" : [
"TweetNacl"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4"
],
"targets" : [
{
"c99name" : "TweetNaclTests",
"module_type" : "SwiftTarget",
"name" : "TweetNaclTests",
"path" : "Tests/TweetNaclTests",
"sources" : [
"NaclBox_Tests.swift",
"NaclScalarMulti_Tests.swift",
"NaclSecretbox_Tests.swift",
"NaclSign_Tests.swift"
],
"target_dependencies" : [
"TweetNacl"
],
"type" : "test"
},
{
"c99name" : "TweetNacl",
"module_type" : "SwiftTarget",
"name" : "TweetNacl",
"path" : "Sources/TweetNacl",
"product_memberships" : [
"TweetNacl"
],
"sources" : [
"Constant.swift",
"TweetNacl.swift"
],
"target_dependencies" : [
"CTweetNacl"
],
"type" : "library"
},
{
"c99name" : "CTweetNacl",
"module_type" : "ClangTarget",
"name" : "CTweetNacl",
"path" : "Sources/CTweetNacl",
"product_memberships" : [
"TweetNacl"
],
"sources" : [
"ctweetnacl.c"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Building for debugging...
[0/3] Write sources
[1/3] Compiling CTweetNacl ctweetnacl.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling TweetNacl Constant.swift
[5/6] Emitting module TweetNacl
[6/6] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:62:20: error: cannot find 'SecRandomCopyBytes' in scope
60 | var randomData = Data(count: count)
61 | let result = randomData.withUnsafeMutableBytes {
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
| `- error: cannot find 'SecRandomCopyBytes' in scope
63 | }
64 | guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:62:39: error: cannot find 'kSecRandomDefault' in scope
60 | var randomData = Data(count: count)
61 | let result = randomData.withUnsafeMutableBytes {
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
| `- error: cannot find 'kSecRandomDefault' in scope
63 | }
64 | guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:25: error: cannot find 'errSecSuccess' in scope
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
63 | }
64 | guard result == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
65 | throw NaclUtilError.internalError
66 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Emitting module TweetNacl
[3/4] Compiling TweetNacl Constant.swift
[4/4] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:62:20: error: cannot find 'SecRandomCopyBytes' in scope
60 | var randomData = Data(count: count)
61 | let result = randomData.withUnsafeMutableBytes {
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
| `- error: cannot find 'SecRandomCopyBytes' in scope
63 | }
64 | guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:62:39: error: cannot find 'kSecRandomDefault' in scope
60 | var randomData = Data(count: count)
61 | let result = randomData.withUnsafeMutableBytes {
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
| `- error: cannot find 'kSecRandomDefault' in scope
63 | }
64 | guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:25: error: cannot find 'errSecSuccess' in scope
62 | return SecRandomCopyBytes(kSecRandomDefault, count, $0)
63 | }
64 | guard result == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
65 | throw NaclUtilError.internalError
66 | }
BUILD FAILURE 6.1 wasm