Repository navigation
Conversation
…sqp name from osqp_vendor_TARGETS osqp_vendor appends the plain name osqp to osqp_vendor_TARGETS, but no target with this name exists. On Lyrical, ament_cmake_auto links every entry of the list, so the build passes -losqp to the linker without a library path and fails with "cannot find -losqp". Both packages already link osqp::osqp, so they now remove the entry right after autoware_package(). On Humble and Jazzy nothing changes, because ament_target_dependencies() already skips entries that are not targets. Remove the line when the fixed osqp_vendor reaches Lyrical. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
This was referenced Dec 1, 2026
…_vendor_TARGETS workaround Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
…k error without the linker flag The spell check does not know the word in the linker flag, so the comment names the error in words. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
xmfcx
marked this pull request as ready for review
December 1, 2026 14:59
xmfcx
requested review from
a team,
maxime-clem,
rej55 and
takayuki5168
as code owners
December 1, 2026 14:59
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1570 +/- ##
=======================================
Coverage 82.34% 82.34%
=======================================
Files 421 421
Lines 23903 23903
Branches 147 147
=======================================
Hits 19683 19683
Misses 4190 4190
Partials 30 30
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
maxime-clem
approved these changes
Dec 2, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
osqp_vendorappends the plain nameosqptoosqp_vendor_TARGETS, but no target with this name exists. On ROS 2 Lyrical,ament_cmake_autolinks every entry of the list, so both packages fail to link:Both packages already link
osqp::osqp, so they now remove the entry right afterautoware_package(). On Humble and Jazzy nothing changes, becauseament_target_dependencies()already skips entries that are not targets. The upstream fix is in theosqp_vendorPR below. We remove these lines when it reaches Lyrical.Related links
How was this PR tested?
See the Verification block below.
Notes for reviewers
Lyrical also needs the OSQP 1.x API change from issue 1569, which comes in a separate PR. Without it, Lyrical stops earlier at
osqp/glob_opts.h.Interface changes
None.
Effects on system behavior
None.
AI usage
AI usage: Written with Claude Code from issue 1569 and a local Lyrical build. A clean-context agent compared this change with other options before the PR.
Self-review: A clean-context agent read the diff, issue 1569, moveit/osqp_vendor PR 4 and the
ament_cmake_autoandautoware_cmakemacros, in one review round. It built and tested both packages on Humble and Jazzy against amainbaseline, with identical link lines, flags and exports, and it confirmed the Lyrical results. It found no code defect. Its four corrections to this body and its clearer code comment are applied.Verification: Built and tested both packages from this branch on Humble and Jazzy, with 0 test failures. On Lyrical, the same line fixes the
-losqplink error on top of the local Lyrical sources.Humble (Ubuntu 22.04, Docker, this branch)
colcon buildof both packages:2 packages finished.autoware_osqp_interface:29 tests, 0 errors, 0 failures, 7 skipped.autoware_qp_interface:47 tests, 0 errors, 0 failures, 12 skipped.libosqp.so:4. Link lines with-losqp:0.Jazzy (Ubuntu 24.04, host, this branch)
colcon buildof both packages:2 packages finished.autoware_osqp_interface:29 tests, 0 errors, 0 failures, 7 skipped.autoware_qp_interface:47 tests, 0 errors, 0 failures, 12 skipped./opt/ros/jazzy/lib/libosqp.so.Lyrical (Ubuntu 26.04, Docker, no
LIBRARY_PATH)maindoes not build on Lyrical without the OSQP 1.x API change, so the same line was applied on top of the local Lyrical sources. These sources also have the OSQP 1.x API change and the CMake target export of autowarefoundation/autoware issue 7412, so the test count ofautoware_qp_interfacediffers from Jazzy.cannot find -losqp: No such file or directoryinautoware_osqp_interface.colcon buildof both packages:2 packages finished.autoware_osqp_interface:29 tests, 0 errors, 0 failures, 7 skipped.autoware_qp_interface:49 tests, 0 errors, 0 failures, 12 skipped.autoware_velocity_smootherbuilt on top of both:1 package finished.-losqplink files in these builds:0.