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 SwiftMath, reference 3.3.1 (13a224), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 15:40:37 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftGFX/SwiftMath.git
Reference: 3.3.1
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/SwiftGFX/SwiftMath
 * tag               3.3.1      -> FETCH_HEAD
HEAD is now at 13a224a Exclude files from target to remove warnings (#12)
Cloned https://github.com/SwiftGFX/SwiftMath.git
Revision (git rev-parse @):
13a224a655cbef1ef0e39d7d22e31a4ff6bc9937
SUCCESS checkout https://github.com/SwiftGFX/SwiftMath.git at 3.3.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/SwiftGFX/SwiftMath.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/31] Emitting module SwiftMath
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[4/34] Compiling SwiftMath float3x3+Extensions.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[5/34] Compiling SwiftMath float4x4+Extensions.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[6/34] Compiling SwiftMath functions.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[7/34] Compiling SwiftMath platform.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[8/34] Compiling SwiftMath random.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[9/34] Compiling SwiftMath utils.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[10/34] Compiling SwiftMath Vector2+simd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[11/34] Compiling SwiftMath Vector2.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[12/34] Compiling SwiftMath Vector3+nosimd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[13/34] Compiling SwiftMath Vector3+simd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[14/34] Compiling SwiftMath Point.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[15/34] Compiling SwiftMath Rect.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[16/34] Compiling SwiftMath String+Math.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[17/34] Compiling SwiftMath Vector2+nosimd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[18/34] Compiling SwiftMath Vector3.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[19/34] Compiling SwiftMath Vector4+nosimd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[20/34] Compiling SwiftMath Vector4+simd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[21/34] Compiling SwiftMath Matrix4x4+Extensions.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[22/34] Compiling SwiftMath Matrix4x4+nosimd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[23/34] Compiling SwiftMath Matrix4x4+simd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[24/34] Compiling SwiftMath Matrix4x4.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[25/34] Compiling SwiftMath Angle.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[26/34] Compiling SwiftMath Matrix3x3+nosimd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[27/34] Compiling SwiftMath Matrix3x3+simd.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[28/34] Compiling SwiftMath Matrix3x3.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[29/34] Compiling SwiftMath Vector4.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[30/34] Compiling SwiftMath Vectorf+Components.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
[31/34] Compiling SwiftMath easing.swift
/host/spi-builder-workspace/Sources/String+Math.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 | internal extension String {
11 |     var floatArray: [Float] {
BUILD FAILURE 6.2 wasm