Build Information
Failed to build Sugar, reference 0.2.0 (b9d451), with Swift 6.2 for Wasm on 18 Jun 2025 04:03:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/venj/sugar.git
Reference: 0.2.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/venj/sugar
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at b9d451d Added Package.swift. Currently only support apple platform.
Cloned https://github.com/venj/sugar.git
Revision (git rev-parse @):
b9d451d185f8fcaddb4665d289074db2cbb829e5
SUCCESS checkout https://github.com/venj/sugar.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/venj/sugar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/28] Emitting module Sugar
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[4/31] Compiling Sugar Array+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[5/31] Compiling Sugar CharacterSet+URLEncode.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[6/31] Compiling Sugar Comparable+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[7/31] Compiling Sugar Data+Base64.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[8/31] Compiling Sugar NSTextCheckingResultExtension.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[9/31] Compiling Sugar Operators+General.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[10/31] Compiling Sugar Operators+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[11/31] Compiling Sugar String+JSON.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[12/31] Compiling Sugar String+Path.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[13/31] Compiling Sugar String+Range.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[14/31] Compiling Sugar String+ActiveSupport.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[15/31] Compiling Sugar String+Base64.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[16/31] Compiling Sugar String+Hash.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[17/31] Compiling Sugar Dictionary+JSON.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[18/31] Compiling Sugar Dictionary+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[19/31] Compiling Sugar Double+ActiveSupport.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[20/31] Compiling Sugar Double+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[21/31] Compiling Sugar Float+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[22/31] Compiling Sugar Int+ActiveSupport.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[23/31] Compiling Sugar Int+FileSize.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[24/31] Compiling Sugar Int+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[25/31] Compiling Sugar Int64+ActiveSupport.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[26/31] Compiling Sugar Int64+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[27/31] Compiling Sugar NSDate+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[28/31] Compiling Sugar NSRange+Swift.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[29/31] Compiling Sugar String+Regex.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[30/31] Compiling Sugar String+Ruby.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
[31/31] Compiling Sugar String+URLEncode.swift
/host/spi-builder-workspace/Sugar/CharacterSet+URLEncode.swift:9:8: error: no such module 'Foundation'
7 | //
8 |
9 | import Foundation
| `- error: no such module 'Foundation'
10 |
11 | @available(iOS 8.0, OSX 10.10, *)
BUILD FAILURE 6.2 wasm