swiftlang/swift-package-manager

Transitive link dependencies are lost for C modules

Closed this issue · 3 comments

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

When building SourceKit-LSP tests with a change to share the build of LMDB across IndexStoreDB and DocC, we find that SourceKit-LSP tests which depend on IndexStoreDB do not pull in MDB.

swift-lmdb/CLMDB <- IndexStoreDB_Database <- IndexStoreDB_Index <- IndexStoreDB_CIndexStoreDB <- indexstore-db/IndexStoreDB <- SourceKitLSPTests

However, when building SourceKitLSPTests we find that CLMDB is not linked in resulting in undefined references to symbols.

Expected behavior

The transitive closure of dependencies is tracked for the linkage.

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Looking through the command:

"S:\\Program Files\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin\\lld-link"
"-out:S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageTests.xctest"
"-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64"
"-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\atlmfc\\lib\\x64"
"-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.22621.0\\ucrt\\x64"
"-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.22621.0\\um\\x64"
"-libpath:S:\\Program Files\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\windows"
"-libpath:S:\\Program Files\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\windows\\x86_64"
"-libpath:S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows"
"-libpath:S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\x86_64"
"-libpath:S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release"
"-libpath:S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64"
"-libpath:S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows\\x86_64"
"-libpath:S:\\b\\9\\lib\\swift\\host"
"-libpath:S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows"
"-libpath:S:\\b\\12\\lib"
"-libpath:S:\\b\\13\\lib"
"-libpath:S:\\b\\14\\lib"
"-libpath:S:\\b\\16\\lib"
"-libpath:S:\\b\\18\\lib"
"-libpath:S:\\b\\22\\lib"
"-libpath:S:\\b\\23\\lib"
"-libpath:S:\\b\\24\\lib"
"-libpath:S:\\b\\26\\Sources\\IndexStoreDB"
"-libpath:S:\\b\\27\\lib"
"-libpath:S:\\Program Files\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\clang\\19\\lib\\x86_64-unknown-windows-msvc" -nologo "S:\\Program Files\\Swift\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildServerProtocolTests.build\\CodingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\BuildServerBuildSystemTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\BuildSystemManagerTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\CompilationDatabasePerfTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\CompilationDatabaseTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\FallbackBuildSettingsTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\LegacyBuildServerBuildSystemTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\SplitShellCommandTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\BuildSystemIntegrationTests.build\\SwiftPMBuildSystemTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\DiagnoseTests.build\\DiagnoseTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolJSONRPCTests.build\\CodingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolJSONRPCTests.build\\ConnectionPerfTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolJSONRPCTests.build\\ConnectionTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolJSONRPCTests.build\\MessageParsingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolTests.build\\CodingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolTests.build\\ConnectionTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\LanguageServerProtocolTests.build\\LanguageServerProtocolTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKLoggingTests.build\\LoggingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKLoggingTests.build\\PrettyPrintedRedactedJSONTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKSupportTests.build\\AsyncUtilsTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKSupportTests.build\\DebouncerTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKSupportTests.build\\LineTablePerfTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKSupportTests.build\\ProcessRunTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKSupportTests.build\\SupportTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\Assertions.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\BuildServerTestProject.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\CheckCoding.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\DefaultSDKPath.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\DocumentDiagnosticReport+full.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\DummyBuildSystemManagerConnectionToClient.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\FileManager+findFiles.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\FileSystem.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\FindTool.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\IndexedSingleSwiftFileTestProject.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\LocationMarkers.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\LocationsOrLocationLinksResponse+Locations.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\MultiFileTestProject.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\PerfTestCase.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\RepeatUntilExpectedResult.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\SkipUnless.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\String+TrimTrailingWhitespace.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\SwiftPMDependencyProject.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\SwiftPMTestProject.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\TestBundle.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\TestJSONRPCConnection.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\TestSourceKitLSPClient.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\TextDocumentIdentifier+URI.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\Timeouts.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\Utils.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\WrappedSemaphore.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SKTestSupport.build\\resource_bundle_accessor.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SemanticIndexTests.build\\CompilerCommandLineOptionMatchingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SemanticIndexTests.build\\TaskSchedulerTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitDTests.build\\CrashRecoveryTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitDTests.build\\SourceKitDRegistryTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitDTests.build\\SourceKitDTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\BuildServerProtocolTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\BuildSystemIntegrationTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\DiagnoseTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\LanguageServerProtocolJSONRPCTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\LanguageServerProtocolTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\SKLoggingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\SKSupportTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\SemanticIndexTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\SourceKitDTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\SourceKitLSPTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\ToolchainRegistryTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageDiscoveredTests.build\\all-discovered-tests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPPackageTests.build\\runner.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\BackgroundIndexingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\BuildSystemTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\CallHierarchyTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ClangdTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\CodeActionTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\CodeLensTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\CompilationDatabaseTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\CrossLanguageRenameTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\DefinitionTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\DependencyTrackingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\DocumentColorTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\DocumentSymbolTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\DocumentTestDiscoveryTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ExecuteCommandTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ExpandMacroTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ExpectedIndexTaskTracker.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\FoldingRangeTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\FormattingTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\HoverTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ImplementationTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\IndexTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\InlayHintTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\LifecycleTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\LocalClangTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\LocalSwiftTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\MainFilesProviderTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\PublishDiagnosticsTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\PullDiagnosticsTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\ReferencesTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\RenameAssertions.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\RenameTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SemanticTokensTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SwiftCompileCommandsTest.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SwiftCompletionTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SwiftInterfaceTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SwiftPMIntegrationTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\SyntaxRefactorTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\TypeHierarchyTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\WorkspaceSymbolsTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\WorkspaceTestDiscoveryTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\SourceKitLSPTests.build\\WorkspaceTests.swift.o"
"S:\\b\\x64\\sourcekit-lsp\\x86_64-unknown-windows-msvc\\release\\ToolchainRegistryTests.build\\ToolchainRegistryTests.swift.o" /OPT:REF -debug:dwarf "-IS:\\SourceCache\\swift-project\\cmark\\extensions\\include"
"S:\\b\\x64\\cmark-gfm-0.29.0.gfm.13\\src\\cmark-gfm.lib"
"S:\\b\\x64\\cmark-gfm-0.29.0.gfm.13\\extensions\\cmark-gfm-extensions.lib"
"S:\\b\\18\\lib\\CCryptoBoringSSL.lib"
"S:\\b\\23\\lib\\CAtomic.lib"
"S:\\b\\26\\lib\\CIndexStoreDB\\CIndexStoreDB.lib"
"S:\\b\\26\\lib\\Core\\Core.lib"
"S:\\b\\26\\lib\\Database\\Database.lib"
"S:\\b\\26\\lib\\Index\\Index.lib"
"S:\\b\\26\\lib\\LLVMSupport\\LLVMSupport.lib"
"S:\\b\\26\\lib\\Support\\Support.lib"
"S:\\b\\27\\lib\\CSourcekitd.lib"

It does appear that CLMDB.lib is, in fact, missing.

One thing that stands out about the missing dependency - it is the only target declared as a dependency with .product(name: "CLMDB", package: "swift-lmdb").

Never mind, this is a self-inflicted wound from swiftlang/sourcekit-lsp#1768