Build Information
Failed to build citron, reference 2.1.7 (d19a40), with Swift 6.2 for Wasm on 22 Jun 2025 10:39:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/dabrahams/citron.git
Reference: 2.1.7
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/dabrahams/citron
* tag 2.1.7 -> FETCH_HEAD
HEAD is now at d19a40c Unbreak source compatibility.
Cloned https://github.com/dabrahams/citron.git
Revision (git rev-parse @):
d19a40c8de65b68fec0d224576d60565c1f7ccf1
SUCCESS checkout https://github.com/dabrahams/citron.git at 2.1.7
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/dabrahams/citron.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
[0/6] Write sources
[1/6] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling CitronCLibrary main_.c
[4/8] Compiling citron main.swift
[5/8] Emitting module citron
[6/9] Wrapping AST for citron for debugging
[7/9] Write Objects.LinkFileList
[8/9] Linking citron-tool
[1/1] Compiling plugin CitronParserGenerator
Building for debugging...
[1/36] Write sources
[5/36] Write swift-version-24593BA9C3E375BF.txt
[6/42] Compiling CitronCLibrary main_.c
[8/43] Emitting module citron
[8/44] Compiling CitronCLibrary main_.c
[10/46] Wrapping AST for citron for debugging
[11/46] Write Objects.LinkFileList
[12/46] Linking citron-tool
[13/46] Generating FunctionHeaderParser.swift from FunctionHeaderParser.y
[15/46] Generating ArithmeticExpressionParser.swift from ArithmeticExpressionParser.y
[15/46] Write sources
[19/46] Generating ArithmeticExpressionParser.swift from ArithmeticExpressionParser.y
[20/46] Write sources
[22/46] Compiling CitronLexerModule SourceRegion.swift
/host/spi-builder-workspace/Sources/CitronLexerModule/CitronLexer.swift:5:8: error: no such module 'Foundation'
3 | // This file is part of the Citron Lexer Module
4 |
5 | import Foundation
| `- error: no such module 'Foundation'
6 |
7 | public typealias CitronLexerPosition = (tokenPosition: String.Index, linePosition: String.Index, lineNumber: Int)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/46] Emitting module CitronLexerModule
/host/spi-builder-workspace/Sources/CitronLexerModule/CitronLexer.swift:5:8: error: no such module 'Foundation'
3 | // This file is part of the Citron Lexer Module
4 |
5 | import Foundation
| `- error: no such module 'Foundation'
6 |
7 | public typealias CitronLexerPosition = (tokenPosition: String.Index, linePosition: String.Index, lineNumber: Int)
[24/46] Compiling CitronLexerModule CitronLexer.swift
/host/spi-builder-workspace/Sources/CitronLexerModule/CitronLexer.swift:5:8: error: no such module 'Foundation'
3 | // This file is part of the Citron Lexer Module
4 |
5 | import Foundation
| `- error: no such module 'Foundation'
6 |
7 | public typealias CitronLexerPosition = (tokenPosition: String.Index, linePosition: String.Index, lineNumber: Int)
[25/46] Compiling CitronLexerModule Scanner.swift
/host/spi-builder-workspace/Sources/CitronLexerModule/CitronLexer.swift:5:8: error: no such module 'Foundation'
3 | // This file is part of the Citron Lexer Module
4 |
5 | import Foundation
| `- error: no such module 'Foundation'
6 |
7 | public typealias CitronLexerPosition = (tokenPosition: String.Index, linePosition: String.Index, lineNumber: Int)
[26/46] Emitting module CitronParserModule
[27/46] Emitting module citron
BUILD FAILURE 6.2 wasm