Build Information
Failed to build citron, reference main (4cf020), with Swift 6.2 for Wasm on 22 Jun 2025 10:40:30 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: 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/dabrahams/citron
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4cf0201 Merge branch 'build-tool-plugin'
Cloned https://github.com/dabrahams/citron.git
Revision (git rev-parse @):
4cf0201616576a7c11022e51cbb16c05aee55b05
SUCCESS checkout https://github.com/dabrahams/citron.git at main
========================================
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] Emitting module citron
[5/8] Compiling citron main.swift
[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] Compiling CitronCLibrary main_.c
[7/36] Write swift-version-24593BA9C3E375BF.txt
[9/44] Emitting module citron
[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
[14/46] Write sources
[15/46] Generating FunctionHeaderParser.swift from FunctionHeaderParser.y
[16/46] Write sources
[17/46] Generating ArithmeticExpressionParser.swift from ArithmeticExpressionParser.y
[18/46] Write sources
[19/46] Generating ArithmeticExpressionParser.swift from ArithmeticExpressionParser.y
[20/46] Write sources
[22/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)
[23/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)
[24/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)
[25/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)
[26/46] Emitting module citron
[27/46] Compiling citron main.swift
[28/46] Emitting module CitronParserModule
BUILD FAILURE 6.2 wasm