Repository navigation
fix: exclude MSVC runtime DLLs from dependency resolution (CMake 4.x) - #8880
Conversation
…ake 4.x compat) CMake 4.2.3 (installed via chocolatey on windows-2025 runners) now treats conflicting runtime dependency paths as fatal errors. The packaging step fails because VCRUNTIME140.dll is found in both the Conda environment (C:/Miniconda/envs/ci/Library/bin/) and the contrib directory. These DLLs are already installed separately by InstallRequiredSystemLibraries in package_nsis.cmake, so excluding them from the runtime dependency set resolution is both safe and correct. Fixes nightly Windows CI Package step failure since 2026-03-10. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PRE_EXCLUDE list in cmake/package_general.cmake is extended on Windows to explicitly exclude MSVC runtime DLLs (vcruntime, msvcp, concrt, vccorlib, ucrtbase) with explanatory comments, refining how runtime dependencies are collected during packaging. Changes
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add missing changelog entries for changes merged in the past 7 days: - PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543) - PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857) - TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911) - TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864) - TOPP: MetaboliteAdductDecharger adds multimer detection (#8888) - OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857) - Build: CMake 4.x compat fix for Windows packaging (#8880) - Build: Fix pyOpenMS dev build RPATH (#8892) - Build: Correctly locate locally installed nanobind (#8874) Co-authored-by: Copilot <[email protected]>
Add missing changelog entries for changes merged in the past 7 days: - PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543) - PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857) - TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911) - TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864) - TOPP: MetaboliteAdductDecharger adds multimer detection (#8888) - OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857) - Build: CMake 4.x compat fix for Windows packaging (#8880) - Build: Fix pyOpenMS dev build RPATH (#8892) - Build: Correctly locate locally installed nanobind (#8874) Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Summary
windows-2025runners) treating conflicting runtime dependency paths as fatal errorsVCRUNTIME140.dllis found in bothC:/Miniconda/envs/ci/Library/bin/andcontrib/bin/, causinginstall(RUNTIME_DEPENDENCY_SET ...)to fail with "Multiple conflicting paths"vcruntime,msvcp,concrt,vccorlib,ucrtbase) toPRE_EXCLUDE_REGEXESinpackage_general.cmake— these are already installed separately byInstallRequiredSystemLibrariesinpackage_nsis.cmakeDetails
The error in CI:
This started on Mar 10 when the
windows-2025runner image updated CMake from 3.x to 4.2.3. CMake 4.x changedfile(GET_RUNTIME_DEPENDENCIES)to report conflicts as fatal errors instead of silently picking the first match.The existing
TODOcomment on the old code even mentioned vcruntime issues:Test plan
InstallRequiredSystemLibraries, not fromRUNTIME_DEPENDENCY_SET)🤖 Generated with Claude Code
Summary by CodeRabbit