The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-clang, reference 0.2.0 (f92a83), with Swift 6.3 for Linux on 19 Apr 2026 07:08:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MxIris-DeveloperTool/swift-clang.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/MxIris-DeveloperTool/swift-clang
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at f92a834 refactor: improve API surface and access control across Clang module
Cloned https://github.com/MxIris-DeveloperTool/swift-clang.git
Revision (git rev-parse @):
f92a834ed33249612d9ef30a41d8254d32a7602a
SUCCESS checkout https://github.com/MxIris-DeveloperTool/swift-clang.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/MxIris-DeveloperTool/swift-clang.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/4] Write sources
[2/4] Compiling Cclang clang.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Compiling CclangWrapper library_wrapper_Clang_C.swift
[6/7] Emitting module CclangWrapper
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:91:30: error: cannot find 'Exec' in scope
 89 | /// If available, uses `swiftenv` to determine the user's active Swift root.
 90 | internal let linuxFindSwiftenvActiveLibPath: String? = {
 91 |     guard let swiftenvPath = Exec.run("/usr/bin/env", "which", "swiftenv", stderr: .discard).string else {
    |                              `- error: cannot find 'Exec' in scope
 92 |         return nil
 93 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:95:30: error: cannot find 'Exec' in scope
 93 |     }
 94 |
 95 |     guard let swiftenvRoot = Exec.run(swiftenvPath, "prefix").string else {
    |                              `- error: cannot find 'Exec' in scope
 96 |         return nil
 97 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:91:85: error: cannot infer contextual base in reference to member 'discard'
 89 | /// If available, uses `swiftenv` to determine the user's active Swift root.
 90 | internal let linuxFindSwiftenvActiveLibPath: String? = {
 91 |     guard let swiftenvPath = Exec.run("/usr/bin/env", "which", "swiftenv", stderr: .discard).string else {
    |                                                                                     `- error: cannot infer contextual base in reference to member 'discard'
 92 |         return nil
 93 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:105:27: error: cannot find 'Exec' in scope
103 | /// the `swift` binary on the path.
104 | internal let linuxFindSwiftInstallationLibPath: String? = {
105 |     guard let swiftPath = Exec.run("/usr/bin/env", "which", "swift", stderr: .discard).string else {
    |                           `- error: cannot find 'Exec' in scope
106 |         return nil
107 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:105:79: error: cannot infer contextual base in reference to member 'discard'
103 | /// the `swift` binary on the path.
104 | internal let linuxFindSwiftInstallationLibPath: String? = {
105 |     guard let swiftPath = Exec.run("/usr/bin/env", "which", "swift", stderr: .discard).string else {
    |                                                                               `- error: cannot infer contextual base in reference to member 'discard'
106 |         return nil
107 |     }
[7/7] Compiling CclangWrapper library_wrapper.swift
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:91:30: error: cannot find 'Exec' in scope
 89 | /// If available, uses `swiftenv` to determine the user's active Swift root.
 90 | internal let linuxFindSwiftenvActiveLibPath: String? = {
 91 |     guard let swiftenvPath = Exec.run("/usr/bin/env", "which", "swiftenv", stderr: .discard).string else {
    |                              `- error: cannot find 'Exec' in scope
 92 |         return nil
 93 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:95:30: error: cannot find 'Exec' in scope
 93 |     }
 94 |
 95 |     guard let swiftenvRoot = Exec.run(swiftenvPath, "prefix").string else {
    |                              `- error: cannot find 'Exec' in scope
 96 |         return nil
 97 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:91:85: error: cannot infer contextual base in reference to member 'discard'
 89 | /// If available, uses `swiftenv` to determine the user's active Swift root.
 90 | internal let linuxFindSwiftenvActiveLibPath: String? = {
 91 |     guard let swiftenvPath = Exec.run("/usr/bin/env", "which", "swiftenv", stderr: .discard).string else {
    |                                                                                     `- error: cannot infer contextual base in reference to member 'discard'
 92 |         return nil
 93 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:105:27: error: cannot find 'Exec' in scope
103 | /// the `swift` binary on the path.
104 | internal let linuxFindSwiftInstallationLibPath: String? = {
105 |     guard let swiftPath = Exec.run("/usr/bin/env", "which", "swift", stderr: .discard).string else {
    |                           `- error: cannot find 'Exec' in scope
106 |         return nil
107 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:105:79: error: cannot infer contextual base in reference to member 'discard'
103 | /// the `swift` binary on the path.
104 | internal let linuxFindSwiftInstallationLibPath: String? = {
105 |     guard let swiftPath = Exec.run("/usr/bin/env", "which", "swift", stderr: .discard).string else {
    |                                                                               `- error: cannot infer contextual base in reference to member 'discard'
106 |         return nil
107 |     }
/host/spi-builder-workspace/Sources/CclangWrapper/library_wrapper.swift:42:91: error: value of type 'String' has no member 'isFile'
 40 |
 41 |     func load(path: String) -> DynamicLinkLibrary {
 42 |         let fullPaths = searchPaths.map { $0.appending(pathComponent: path) }.filter { $0.isFile }
    |                                                                                           `- error: value of type 'String' has no member 'isFile'
 43 |
 44 |         // try all fullPaths that contains target file,
BUILD FAILURE 6.3 linux