The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LinuxMainGen, reference master (d7751d), with Swift 6.2 (beta) for Linux on 18 Jun 2025 03:14:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rb-de0/linuxmaingen.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/rb-de0/linuxmaingen.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/kareman/Moderator.git
Fetching https://github.com/kareman/FileSmith.git
Fetching https://github.com/jpsim/SourceKitten.git
[1/1686] Fetching filesmith
[541/2344] Fetching filesmith, moderator
[1866/18488] Fetching filesmith, moderator, sourcekitten
Fetched https://github.com/kareman/FileSmith.git from cache (1.41s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (1.44s)
Fetched https://github.com/kareman/Moderator.git from cache (1.44s)
Computing version for https://github.com/kareman/Moderator.git
Computed https://github.com/kareman/Moderator.git at 0.5.1 (2.06s)
Computing version for https://github.com/kareman/FileSmith.git
Computed https://github.com/kareman/FileSmith.git at 0.3.0 (3.94s)
Fetching https://github.com/kareman/SwiftShell.git
[1/4863] Fetching swiftshell
Fetched https://github.com/kareman/SwiftShell.git from cache (0.49s)
Computing version for https://github.com/kareman/SwiftShell.git
Computed https://github.com/kareman/SwiftShell.git at 5.1.0 (1.06s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.37.2 (0.51s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/jpsim/Yams.git
[1/2820] Fetching swxmlhash
[2821/13679] Fetching swxmlhash, yams
[8468/29059] Fetching swxmlhash, yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.08s)
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (3.70s)
Fetched https://github.com/jpsim/Yams.git from cache (3.73s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 6.0.1 (4.34s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.52s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (1.00s)
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/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.37.2
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/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 6.0.1
Creating working copy for https://github.com/kareman/SwiftShell.git
Working copy of https://github.com/kareman/SwiftShell.git resolved at 5.1.0
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.5.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/26] Write sources
[8/26] Compiling Clang_C Clang_C.c
[9/26] Compiling SourceKit SourceKit.c
[10/26] Compiling writer.c
[11/26] Compiling reader.c
[12/26] Compiling parser.c
[13/26] Write swift-version-24593BA9C3E375BF.txt
[14/26] Compiling emitter.c
[15/26] Compiling api.c
[16/63] Compiling scanner.c
[18/83] Emitting module Yams
[19/85] Compiling Moderator SwiftCompat.swift
[20/85] Compiling SwiftShell Array.swift
[21/86] Compiling Moderator Parsers.swift
[22/86] Compiling SwiftShell String.swift
[23/86] Compiling SwiftShell Files.swift
[24/86] Compiling Yams YamlTagProviding.swift
[25/86] Compiling SWXMLHash XMLElement.swift
[26/86] Compiling SWXMLHash XMLHash.swift
[27/89] Compiling Yams AliasDereferencingStrategy.swift
[28/89] Compiling Yams Anchor.swift
[29/89] Compiling Yams Constructor.swift
[30/89] Compiling SwiftShell Context.swift
[33/89] Emitting module SwiftShell
[34/89] Emitting module Moderator
[35/89] Compiling Moderator Moderator.swift
[36/89] Compiling Yams Node.Alias.swift
[37/89] Compiling Yams Node.Mapping.swift
[38/89] Compiling Yams Parser.swift
[39/90] Compiling Yams RedundancyAliasingStrategy.swift
[40/90] Compiling Yams Representer.swift
[41/90] Compiling Yams YamlError.swift
[42/90] Compiling Yams Resolver.swift
[43/90] Compiling Yams String+Yams.swift
[44/90] Compiling Yams Node.Scalar.swift
[45/90] Compiling Yams Node.Sequence.swift
[46/90] Compiling Yams Node.swift
[47/90] Compiling Yams Decoder.swift
[48/90] Compiling Yams Emitter.swift
[49/90] Compiling Yams Encoder.swift
[50/90] Compiling Yams Tag.swift
[51/90] Compiling Yams YamlAnchorProviding.swift
[65/90] Compiling Yams Mark.swift
[69/90] Emitting module SWXMLHash
[70/90] Compiling SwiftShell Lazy-split.swift
[71/90] Compiling SwiftShell Stream.swift
[72/90] Compiling SwiftShell Process.swift
[79/92] Wrapping AST for Moderator for debugging
[81/92] Wrapping AST for SwiftShell for debugging
[82/100] Wrapping AST for Yams for debugging
[84/100] Compiling SWXMLHash XMLHashOptions.swift
[85/100] Compiling SWXMLHash XMLIndexer.swift
[86/100] Compiling SWXMLHash shim.swift
[88/101] Compiling FileSmith SymbolicLinks.swift
[89/101] Compiling FileSmith Errors.swift
[89/101] Wrapping AST for SWXMLHash for debugging
[91/144] Emitting module FileSmith
[92/144] Compiling FileSmith Attributes.swift
[93/144] Compiling FileSmith Directory.swift
[94/144] Compiling FileSmith File.swift
[95/144] Compiling FileSmith General.swift
[96/144] Compiling FileSmith Paths.swift
[97/145] Wrapping AST for FileSmith for debugging
[99/145] Compiling SourceKittenFramework SyntaxToken.swift
[100/145] Compiling SourceKittenFramework Text.swift
[101/145] Compiling SourceKittenFramework UID.swift
[102/145] Compiling SourceKittenFramework UIDRepresentable.swift
[103/145] Compiling SourceKittenFramework UncheckedSendable.swift
[104/145] Compiling SourceKittenFramework Version.swift
[105/151] Compiling SourceKittenFramework SwiftDeclarationKind.swift
[106/151] Compiling SourceKittenFramework SwiftDocKey.swift
[107/151] Compiling SourceKittenFramework SwiftDocs.swift
[108/151] Compiling SourceKittenFramework SwiftVersion.swift
[109/151] Compiling SourceKittenFramework SyntaxKind.swift
[110/151] Compiling SourceKittenFramework SyntaxMap.swift
[111/151] Emitting module SourceKittenFramework
[112/151] Compiling SourceKittenFramework OffsetMap.swift
[113/151] Compiling SourceKittenFramework Parameter.swift
[114/151] Compiling SourceKittenFramework Request.swift
[115/151] Compiling SourceKittenFramework SourceDeclaration.swift
[116/151] Compiling SourceKittenFramework SourceKitObject.swift
[117/151] Compiling SourceKittenFramework SourceLocation.swift
[118/151] Compiling SourceKittenFramework StatementKind.swift
[119/151] Compiling SourceKittenFramework String+SourceKitten.swift
[120/151] Compiling SourceKittenFramework StringView+SourceKitten.swift
[121/151] Compiling SourceKittenFramework StringView.swift
[122/151] Compiling SourceKittenFramework Structure.swift
[123/151] Compiling SourceKittenFramework SwiftDeclarationAttributeKind.swift
[124/151] Compiling SourceKittenFramework Language.swift
[125/151] Compiling SourceKittenFramework LibraryWrapperGenerator.swift
[126/151] Compiling SourceKittenFramework Line.swift
[127/151] Compiling SourceKittenFramework LinuxCompatibility.swift
[128/151] Compiling SourceKittenFramework Module.swift
[129/151] Compiling SourceKittenFramework ObjCDeclarationKind.swift
[130/151] Compiling SourceKittenFramework Dictionary+Merge.swift
[131/151] Compiling SourceKittenFramework Documentation.swift
[132/151] Compiling SourceKittenFramework Exec.swift
[133/151] Compiling SourceKittenFramework File+Hashable.swift
[134/151] Compiling SourceKittenFramework File.swift
[135/151] Compiling SourceKittenFramework JSONOutput.swift
[136/151] Compiling SourceKittenFramework ByteCount.swift
[137/151] Compiling SourceKittenFramework ByteRange.swift
[138/151] Compiling SourceKittenFramework Clang+SourceKitten.swift
[139/151] Compiling SourceKittenFramework ClangTranslationUnit.swift
[140/151] Compiling SourceKittenFramework CodeCompletionItem.swift
[141/151] Compiling SourceKittenFramework CursorInfo+Parsing.swift
[142/151] Compiling SourceKittenFramework WindowsError.swift
[143/151] Compiling SourceKittenFramework Xcode.swift
[144/151] Compiling SourceKittenFramework XcodeBuildSetting.swift
[145/151] Compiling SourceKittenFramework library_wrapper.swift
[146/151] Compiling SourceKittenFramework library_wrapper_Clang_C.swift
[147/151] Compiling SourceKittenFramework library_wrapper_SourceKit.swift
[148/152] Wrapping AST for SourceKittenFramework for debugging
[150/160] Compiling LinuxMainGen SourceParser.swift
[151/160] Compiling LinuxMainGen Structure+Util.swift
[152/160] Compiling LinuxMainGen String+Util.swift
[153/160] Compiling LinuxMainGen Structure+Value.swift
[154/160] Emitting module LinuxMainGen
[155/160] Compiling LinuxMainGen TestClass.swift
[156/160] Compiling LinuxMainGen main.swift
[157/160] Compiling LinuxMainGen 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)
BUILD FAILURE 6.2 linux