The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Complex, reference main (536b59), with Swift 6.1 for Wasm on 16 Aug 2026 11:15:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankogai/swift-complex.git
Reference: main
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/dankogai/swift-complex
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 536b591 Bind libm directly, so Android, Wasm and Windows can build
Cloned https://github.com/dankogai/swift-complex.git
Revision (git rev-parse @):
536b59172d1a407cfad76199cf17478f0d46ef8d
SUCCESS checkout https://github.com/dankogai/swift-complex.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dankogai/swift-complex.git
https://github.com/dankogai/swift-complex.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version-24593BA9C3E375BF.txt
[5/16] Compiling Complex Complex.swift
[6/16] Emitting module Complex
/host/spi-builder-workspace/Sources/Complex/ElementaryFunctions.swift:227:13: warning: var 'complexFloatPrecision' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
225 | // default precision for the CMath functions below.  it is passed down to
226 | // Element, which may ignore it (e.g. Double).
227 | private var complexFloatPrecision:Int = 128
    |             |- warning: var 'complexFloatPrecision' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'complexFloatPrecision' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'complexFloatPrecision' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 | extension CMath {
229 |     public static var precision:Int {
[7/16] Compiling Complex ComplexFormat.swift
[8/16] Compiling Complex ElementaryFunctions.swift
/host/spi-builder-workspace/Sources/Complex/ElementaryFunctions.swift:227:13: warning: var 'complexFloatPrecision' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
225 | // default precision for the CMath functions below.  it is passed down to
226 | // Element, which may ignore it (e.g. Double).
227 | private var complexFloatPrecision:Int = 128
    |             |- warning: var 'complexFloatPrecision' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'complexFloatPrecision' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'complexFloatPrecision' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 | extension CMath {
229 |     public static var precision:Int {
[9/16] Compiling Complex GaussianInt.swift
[10/17] Wrapping AST for Complex for debugging
[12/21] Compiling ComplexOperators ComplexOperators.swift
[13/21] Emitting module ComplexOperators
[14/22] Emitting module ComplexRun
[15/22] Compiling ComplexRun main.swift
[17/23] Wrapping AST for ComplexOperators for debugging
[18/23] Write Objects.LinkFileList
[19/23] Wrapping AST for ComplexRun for debugging
[20/23] Write Objects.LinkFileList
error: dynamic libraries are unsupported for target 'wasm32-unknown-wasi'
[21/23] Linking libComplex.wasm
[21/23] Linking ComplexRun.wasm
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/8] Write swift-version-24593BA9C3E375BF.txt
[2/13] Emitting module Complex
[3/13] Compiling Complex GaussianInt.swift
[4/13] Compiling Complex Complex.swift
[5/13] Compiling Complex ElementaryFunctions.swift
[6/13] Compiling Complex ComplexFormat.swift
[8/17] Compiling ComplexOperators ComplexOperators.swift
[9/17] Emitting module ComplexOperators
[10/18] Emitting module ComplexRun
[11/18] Compiling ComplexRun main.swift
[12/18] Write Objects.LinkFileList
error: dynamic libraries are unsupported for target 'wasm32-unknown-wasi'
[14/18] Linking libComplex.wasm
[14/18] Wrapping AST for ComplexRun for debugging
BUILD FAILURE 6.1 wasm