SwiftLint fails to compile ("signal 9")
brookinc opened this issue · comments
As of the latest commit (targeting Swift 5.9.2 on Ubuntu 22.04), with all dependencies up-to-date (Vagrant 2.4.1, VirtualBox 7.0.14, running on macOS 14.4), the SwiftLint compile step fails with error: compile command failed due to signal 9 (use -v to see invocation)
:
default: Buidling SwiftLint...
default: Fetching https://github.com/jpsim/SourceKitten.git
[...]
default: Working copy of https://github.com/JohnSundell/CollectionConcurrencyKit.git resolved at 0.2.0
default: Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.54.0/SwiftLintBinary-macos.artifactbundle.zip
default: [878/10235927] Downloading https://github.com/realm/SwiftLint/releases/download/0.54.0/SwiftLintBinary-macos.artifactbundle.zip
default: Downloaded https://github.com/realm/SwiftLint/releases/download/0.54.0/SwiftLintBinary-macos.artifactbundle.zip (2.63s)
default: [1/1] Compiling plugin GenerateManual
default: [2/2] Compiling plugin SwiftLintPlugin
default: Building for production...
default: [2/12] Compiling SourceKit SourceKit.c
default: [3/12] Compiling Clang_C Clang_C.c
default: [4/12] Compiling writer.c
default: [6/13] Compiling SwiftSyntax509 Empty.swift
default: [8/16] Compiling SwiftyTextTable TextTable.swift
default: [10/18] Compiling SWXMLHash XMLAttributeDeserializable.swift
default: [12/20] Compiling CryptoSwift AEAD.swift
default: [14/22] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
default: [16/24] Compiling ArgumentParserToolInfo ToolInfo.swift
default: [17/25] Compiling scanner.c
default: [19/26] Compiling ArgumentParser BashCompletionsGenerator.swift
default: [20/27] Compiling reader.c
default: [21/27] Compiling parser.c
default: [22/27] Compiling emitter.c
default: [23/27] Compiling api.c
default: [25/28] Compiling Yams Constructor.swift
default: [27/30] Compiling SourceKittenFramework ByteCount.swift
default: error: compile command failed due to signal 9 (use -v to see invocation)
default: ERROR: SwiftLint build failed.
The references in the output to macOS binaries are interesting; perhaps building on Linux isn't working correctly out of the box right now?
(In an earlier build attempt, I was also getting "Invalid manifest" errors, although those seem to have gone away now...)
Reference links I've found so far:
SwiftLint for Linux discussion (also here)
"compile command failed due to signal 9" results (none related to SwiftLint, as far as I can tell)
For now, I'm going to disable SwiftLint building until there's a clearer resolution here.