The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-capstone, reference main (33998b), with Swift 6.2 for Linux on 4 Oct 2026 09:10:27 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MxIris-Reverse-Engineering/swift-capstone.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/MxIris-Reverse-Engineering/swift-capstone
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 33998b4 chore: remove the legacy XCTest LinuxMain entry point
Cloned https://github.com/MxIris-Reverse-Engineering/swift-capstone.git
Revision (git rev-parse @):
33998b4516d65fef2e0bb23876b2b04a91d47bfc
SUCCESS checkout https://github.com/MxIris-Reverse-Engineering/swift-capstone.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/MxIris-Reverse-Engineering/swift-capstone.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:813c8e8a77634154d7d247705cb89167ff1c866446abbe321f542129dc4cf5a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Fetching https://github.com/MxIris-Reverse-Engineering/capstone
Fetching https://github.com/MxIris-DeveloperTool/swift-clang
[1/176] Fetching swift-clang
Fetched https://github.com/MxIris-DeveloperTool/swift-clang from cache (0.40s)
[1/48870] Fetching capstone
Fetched https://github.com/MxIris-Reverse-Engineering/capstone from cache (6.09s)
Computing version for https://github.com/MxIris-Reverse-Engineering/capstone
Computed https://github.com/MxIris-Reverse-Engineering/capstone at 5.0.100 (6.36s)
Computing version for https://github.com/MxIris-DeveloperTool/swift-clang
Computed https://github.com/MxIris-DeveloperTool/swift-clang at 0.3.0 (0.15s)
Creating working copy for https://github.com/MxIris-Reverse-Engineering/capstone
Working copy of https://github.com/MxIris-Reverse-Engineering/capstone resolved at 5.0.100
Creating working copy for https://github.com/MxIris-DeveloperTool/swift-clang
Working copy of https://github.com/MxIris-DeveloperTool/swift-clang resolved at 0.3.0
[1/1] Compiling plugin CapstoneEnumsGeneratePlugin
Building for debugging...
[1/104] Write sources
[7/104] Compiling Cclang clang.c
[9/104] Compiling EVMModule.c
[10/104] Compiling Ccapstone MCInstrDesc.c
[11/104] Compiling XCoreModule.c
[12/104] Compiling XCoreMapping.c
[13/104] Compiling X86Module.c
[14/104] Compiling XCoreInstPrinter.c
[15/104] Compiling XCoreDisassembler.c
[16/104] Compiling Ccapstone MCRegisterInfo.c
[17/104] Compiling X86IntelInstPrinter.c
[18/104] Compiling X86Mapping.c
[19/104] Compiling X86Disassembler.c
[20/104] Compiling X86InstPrinterCommon.c
[20/104] Compiling X86ATTInstPrinter.c
[21/104] Compiling Ccapstone utils.c
[23/104] Compiling X86DisassemblerDecoder.c
[24/104] Write swift-version-24593BA9C3E375BF.txt
[25/104] Compiling Ccapstone MCInst.c
[26/104] Compiling WASMInstPrinter.c
[27/104] Compiling WASMModule.c
[28/104] Compiling WASMMapping.c
[29/104] Compiling TriCoreMapping.c
[30/104] Compiling WASMDisassembler.c
[31/104] Compiling TriCoreModule.c
[32/104] Compiling TriCoreInstPrinter.c
[33/104] Compiling TriCoreDisassembler.c
[34/104] Compiling TMS320C64xMapping.c
[35/104] Compiling TMS320C64xInstPrinter.c
[36/104] Compiling TMS320C64xDisassembler.c
[37/104] Compiling Ccapstone cs.c
[38/104] Compiling TMS320C64xModule.c
[39/104] Compiling SystemZInstPrinter.c
[40/106] Compiling SystemZDisassembler.c
[41/106] Compiling SystemZMapping.c
[42/106] Compiling SystemZMCTargetDesc.c
[43/106] Compiling SparcModule.c
[44/106] Compiling SparcInstPrinter.c
[45/107] Compiling SHModule.c
[46/107] Compiling SparcMapping.c
[47/107] Compiling SparcDisassembler.c
[48/107] Compiling SystemZModule.c
[49/107] Compiling SHInstPrinter.c
[50/108] Compiling RISCVModule.c
[51/110] Compiling SHDisassembler.c
[52/110] Compiling RISCVInstPrinter.c
[53/110] Compiling RISCVMapping.c
[54/110] Compiling RISCVDisassembler.c
[55/110] Compiling PPCDisassembler.c
[56/110] Compiling PPCModule.c
[57/110] Compiling PPCMapping.c
[58/110] Compiling MipsModule.c
[59/110] Compiling MipsMapping.c
[60/110] Compiling PPCInstPrinter.c
[61/110] Compiling MipsInstPrinter.c
[62/110] Compiling MOS65XXDisassembler.c
[63/110] Compiling MOS65XXModule.c
[64/110] Compiling M68KDisassembler.c
[65/110] Compiling M68KInstPrinter.c
[66/110] Compiling M680XInstPrinter.c
[66/110] Compiling M68KModule.c
[68/110] Compiling M680XModule.c
[69/110] Compiling EVMMapping.c
[70/110] Compiling EVMInstPrinter.c
[71/110] Compiling M680XDisassembler.c
[72/110] Compiling MipsDisassembler.c
[73/110] Compiling EVMDisassembler.c
[74/110] Compiling BPFModule.c
[75/110] Compiling BPFInstPrinter.c
[76/110] Compiling BPFDisassembler.c
[77/110] Compiling ARMModule.c
[78/110] Compiling ARMInstPrinter.c
[79/110] Compiling BPFMapping.c
[80/110] Compiling ARMDisassembler.c
[81/110] Compiling AArch64Module.c
[82/110] Compiling ARMMapping.c
[83/110] Compiling AArch64InstPrinter.c
[83/110] Write sources
[83/110] Compiling AArch64Mapping.c
[83/110] Compiling AArch64BaseInfo.c
[89/110] Compiling AArch64Disassembler.c
[90/110] Compiling Ccapstone SStream.c
[91/110] Compiling Ccapstone Mapping.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[93/149] Emitting module CclangWrapper
/host/spi-builder-workspace/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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 |     }
[95/149] Emitting module Capstone
[96/154] Compiling Capstone TMS320C64x.swift
[97/154] Compiling Capstone TMS320C64xEnums.swift
[98/154] Compiling Capstone TricoreEnums.swift
[99/154] Compiling Capstone Utils.swift
[100/154] Compiling Capstone Wasm.swift
[101/154] Compiling Capstone WasmEnums.swift
[102/154] Compiling Capstone X86.swift
[103/154] Compiling Capstone X86Enums.swift
[104/154] Compiling Capstone Xcore.swift
[105/154] Compiling Capstone XcoreEnums.swift
[106/154] Compiling CclangWrapper library_wrapper_Clang_C.swift
[108/154] Compiling Capstone Sparc.swift
[109/154] Compiling Capstone SparcEnums.swift
[110/154] Compiling Capstone Syntax.swift
[111/154] Compiling Capstone Sysz.swift
[112/154] Compiling Capstone SyszEnums.swift
[113/154] Compiling Capstone Ppc.swift
[114/154] Compiling Capstone PpcEnums.swift
[115/154] Compiling Capstone Riscv.swift
[116/154] Compiling Capstone RiscvEnums.swift
[117/154] Compiling Capstone ShEnums.swift
[118/154] Compiling CclangWrapper library_wrapper.swift
/host/spi-builder-workspace/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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,
[119/154] Compiling Capstone InstructionDetails.swift
[120/154] Compiling Capstone M680x.swift
[121/154] Compiling Capstone M680xEnums.swift
[122/154] Compiling Capstone M68k.swift
[123/154] Compiling Capstone M68kEnums.swift
[124/154] Compiling Capstone Mips.swift
/host/spi-builder-workspace/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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/.build/checkouts/swift-clang/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 |     }
BUILD FAILURE 6.2 linux