Skip to content

ros_gz_bridge, ros_gz_image: add libabseil and libprotobuf to host - #251

Merged
Tobias-Fischer merged 3 commits into
RoboStack:mainfrom
lucascolley:ros-gz-bridge-abseil
Nov 24, 2026
Merged

Tobias-Fischer merged 3 commits into
RoboStack:mainfrom
lucascolley:ros-gz-bridge-abseil

Conversation

@lucascolley

Copy link
Copy Markdown
Contributor

This is a fix for https://github.com/tartanroboticscollective/ros2-workshop-turtlebot3/blob/9821ab75ee336e136938a8e854327a1736c73bed/pixi.toml#L56-L58.

See the comments in the diff for the gist of the situation.

Not sure if there is an alternative fix that would automatically address this for all pacakges which depend on ros2-gz-msgs-vendor?


LLM text

ros_gz_bridge and ros_gz_image link libprotobuf and libabseil directly (through gz-msgs' generated headers), but only get them transitively via gz_msgs_vendor. Neither the conda_build_config.yaml pins nor the run_exports of these libraries apply, so the built packages declare no dependency on them.

jazzy is broken today

ros2-ros-gz-bridge / ros2-ros-gz-image 1.0.25 _31 were built against libgz-msgs10 _6 → libprotobuf 7.35.1 _4 → libabseil 20260817, instead of the pinned 20260526. At install time libgz-sim8 only exists for libabseil 20260526, so the solver picks libprotobuf 7.35.1 _3 (same version, older abseil), and:

lib/libros_gz_bridge.so            libabsl_hash.so.2608.0.0 => not found
lib/ros_gz_bridge/parameter_bridge   (same)
lib/ros_gz_bridge/static_bridge      (same)
lib/ros_gz_bridge/bridge_types       (same)
lib/ros_gz_image/image_bridge        (same)

Reproduced with a linux-64 env of ros2-ros-gz-bridge, ros2-ros-gz-image, ros2-ros-gz-sim and ros2-turtlebot3-gazebo from robostack-jazzy.

Fix

  • shared/patch/dependencies.yaml: add_host: ["libabseil", "libprotobuf"] for both packages, like ortools_vendor. libprotobuf alone isn't enough: its run_export only pins the version, which is the same for both abseil builds.
  • distros/jazzy/pkg_additional_info.yaml: build_number: 32 for both.

Tested locally (linux-64): build-one for both packages. The _32 builds resolve libabseil 20260526 in host and declare libabseil >=20260526.0,<20260527.0a0 and libprotobuf >=7.35.1,<7.35.2.0a0. Installed into the env above, none of the binaries miss a library, and parameter_bridge starts. pixi run rs check passes. pixi run rs jazzy check-deps reports only the existing gstreamer128 / opencv / pcl conflicts, nothing about abseil, protobuf or ros_gz.

Other distributions

humble, lyrical and rolling miss the dependency too, but their published builds work today, because the linked abseil matches what the rest of the stack installs (humble: 2608 throughout; lyrical and rolling: 2605, held by the Jetty pins). So I only bumped jazzy; the others pick up the fix on their next rebuild.

@lucascolley

Copy link
Copy Markdown
Contributor Author

osx-arm64 failures are conda-forge/yaml-feedstock#30 I think

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

ABI check (linux-64)

humble linux-64: 4 can be bumped on their own
4 packages can be bumped on their own (compatible: 2, no libraries: 2)
package released → PR verdict details
moveit-core 2.5.10 (build 25) → 2.5.10 compatible: no ABI change headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-bridge 0.244.27 (build 25) → 0.244.27 compatible: no ABI change headers unchanged
pins changed: libignition-transport11 >=11.4.3,<12 → >=11.4.1,<12
new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
ros-gz-image 0.244.27 (build 25) → 0.244.27 no libraries: nothing to compare pins changed: libignition-transport11 >=11.4.3,<12 → >=11.4.1,<12
new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
tf2-bullet 0.25.24 (build 25) → 0.25.24 no libraries: nothing to compare headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet

Compared with the newest builds on https://conda.anaconda.org/robostack-humble/linux-64.

jazzy linux-64: 6 can be bumped on their own
6 packages can be bumped on their own (compatible: 2, no libraries: 4)
package released → PR verdict details
moveit-core 2.12.4 (build 31) → 2.12.4 compatible: no ABI change headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-bridge 1.0.25 (build 31) → 1.0.25 compatible: no ABI change headers unchanged
new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
gz-dartsim-vendor 0.0.3 (build 31) → 0.0.3 no libraries: nothing to compare new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
gz-physics-vendor 0.0.10 (build 31) → 0.0.10 no libraries: nothing to compare new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-image 1.0.25 (build 31) → 1.0.25 no libraries: nothing to compare new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
tf2-bullet 0.36.23 (build 31) → 0.36.23 no libraries: nothing to compare headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet

Compared with the newest builds on https://conda.anaconda.org/robostack-jazzy/linux-64.

lyrical linux-64: 6 can be bumped on their own
6 packages can be bumped on their own (compatible: 2, no libraries: 4)
package released → PR verdict details
moveit-core 2.15.2 (build 30) → 2.15.2 compatible: no ABI change headers unchanged
pins changed: assimp >=6.0.5,<7 → >=6.0.6,<7
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-bridge 3.0.10 (build 30) → 3.0.10 compatible: no ABI change headers unchanged
new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
gz-dartsim-vendor 0.1.3 (build 30) → 0.1.3 no libraries: nothing to compare pins changed: assimp >=6.0.5,<7 → >=6.0.6,<7
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
gz-physics-vendor 0.4.8 (build 30) → 0.4.8 no libraries: nothing to compare pins changed: gz-physics any → 9.*, libgz-physics >=9.5.2,<10 → >=9.6.1,<10
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-image 3.0.10 (build 30) → 3.0.10 no libraries: nothing to compare new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
tf2-bullet 0.45.10 (build 30) → 0.45.10 no libraries: nothing to compare headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet

Compared with the newest builds on https://repo.prefix.dev/robostack-lyrical/linux-64.

rolling linux-64: 6 can be bumped on their own
6 packages can be bumped on their own (compatible: 2, no libraries: 4)
package released → PR verdict details
moveit-core 2.15.2 (build 32) → 2.15.2 compatible: no ABI change headers unchanged
pins changed: assimp >=6.0.5,<7 → >=6.0.6,<7
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-bridge 4.0.2 (build 32) → 4.0.2 compatible: no ABI change headers unchanged
new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
gz-dartsim-vendor 0.1.3 (build 32) → 0.1.3 no libraries: nothing to compare pins changed: assimp >=6.0.5,<7 → >=6.0.6,<7
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
gz-physics-vendor 0.5.4 (build 32) → 0.5.4 no libraries: nothing to compare pins changed: gz-physics any → 9.*, libgz-physics >=9.5.2,<10 → >=9.6.1,<10
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet
ros-gz-image 4.0.2 (build 32) → 4.0.2 no libraries: nothing to compare new dependencies: libabseil * cxx17*, libprotobuf >=7.35.1,<7.35.2
tf2-bullet 0.46.4 (build 32) → 0.46.4 no libraries: nothing to compare headers unchanged
new dependencies: bullet-cpp >=3.25,<3.26
dropped dependencies: bullet

Compared with the newest builds on https://repo.prefix.dev/robostack-rolling/linux-64.

About this check

Each package this pull request built, compared with its newest released build (tools/abi_check.py, libabigail):

  • compatible / additions: the package can be bumped on its own;
  • soname / incompatible: the packages that depend on it need a rebuild (build number bump) in the same pull request.

Exported symbols are compared (the released packages are stripped, so struct layouts aren't); unchanged installed headers rule out layout and inline changes, changed ones are listed for review. Dependents to rebuild are the released ones linking to a changed library. A changed pin is part of the comparison.

@baradejoo baradejoo mentioned this pull request Nov 23, 2026
@Tobias-Fischer

Copy link
Copy Markdown
Collaborator

Can you please rebase @lucascolley

lucascolley and others added 2 commits November 24, 2026 19:21
Both link libprotobuf and libabseil directly (via gz-msgs' generated
headers) but only get them transitively through gz_msgs_vendor, so
neither the pins nor their run_exports apply. jazzy's _31 builds link
libabseil 20260817 without depending on it; installed next to libgz-sim8
(only available for 20260526), parameter_bridge and image_bridge fail
with libabsl_hash.so.2608.0.0 not found.

Rebuild both in jazzy (build_number 32). humble, lyrical and rolling
miss the dependency too but are not broken today, so they pick it up on
their next rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lucascolley

Copy link
Copy Markdown
Contributor Author

done @Tobias-Fischer !

@Tobias-Fischer
Tobias-Fischer merged commit d0d9d30 into RoboStack:main Nov 24, 2026
29 checks passed
@lucascolley
lucascolley deleted the ros-gz-bridge-abseil branch November 24, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants