Build Information
Failed to build swift-css-parser, reference main (2fab1e
), with Swift 6.1 for Wasm on 28 May 2025 05:52:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stackotter/swift-css-parser.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/stackotter/swift-css-parser
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2fab1e8 Add example to readme (closes #2)
Submodule path 'cssparser': checked out '0675c7ade2d5398bb9981ff32aac469c5171f62b'
Submodule 'cssparser' (https://github.com/Sigil-Ebook/cssparser.git) registered for path 'cssparser'
Cloning into '/host/spi-builder-workspace/cssparser'...
Cloned https://github.com/stackotter/swift-css-parser.git
Revision (git rev-parse @):
2fab1e835b78ff82de4a8f6f9119be3b52231b08
SUCCESS checkout https://github.com/stackotter/swift-css-parser.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/stackotter/swift-css-parser.git
https://github.com/stackotter/swift-css-parser.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-css-parser",
"name" : "swift-css-parser",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftCSSParser",
"targets" : [
"SwiftCSSParser"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftCSSParser",
"module_type" : "SwiftTarget",
"name" : "SwiftCSSParser",
"path" : "Sources/SwiftCSSParser",
"product_memberships" : [
"SwiftCSSParser"
],
"sources" : [
"AtBlock.swift",
"Declaration.swift",
"Extensions/String.swift",
"IndentationStyle.swift",
"ParsingError.swift",
"RuleSet.swift",
"Statement.swift",
"Stylesheet.swift",
"Token.swift",
"TokenType.swift"
],
"target_dependencies" : [
"CCSSParser"
],
"type" : "library"
},
{
"c99name" : "CSSParserTests",
"module_type" : "SwiftTarget",
"name" : "CSSParserTests",
"path" : "Tests/CSSParserTests",
"sources" : [
"CSSParserTests.swift"
],
"target_dependencies" : [
"SwiftCSSParser"
],
"type" : "test"
},
{
"c99name" : "CSSParser",
"module_type" : "ClangTarget",
"name" : "CSSParser",
"path" : "cssparser/cssparser",
"product_memberships" : [
"SwiftCSSParser"
],
"sources" : [
"CSSParser.cpp",
"CSSProperties.cpp",
"CSSUtils.cpp"
],
"type" : "library"
},
{
"c99name" : "CCSSParser",
"module_type" : "ClangTarget",
"name" : "CCSSParser",
"path" : "Sources/CCSSParser",
"product_memberships" : [
"SwiftCSSParser"
],
"sources" : [
"CCSSParser.cpp"
],
"target_dependencies" : [
"CSSParser"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/6] Write sources
/host/spi-builder-workspace/cssparser/cssparser/CSSUtils.cpp:177:19: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
177 | std::ifstream file_input(filename.c_str(),std::ios::binary);
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
/host/spi-builder-workspace/cssparser/cssparser/CSSUtils.cpp:200:19: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
200 | std::ifstream file_input(filename);
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
2 errors generated.
[1/6] Compiling CSSParser CSSUtils.cpp
[1/6] Write swift-version-24593BA9C3E375BF.txt
/host/spi-builder-workspace/cssparser/cssparser/CSSParser.cpp:283:19: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
283 | std::ofstream file_output;
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
| ^
[1/6] Compiling CSSParser CSSParser.cpp
[1/6] Compiling CCSSParser CCSSParser.cpp
[1/6] Compiling CSSParser CSSProperties.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[1/5] Compiling CSSParser CSSProperties.cpp
[2/5] Compiling CCSSParser CCSSParser.cpp
/host/spi-builder-workspace/cssparser/cssparser/CSSUtils.cpp:177:19: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
177 | std::ifstream file_input(filename.c_str(),std::ios::binary);
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
/host/spi-builder-workspace/cssparser/cssparser/CSSUtils.cpp:200:19: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
200 | std::ifstream file_input(filename);
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
2 errors generated.
[3/15] Compiling CSSParser CSSUtils.cpp
[3/15] Compiling CSSParser CSSParser.cpp
BUILD FAILURE 6.1 wasm