Build Information
Failed to build swift-capstone, reference main (33998b), with Swift 6.2 for Wasm on 4 Oct 2026 09:09:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build 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: wasm
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-54344843-0":/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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/MxIris-DeveloperTool/swift-clang
Fetching https://github.com/MxIris-Reverse-Engineering/capstone
[1/176] Fetching swift-clang
Fetched https://github.com/MxIris-DeveloperTool/swift-clang from cache (0.42s)
[1/48870] Fetching capstone
Fetched https://github.com/MxIris-Reverse-Engineering/capstone from cache (4.54s)
Computing version for https://github.com/MxIris-Reverse-Engineering/capstone
Computed https://github.com/MxIris-Reverse-Engineering/capstone at 5.0.100 (4.90s)
Computing version for https://github.com/MxIris-DeveloperTool/swift-clang
Computed https://github.com/MxIris-DeveloperTool/swift-clang at 0.3.0 (0.21s)
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
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
[1/1] Compiling plugin CapstoneEnumsGeneratePlugin
Building for debugging...
[1/104] Write sources
[8/104] Compiling Cclang clang.c
[9/104] Compiling XCoreMapping.c
[11/104] Compiling XCoreModule.c
[12/104] Compiling XCoreInstPrinter.c
[13/104] Compiling X86Module.c
[13/104] Compiling XCoreDisassembler.c
[15/104] Compiling X86DisassemblerDecoder.c
[16/104] Compiling X86Mapping.c
[17/104] Compiling X86Disassembler.c
[18/104] Compiling X86IntelInstPrinter.c
[19/104] Compiling Ccapstone utils.c
[20/104] Compiling X86InstPrinterCommon.c
[21/104] Compiling X86ATTInstPrinter.c
[22/104] Compiling WASMMapping.c
[23/104] Compiling WASMDisassembler.c
[24/104] Compiling WASMModule.c
[25/104] Compiling TriCoreModule.c
[26/104] Compiling TriCoreInstPrinter.c
[27/104] Compiling WASMInstPrinter.c
[28/104] Compiling TMS320C64xMapping.c
[29/104] Compiling TMS320C64xDisassembler.c
[30/104] Compiling TriCoreDisassembler.c
[31/104] Compiling TMS320C64xModule.c
[32/104] Compiling TriCoreMapping.c
[33/104] Compiling SystemZMCTargetDesc.c
[33/104] Compiling TMS320C64xInstPrinter.c
[35/104] Compiling SystemZModule.c
[36/104] Compiling SystemZMapping.c
[37/104] Compiling SystemZInstPrinter.c
[38/104] Write swift-version-24593BA9C3E375BF.txt
[39/104] Compiling SparcMapping.c
[40/104] Compiling SparcModule.c
[41/104] Compiling SparcInstPrinter.c
[42/104] Compiling SystemZDisassembler.c
[42/104] Compiling Ccapstone MCRegisterInfo.c
[44/104] Compiling SparcDisassembler.c
[45/104] Compiling SHModule.c
[46/104] Compiling Ccapstone cs.c
[47/104] Compiling SHInstPrinter.c
[47/104] Compiling SHDisassembler.c
[49/104] Compiling RISCVModule.c
[50/104] Compiling RISCVMapping.c
[50/104] Compiling PPCModule.c
[52/104] Compiling RISCVDisassembler.c
[53/104] Compiling RISCVInstPrinter.c
[54/104] Compiling PPCMapping.c
[55/104] Compiling PPCInstPrinter.c
[56/104] Compiling PPCDisassembler.c
[57/104] Compiling MipsMapping.c
[58/104] Compiling MipsModule.c
[58/104] Compiling MOS65XXDisassembler.c
[60/104] Compiling MipsDisassembler.c
[61/109] Compiling MipsInstPrinter.c
[62/110] Compiling M68KModule.c
[63/110] Compiling MOS65XXModule.c
[63/110] Compiling M680XModule.c
[65/110] Compiling M680XDisassembler.c
[66/110] Compiling M680XInstPrinter.c
[67/110] Compiling M68KInstPrinter.c
[68/110] Compiling EVMMapping.c
[69/110] Compiling M68KDisassembler.c
[70/110] Compiling EVMInstPrinter.c
[71/110] Compiling EVMModule.c
[72/110] Compiling BPFInstPrinter.c
[73/110] Compiling EVMDisassembler.c
[74/110] Compiling BPFMapping.c
[75/110] Compiling BPFDisassembler.c
[76/110] Compiling BPFModule.c
[77/110] Compiling ARMMapping.c
[77/110] Compiling ARMModule.c
[79/110] Compiling ARMDisassembler.c
[80/110] Compiling AArch64Mapping.c
[81/110] Compiling AArch64Module.c
[82/110] Compiling ARMInstPrinter.c
[82/110] Compiling AArch64InstPrinter.c
[82/110] Compiling AArch64Disassembler.c
[82/110] Write sources
[87/110] Compiling AArch64BaseInfo.c
[88/110] Compiling Ccapstone MCInstrDesc.c
[89/110] Compiling Ccapstone MCInst.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 | }
[94/149] Emitting module Capstone
[95/149] Compiling Capstone TMS320C64x.swift
[96/149] Compiling Capstone TMS320C64xEnums.swift
[97/149] Compiling Capstone TricoreEnums.swift
[98/149] Compiling Capstone Utils.swift
[99/149] Compiling Capstone Wasm.swift
[100/154] Compiling CclangWrapper library_wrapper_Clang_C.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
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/CclangWrapper/library_wrapper_Clang_C.swift:6:8: error: no such module 'Darwin'
4 | import WinSDK
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
<module-includes>:8:10: note: in file included from <module-includes>:8:
6 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXSourceLocation.h"
7 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXString.h"
8 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h"
| `- note: in file included from <module-includes>:8:
9 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/ExternC.h"
10 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/FatalErrorHandler.h"
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:10: note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
18 | #include "clang-c/CXErrorCode.h"
19 | #include "clang-c/ExternC.h"
20 | #include "clang-c/Index.h"
| `- note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
21 |
22 | LLVM_CLANG_C_EXTERN_C_BEGIN
[107/154] Compiling Capstone Ppc.swift
[108/154] Compiling Capstone PpcEnums.swift
[109/154] Compiling Capstone Riscv.swift
[110/154] Compiling Capstone RiscvEnums.swift
[111/154] Compiling Capstone ShEnums.swift
[112/154] Compiling Capstone Sparc.swift
[113/154] Compiling Capstone SparcEnums.swift
[114/154] Compiling Capstone Syntax.swift
[115/154] Compiling Capstone Sysz.swift
[116/154] Compiling Capstone SyszEnums.swift
[117/154] Compiling Capstone Architecture.swift
[118/154] Compiling Capstone Arm.swift
[119/154] Compiling Capstone Arm64.swift
[120/154] Compiling Capstone Arm64Enums.swift
[121/154] Compiling Capstone ArmEnums.swift
[122/154] Compiling Capstone Bpf.swift
[123/154] Compiling Capstone InstructionDetails.swift
[124/154] Compiling Capstone M680x.swift
[125/154] Compiling Capstone M680xEnums.swift
[126/154] Compiling Capstone M68k.swift
[127/154] Compiling Capstone M68kEnums.swift
[128/154] Compiling Capstone Mips.swift
[129/154] Compiling Capstone MipsEnums.swift
[130/154] Compiling Capstone Mode.swift
[131/154] Compiling Capstone Mos65xx.swift
[132/154] Compiling Capstone Mos65xxEnums.swift
[133/154] Compiling Capstone Options.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[134/154] Emitting module CclangWrapper
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/CclangWrapper/library_wrapper_Clang_C.swift:6:8: error: no such module 'Darwin'
4 | import WinSDK
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
<module-includes>:8:10: note: in file included from <module-includes>:8:
6 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXSourceLocation.h"
7 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXString.h"
8 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h"
| `- note: in file included from <module-includes>:8:
9 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/ExternC.h"
10 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/FatalErrorHandler.h"
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:10: note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
18 | #include "clang-c/CXErrorCode.h"
19 | #include "clang-c/ExternC.h"
20 | #include "clang-c/Index.h"
| `- note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
21 |
22 | LLVM_CLANG_C_EXTERN_C_BEGIN
[135/154] Compiling CclangWrapper library_wrapper.swift
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/CclangWrapper/library_wrapper_Clang_C.swift:6:8: error: no such module 'Darwin'
4 | import WinSDK
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
<module-includes>:8:10: note: in file included from <module-includes>:8:
6 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXSourceLocation.h"
7 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/CXString.h"
8 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h"
| `- note: in file included from <module-includes>:8:
9 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/ExternC.h"
10 | #include "/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/FatalErrorHandler.h"
/host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:10: note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
18 | #include "clang-c/CXErrorCode.h"
19 | #include "clang-c/ExternC.h"
20 | #include "clang-c/Index.h"
| `- note: in file included from /host/spi-builder-workspace/.build/checkouts/swift-clang/Sources/Cclang/include/clang-c/Documentation.h:20:
21 |
22 | LLVM_CLANG_C_EXTERN_C_BEGIN
/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 wasm