← Back to issue list

Catkin plugin: host library linked during build

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1714133
Type
issue
State
closed
Author
~mrjogo
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution due to inactivity. The report identified a catkin plugin bug where host ROS shared libraries were incorrectly linked during snap builds, causing runtime version mismatches. No fix was implemented.

Suggested action:

No scores available.

Issue body

Somehow a shared library on my system ROS install is getting linked into the snap, and because it does not match the version installed into the snap, it causes a runtime error. To reproduce, install an older version of ros-kinetic-moveit-ros-planning-interface onto the host system. (it should work with any package, that's just the one I happened to discover the mismatch on). Then, download the attached code and build with snapcraft. Install and run, and you will get the following error (in this case, 0.9.8 was the version installed on my host and 0.9.9 was the latest in the repositories installed into the snap): $ bad-link-example /snap/bad-link-example/x1/opt/ros/kinetic/lib/my_pkg/bad_link: error while loading shared libraries: libmoveit_move_group_interface.so.0.9.8: cannot open shared object file: No such file or directory I imagine the problem is an errant /opt/ros/kinetic floating around some setup.sh or _setup_util.py file during build time. I did notice that on parts/my-pkg/build/devel_isolated/my_pkg/_setup_util.py:265 it was included in the CMAKE_PREFIX_PATH: CMAKE_PREFIX_PATH = '/home/ruddick/bad-link-example/parts/my-pkg/install/opt/ros/kinetic;/opt/ros/kinetic'.split(';')

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution due to inactivity. The report identified a catkin plugin bug where host ROS shared libraries were incorrectly linked during snap builds, causing runtime version mismatches. No fix was implemented.
qwen/qwen3.6-35b-a3b Abandoned and closed without resolution. The report detailed host ROS libraries incorrectly linking into snaps via a stale CMAKE_PREFIX_PATH during build. No fix was implemented.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The catkin plugin incorrectly linked a host ROS shared library during build, causing runtime version mismatches due to host paths leaking into CMAKE_PREFIX_PATH. No fix was implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1823788 Catkin plugin doesn't notice ROS dependencies satisfied by stage-snaps snapcraft (launchpad) closed Closed without resolution. The Catkin plugin limitation regarding stage-snap ROS dependencies was abandoned, with no fix implemented.
76%
#1548406 Catkin plugin: Can't handle rosdep resolving to nothing snapcraft (launchpad) closed Closed without comments or resolution. The Catkin plugin issue regarding rosdep entries resolving to nothing was unaddressed, indicating the report was abandoned or resolved internally without a code change.
74%
#1628990 Catkin plugin: example doesn't build on vanilla install snapcraft (launchpad) closed The Catkin plugin build failure on systems lacking python or gcc was closed without resolution. No fix was implemented, and the report remains unaddressed.
73%
#1791743 Catkin plugin doesn't follow project error guidelines snapcraft (launchpad) closed Closed without resolution. The catkin plugin still fails to fully implement snapcraft's base exception handling. No fix or pull request was submitted, indicating the report was likely abandoned or superseded.
72%
#1548404 Catkin plugin: Can't handle rosdep resolving to multiple packages snapcraft (launchpad) closed Closed without resolution. The Catkin plugin fails when rosdep returns multiple packages on a single line, treating it as one invalid name. The issue was abandoned due to zero comments and no proposed fix.
71%
#1545048 Catkin plugin: No support for arm64 snapcraft (launchpad) closed Abandoned. The Catkin plugin cannot build on arm64 due to missing upstream ROS archive packages. The limitation remains unaddressed.
70%