The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LinuxMainGen, reference 0.2.0 (d7751d), with Swift 6.4 for Linux on 16 Sep 2026 14:12:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rb-de0/linuxmaingen.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/rb-de0/linuxmaingen
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at d7751d5 Add support nested test classes
Cloned https://github.com/rb-de0/linuxmaingen.git
Revision (git rev-parse @):
d7751d57ff9dc12260436a732cb099c33ab8c137
SUCCESS checkout https://github.com/rb-de0/linuxmaingen.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/rb-de0/linuxmaingen.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/kareman/Moderator.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/kareman/FileSmith.git
[1/1686] Fetching filesmith
[204/2344] Fetching filesmith, moderator
[2135/18676] Fetching filesmith, moderator, sourcekitten
Fetched https://github.com/kareman/FileSmith.git (0.50s)
[775/16990] Fetching moderator, sourcekitten
Fetched https://github.com/kareman/Moderator.git (0.85s)
Fetched https://github.com/jpsim/SourceKitten.git (0.95s)
Computing version for https://github.com/kareman/Moderator.git
Computed https://github.com/kareman/Moderator.git at 0.5.1 (1.14s)
Computing version for https://github.com/kareman/FileSmith.git
Computed https://github.com/kareman/FileSmith.git at 0.3.0 (1.05s)
Fetching https://github.com/kareman/SwiftShell.git
[1/4891] Fetching swiftshell
Fetched https://github.com/kareman/SwiftShell.git (0.55s)
Computing version for https://github.com/kareman/SwiftShell.git
Computed https://github.com/kareman/SwiftShell.git at 5.1.1 (0.75s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.38.0 (0.19s)
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/11861] Fetching yams
[2/30720] Fetching yams, swift-argument-parser
[14675/33585] Fetching yams, swift-argument-parser, swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git (0.74s)
[25383/30720] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.82s)
[6998/11861] Fetching yams
Fetched https://github.com/jpsim/Yams.git (1.15s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (1.34s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 6.2.2 (0.17s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.18s)
Creating working copy for https://github.com/kareman/Moderator.git
Working copy of https://github.com/kareman/Moderator.git resolved at 0.5.1
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.38.0
Creating working copy for https://github.com/kareman/SwiftShell.git
Working copy of https://github.com/kareman/SwiftShell.git resolved at 5.1.1
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 6.2.2
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/kareman/FileSmith.git
Working copy of https://github.com/kareman/FileSmith.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 307]
[Planning deferred tasks]
[69 / 122] Clang_C
[80 / 153] SWXMLHash
[83 / 153] CYaml
[85 / 153] Yams
[97 / 153] Yams
[98 / 153] SwiftShell
[108 / 153] Yams-product
[111 / 153] Yams-product
[120 / 154] Yams
[125 / 154] SWXMLHash-product
[129 / 154] Moderator-product
[134 / 173] SourceKittenFramework
[138 / 174] SwiftShell
[150 / 176] SourceKittenFramework
[163 / 176] Moderator
[166 / 176] linuxmain-gen-product
[170 / 185] linuxmain-gen-product
[173 / 186] SourceKittenFramework
[178 / 186]
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/LinuxMainGen/SourceWriter.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile SourceWriter.swift
/host/spi-builder-workspace/Sources/LinuxMainGen/SourceWriter.swift:40:59: error: value of type 'NSString' has no member 'byteRangeToNSRange'
 38 |                 }
 39 |
 40 |                 if let range = testClass.file.contents.ns.byteRangeToNSRange(start: offset, length: length) {
    |                                                           `- error: value of type 'NSString' has no member 'byteRangeToNSRange'
 41 |                     contents = testClass.file.contents.ns.replacingCharacters(in: range, with: "")
 42 |                     let file = try FileSmith.WritableFile(open: path)
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/LinuxMainGen/Extension/String+Util.swift /host/spi-builder-workspace/Sources/LinuxMainGen/Extension/Structure+Util.swift /host/spi-builder-workspace/Sources/LinuxMainGen/Extension/Structure+Value.swift /host/spi-builder-workspace/Sources/LinuxMainGen/SourceParser.swift -primary-file /host/spi-builder-workspace/Sources/LinuxMainGen/SourceWriter.swift /host/spi-builder-workspace/Sources/LinuxMainGen/TestClass.swift /host/spi-builder-workspace/Sources/LinuxMainGen/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/Yams/Sources/CYaml/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/SourceKit.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/Clang_C.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/Yams/Sources/CYaml/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/SourceKitten/Source/SourceKit/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/SourceKitten/Source/Clang_C/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name LinuxMainGen -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/linuxmain-gen_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.o -index-unit-output-path /LinuxMainGen.build/Debug-linux-x86_64/linuxmain-gen-p.build/Objects-normal/x86_64/SourceWriter.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux