Repository navigation
[FIX,BUILD] install ONNX Runtime with its SONAME symlinks - #10465
Conversation
The install rule copied only ORT_LIB_PATH, usually the unversioned libonnxruntime.so/.dylib symlink. install() copies symlinks as symlinks, so the installed tree got a dangling link (e.g. to ../Cellar/... on Homebrew, or to libonnxruntime.so.1 from the ORT release tarball) and lacked the SONAME file (libonnxruntime.so.1 / libonnxruntime.1.dylib) that libOpenMS records, i.e. an installed libOpenMS could not load ONNX Runtime. Install the real library together with its version symlinks. Co-authored-by: Copilot App <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughWhen ChangesONNX Runtime Library Installation
Suggested reviewers: Priority: ➖ Normal Change: Bug fix Merge Risk: ⚪ Minimal · up to The non-Windows install rule addresses the missing SONAME files. No concrete additional installation risk is established, so the change is ready for normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. A rabbit checks the library path, Comment |
Build the OpenMS images with -DWITH_ONNX=ON against the official ONNX Runtime 1.30.0 release (MIT, SHA256-pinned per architecture). make install puts libonnxruntime (with its SONAME links, OpenMS#10465) and the PeptDeep ONNX models (share/OpenMS/models, Apache-2.0) into /opt/OpenMS, so the library, tools and tools-thirdparty stages can run ProSE -Search:peptdeep:enable. The build checks that libOpenMS links ONNX Runtime and that the models are installed. containerdeploy gets a run_tests input for manual dispatches. The Bruker TDF-SDK is not shipped: its licence (section 5.2) forbids combining it with GPL software, which the tools-thirdparty image contains. Bruker .d files are read without it (MzCalibration table m/z, OpenMS#10469). Co-authored-by: Copilot App <[email protected]>
Build the OpenMS images with -DWITH_ONNX=ON against the official ONNX Runtime 1.30.0 release (MIT, SHA256-pinned per architecture). make install puts libonnxruntime (with its SONAME links, #10465) and the PeptDeep ONNX models (share/OpenMS/models, Apache-2.0) into /opt/OpenMS, so the library, tools and tools-thirdparty stages can run ProSE -Search:peptdeep:enable. The build checks that libOpenMS links ONNX Runtime and that the models are installed. containerdeploy gets a run_tests input for manual dispatches. The Bruker TDF-SDK is not shipped: its licence (section 5.2) forbids combining it with GPL software, which the tools-thirdparty image contains. Bruker .d files are read without it (MzCalibration table m/z, #10469). Co-authored-by: Copilot App <[email protected]>
Combines the entries of the open CHANGELOG pull requests #10387, #10483, #10511, #10535, #10555 and #10580 into one change on top of develop, and covers #10252 and #10267, whose edits develop already carries. - OpenMS Library: PeptDeepLibraryPredictor (#10380), OpenSwathLibraryPreparation (#10373), BedRModFile (#10529), FLASH averagine/cosine fix (#10543), WebAssembly-found fixes (#10558), MzMLSqliteHandler array length check (#10471), Percolator data race (#10474). #10471 and #10543 were each proposed by two of the PRs; they appear once. - TOPP tools: OpenDIA as a new tool (#10373), qualified by the review on #10387 (peptidoform inference needs workflow:working_format sqlite), and the NucleicAcidSearchEngine options of #10526, #10529-#10532, moved from the top of the release block into the tool's section together with the NucleicAcidSearchEngine bullet that sat there outside any section. - Restore the ProteomicsLFQ -feat_dir entry (#10481, #10486) and the three FileInfo entries (#10497, #10498, #10499) that the merge of #10470 dropped, and remove the second copy of the -write_cwl entry it added (cited #10459, tab indentation replaced by spaces). - Build System: ONNX Runtime versioned files and symlinks (#10465). - 3.6.0: #10255 made WITH_WNETALIGN opt-in; it did not change the ONNX Runtime requirement (review on #10267). Claude-Session: https://claude.ai/code/session_01QfTdEQjN4tBfS49WcriPYu Co-authored-by: Claude <[email protected]>
Problem
With
WITH_ONNX=ON,src/openms/CMakeLists.txtinstalls onlyORT_LIB_PATH. For a non-vcpkg ONNX Runtime this path is the unversioned symlinklibonnxruntime.so/libonnxruntime.dylib, andinstall()copies symlinks as symlinks. As a result, the installed tree, including the DEB, SDK and Docker images:libonnxruntime.dylib -> ../Cellar/onnxruntime/1.30.0_1/lib/libonnxruntime.dylibon Homebrew, orlibonnxruntime.so -> libonnxruntime.so.1from the ORT release tarball;libonnxruntime.so.1/libonnxruntime.1.dylib), so an installed libOpenMS cannot load ONNX Runtime.Fix
Resolve the real library (
file(REAL_PATH)) and install everylibonnxruntime.so*/libonnxruntime.*dylibin its directory. That is the real file plus its relative version symlinks, with 0755 permissions in componentDependencies. Windows is unchanged (a single DLL).Verified
cmake -DCMAKE_INSTALL_COMPONENT=Dependencies -P src/openms/cmake_install.cmakenow installslibonnxruntime.1.30.0.dylib,libonnxruntime.1.dylib -> …1.30.0.dylib,libonnxruntime.dylib -> libonnxruntime.1.dylib. Before the fix it installed only a danglinglibonnxruntime.dylib -> ../Cellar/…..so -> .so.1 -> .so.1.30.0.Found while adding ONNX Runtime to the Docker image (#10462), which no longer needs a
cp -aworkaround.Summary by CodeRabbit