mac02: building pfzsxpv43gpcf5z2s057dnccs9h9z9gf-sourcekit-lsp-6.4.0.drv Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/m0386l0x1fp568gp5a2bhhhziw00jrlb-source source root is source Running phase: patchPhase applying patch /nix/store/dhb86mjq4pm553dljqi9g6vyfsiahj5n-0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch patching file Sources/SKTestSupport/PerfTestCase.swift applying patch /nix/store/7n3rqd8w9pa1sxfz28wnq5vl82xvrg35-0002-add-missing-libraries.patch patching file Sources/BuildServerIntegration/CMakeLists.txt Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/share/doc/SourceKit-LSP -DCMAKE_INSTALL_INFODIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/lib -DCMAKE_STRIP=/nix/store/g8ygy4cj8gizpf47cpycr64fpkimchc8-clang-wrapper-21.1.8/bin/strip -DCMAKE_RANLIB=/nix/store/g8ygy4cj8gizpf47cpycr64fpkimchc8-clang-wrapper-21.1.8/bin/ranlib -DCMAKE_AR=/nix/store/g8ygy4cj8gizpf47cpycr64fpkimchc8-clang-wrapper-21.1.8/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0 -DCMAKE_Swift_COMPILER_TARGET=arm64-apple-macosx14.0 -DCMAKE_Swift_FLAGS=-module-cache-path\ /nix/var/nix/builds/nix-42271-1032983413/module-cache -- The C compiler identification is Clang 21.1.8 -- The Swift compiler identification is Apple 6.4 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/y360innw72ydrfciq2027q70cfcxbg9a-swift-6.4.0/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Check for working Swift compiler: /nix/store/y360innw72ydrfciq2027q70cfcxbg9a-swift-6.4.0/bin/swiftc -- Check for working Swift compiler: /nix/store/y360innw72ydrfciq2027q70cfcxbg9a-swift-6.4.0/bin/swiftc - works -- Configuring done (18.2s) -- Generating done (1.0s) CMake Warning (unused-cli): Manually-specified variables were not used by the project: BUILD_TESTING CMAKE_CXX_COMPILER CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DOCDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_INFODIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_LOCALEDIR CMAKE_INSTALL_MANDIR CMAKE_INSTALL_SBINDIR -- Build files have been written to: /nix/var/nix/builds/nix-42271-1032983413/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase build flags: -j10 [1/25] Building C object Sources/Csourcekitd/CMakeFiles/Csourcekitd.dir/sourcekitd.c.o [2/25] Linking C static library lib/libCsourcekitd.a warning: /nix/store/g8ygy4cj8gizpf47cpycr64fpkimchc8-clang-wrapper-21.1.8/bin/ranlib: archive library: lib/libCsourcekitd.a the table of contents is empty (no object file members in the library define global symbols) [3/25] Linking Swift static library lib/libSwiftExtensionsForPlugin.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SwiftExtensions/RunWithCleanup.swift:14:10: warning: Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible 12 | 13 | #if swift(>=6.4) 14 | #warning("Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible") | `- warning: Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible 15 | #endif 16 | /// Run `body` and always ensure that `cleanup` gets run, independently of whether `body` threw an error or returned a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SwiftExtensions/AsyncUtils.swift:100:5: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] 98 | 99 | let stream = AsyncThrowingStream, any Error> { continuation in 100 | Task { | |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] | `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly 101 | try await Task.sleep(for: timeout) 102 | didHitTimeout.value = true [#NoUseUnstructuredThrowingTask]: [4/25] Linking Swift static library lib/libSwiftExtensions.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SwiftExtensions/RunWithCleanup.swift:14:10: warning: Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible 12 | 13 | #if swift(>=6.4) 14 | #warning("Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible") | `- warning: Remove this in favor of SE-0493 (Support async calls in defer bodies) when possible 15 | #endif 16 | /// Run `body` and always ensure that `cleanup` gets run, independently of whether `body` threw an error or returned a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SwiftExtensions/AsyncUtils.swift:100:5: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] 98 | 99 | let stream = AsyncThrowingStream, any Error> { continuation in 100 | Task { | |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] | `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly 101 | try await Task.sleep(for: timeout) 102 | didHitTimeout.value = true [#NoUseUnstructuredThrowingTask]: [5/25] Linking Swift static library lib/libSKUtilitiesForPlugin.a [6/25] Linking Swift static library lib/libSKUtilities.a [7/25] Linking Swift static library lib/libTSCExtensions.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/TSCExtensions/Process+Run.swift:44:7: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] 42 | logger.debug("Terminating process using SIGINT because task was cancelled: \(self.arguments)") 43 | signal(SIGINT) 44 | Task { | |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] | `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly 45 | // Give the process 2 seconds to react to a SIGINT. If that doesn't work, terminate the process. 46 | try await Task.sleep(for: .seconds(2)) [#NoUseUnstructuredThrowingTask]: [8/25] Linking Swift static library lib/libSourceKitDForPlugin.a [9/25] Linking Swift static library lib/libSourceKitD.a [10/25] Linking Swift static library lib/libLanguageServerProtocolExtensions.a [11/25] Linking Swift static library lib/libSwiftSourceKitPluginCommon.a [12/25] Linking Swift static library lib/libCompletionScoringForPlugin.a [13/25] Linking Swift static library lib/libCompletionScoring.a [14/25] Linking Swift shared library lib/libSwiftSourceKitClientPlugin.dylib Warning: supplying the --target arm64-apple-macosx14.0 != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead. [15/25] Linking Swift static library lib/libToolchainRegistry.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/ToolchainRegistry/Toolchain.swift:166:13: warning: Once we no longer Swift 6.2 toolchains, we can assume that the compiler has https://github.com/swiftlang/swift-driver/pull/1979 164 | #if compiler(>=6.4) 165 | #warning( 166 | "Once we no longer Swift 6.2 toolchains, we can assume that the compiler has https://github.com/swiftlang/swift-driver/pull/1979" | `- warning: Once we no longer Swift 6.2 toolchains, we can assume that the compiler has https://github.com/swiftlang/swift-driver/pull/1979 167 | ) 168 | #endif [16/25] Linking Swift static library lib/libSKOptions.a [17/25] Linking Swift shared library lib/libSwiftSourceKitPlugin.dylib Warning: supplying the --target arm64-apple-macosx14.0 != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead. [18/25] Linking Swift static library lib/libBuildServerIntegration.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/BuildServerIntegration/SwiftPMBuildServer.swift:597:7: warning: Once we can guarantee that the toolchain can index multiple Swift files in a single invocation, we no longer need to set -index-unit-output-path since it's always set using an -output-file-map 595 | #if compiler(>=6.4) 596 | #warning( 597 | "Once we can guarantee that the toolchain can index multiple Swift files in a single invocation, we no longer need to set -index-unit-output-path since it's always set using an -output-file-map" | `- warning: Once we can guarantee that the toolchain can index multiple Swift files in a single invocation, we no longer need to set -index-unit-output-path since it's always set using an -output-file-map 598 | ) 599 | #endif /nix/var/nix/builds/nix-42271-1032983413/source/Sources/BuildServerIntegration/BuildServerManager.swift:805:65: warning: 'weak' ownership of capture 'self' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] 802 | return initializeResponse 803 | } 804 | self.mainFilesProvider = Task { | |- note: 'self' implicitly strongly captured here | `- note: add 'self' as a capture list item to silence 805 | await createMainFilesProvider(initializationData) { [weak self] in | |- warning: 'weak' ownership of capture 'self' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] | `- note: explicitly assign the capture list item to silence 806 | await self?.mainFilesChanged() 807 | } /nix/var/nix/builds/nix-42271-1032983413/source/Sources/BuildServerIntegration/SwiftPMBuildServer.swift:564:39: warning: 'buildPath' is deprecated: Use BuildSystem.buildProductsPath(for:) instead. This is preserved temporarily to support sourcekit-lsp [#DeprecatedDeclaration] 562 | 563 | package var buildPath: URL { 564 | return destinationBuildParameters.buildPath.asURL | `- warning: 'buildPath' is deprecated: Use BuildSystem.buildProductsPath(for:) instead. This is preserved temporarily to support sourcekit-lsp [#DeprecatedDeclaration] 565 | } 566 | /nix/var/nix/builds/nix-42271-1032983413/source/Sources/BuildServerIntegration/SwiftPMBuildServer.swift:571:39: warning: 'indexStore' is deprecated: Use BuildSystem.indexStore(for:) instead. This is preserved temporarily to support sourcekit-lsp [#DeprecatedDeclaration] 569 | return nil 570 | } 571 | return destinationBuildParameters.indexStore.asURL | `- warning: 'indexStore' is deprecated: Use BuildSystem.indexStore(for:) instead. This is preserved temporarily to support sourcekit-lsp [#DeprecatedDeclaration] 572 | } 573 | [#DeprecatedDeclaration]: [#ImplicitStrongCapture]: [19/25] Linking Swift static library lib/libSemanticIndex.a [20/25] Linking Swift static library lib/libSourceKitLSP.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SourceKitLSP/Workspace.swift:255:41: warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] 241 | buildServerManager: buildServerManager 242 | ) 243 | self.semanticIndexManagerTask = Task { | |- note: 'sourceKitLSPServer' implicitly strongly captured here | `- note: add 'sourceKitLSPServer' as a capture list item to silence 244 | if options.backgroundIndexingOrDefault, 245 | let uncheckedIndex = await buildServerManager.mainFilesProvider(as: UncheckedIndex.self), : 253 | indexTaskScheduler: indexTaskScheduler, 254 | preparationBatchingStrategy: options.preparationBatchingStrategy, 255 | logMessageToIndexLog: { [weak sourceKitLSPServer] in | |- warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] | `- note: explicitly assign the capture list item to silence 256 | sourceKitLSPServer?.logMessageToIndexLog(message: $0, type: $1, structure: $2) 257 | }, /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SourceKitLSP/Workspace.swift:258:44: warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] 241 | buildServerManager: buildServerManager 242 | ) 243 | self.semanticIndexManagerTask = Task { | |- note: 'sourceKitLSPServer' implicitly strongly captured here | `- note: add 'sourceKitLSPServer' as a capture list item to silence 244 | if options.backgroundIndexingOrDefault, 245 | let uncheckedIndex = await buildServerManager.mainFilesProvider(as: UncheckedIndex.self), : 256 | sourceKitLSPServer?.logMessageToIndexLog(message: $0, type: $1, structure: $2) 257 | }, 258 | indexTasksWereScheduled: { [weak sourceKitLSPServer] in | |- warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] | `- note: explicitly assign the capture list item to silence 259 | sourceKitLSPServer?.indexProgressManager.indexTasksWereScheduled(count: $0) 260 | }, /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SourceKitLSP/Workspace.swift:261:49: warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] 241 | buildServerManager: buildServerManager 242 | ) 243 | self.semanticIndexManagerTask = Task { | |- note: 'sourceKitLSPServer' implicitly strongly captured here | `- note: add 'sourceKitLSPServer' as a capture list item to silence 244 | if options.backgroundIndexingOrDefault, 245 | let uncheckedIndex = await buildServerManager.mainFilesProvider(as: UncheckedIndex.self), : 259 | sourceKitLSPServer?.indexProgressManager.indexTasksWereScheduled(count: $0) 260 | }, 261 | indexProgressStatusDidChange: { [weak sourceKitLSPServer] in | |- warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] | `- note: explicitly assign the capture list item to silence 262 | sourceKitLSPServer?.indexProgressManager.indexProgressStatusDidChange() 263 | } /nix/var/nix/builds/nix-42271-1032983413/source/Sources/SourceKitLSP/Workspace.swift:390:41: warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] 385 | connectionToClient: ConnectionToClient(sourceKitLSPServer: sourceKitLSPServer), 386 | buildServerHooks: hooks.buildServerHooks, 387 | createMainFilesProvider: { (initializationData, mainFilesChangedCallback) -> (any MainFilesProvider)? in | |- note: 'sourceKitLSPServer' implicitly strongly captured here | `- note: add 'sourceKitLSPServer' as a capture list item to silence 388 | await createIndex( 389 | initializationData: initializationData, 390 | indexChangedCallback: { [weak sourceKitLSPServer] in | |- warning: 'weak' ownership of capture 'sourceKitLSPServer' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture] | `- note: explicitly assign the capture list item to silence 391 | // Notify that main files may have changed. 392 | await mainFilesChangedCallback() [#ImplicitStrongCapture]: [21/25] Linking Swift static library lib/libClangLanguageService.a /nix/var/nix/builds/nix-42271-1032983413/source/Sources/ClangLanguageService/ClangLanguageService.swift:224:5: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] 222 | self.lastClangdRestart = Date() 223 | 224 | Task { | |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask] | `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly 225 | try await Task.sleep(for: restartDelay) 226 | self.clangRestartScheduled = false [#NoUseUnstructuredThrowingTask]: [22/25] Linking Swift static library lib/libSwiftLanguageService.a [23/25] Linking Swift static library lib/libInProcessClient.a [24/25] Linking Swift static library lib/libDiagnose.a [25/25] Linking Swift executable bin/sourcekit-lsp Warning: supplying the --target arm64-apple-macosx14.0 != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead. buildPhase completed in 4 minutes 19 seconds Running phase: installPhase install flags: -j10 install [0/1] Install the project... -- Install configuration: "Release" -- Installing: /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/share/sourcekit-lsp/config.schema.json -- Installing: /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/bin/sourcekit-lsp -- Installing: /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/lib/libSwiftSourceKitClientPlugin.dylib -- Installing: /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/lib/libSwiftSourceKitPlugin.dylib Running phase: fixupPhase fixing stdlib rpaths in /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0 checking for references to /nix/var/nix/builds/nix-42271-1032983413/ in /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0... patching script interpreter paths in /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0 stripping (with command strip and flags -S) in /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/lib /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/bin Running phase: installCheckPhase Executing versionCheckPhase Successfully managed to find version OVERVIEW: Language Server Protocol implementation in the output of the command /nix/store/kqcnglaxgkvcpn4024aib42p76a4iwn0-sourcekit-lsp-6.4.0/bin/sourcekit-lsp --help OVERVIEW: Language Server Protocol implementation for Swift and C-based languages USAGE: sourcekit-lsp [--configuration ] [--scratch-path ] [-Xcc ...] [-Xcxx ...] [-Xlinker ...] [-Xswiftc ...] [-Xclangd ...] [-index-prefix-map ...] [--default-workspace-type ] [--compilation-db-search-path ...] [--generated-files-path ] [--experimental-feature ...] OPTIONS: --configuration Build with configuration [debug|release] --scratch-path, --build-path Specify build/cache directory (--build-path option is deprecated, --scratch-path should be used instead) -Xcc Pass flag through to all C compiler invocations -Xcxx Pass flag through to all C++ compiler invocations -Xlinker Pass flag through to all linker invocations -Xswiftc Pass flag through to all Swift compiler invocations -Xclangd Pass options to clangd command-line -index-prefix-map Override the prefix map from the build system, values of form 'remote=local' --default-workspace-type Override default workspace type selection; one of 'swiftPM', 'compilationDatabase', or 'buildServer' --compilation-db-search-path Specify a relative path where sourcekit-lsp should search for `compile_commands.json` or `compile_flags.txt` relative to the root of a workspace. Multiple search paths may be specified by repeating this option. --generated-files-path Specify the directory where generated files will be stored --experimental-feature Enable an experimental sourcekit-lsp feature. Available features are: on-type-formatting, structured-logs -h, --help Show help information. SUBCOMMANDS: diagnose Creates a bundle containing information that help diagnose issues with sourcekit-lsp debug Commands to debug sourcekit-lsp. Intended for developers of sourcekit-lsp See 'sourcekit-lsp help ' for detailed help. Finished versionCheckPhase no Makefile or custom installCheckPhase, doing nothing