Skip to content

fix: update bindgen for Clang type definitions - #135

Closed
jaagut wants to merge 1 commit into
sequenceplanner:masterfrom
bit-bots:fix/bindgen-clang-upstream
Closed

fix: update bindgen for Clang type definitions#135
jaagut wants to merge 1 commit into
sequenceplanner:masterfrom
bit-bots:fix/bindgen-clang-upstream

Conversation

@jaagut

@jaagut jaagut commented Sep 6, 2026

Copy link
Copy Markdown

Clang's changed handling of type declarations can cause bindgen to emit opaque ROS type-support structs, leaving r2r's message generator unable to access their fields. Update bindgen in all four consumers to the release containing the upstream Clang compatibility fix: https://github.com/rust-lang/rust-bindgen/releases/tag/v0.72.1.

Keeping r2r_common, r2r_rcl, r2r_msg_gen, and r2r_actions on the same bindgen version preserves compatibility of the Builder and Bindings types passed between them.

Validation so far: the equivalent dependency-only change based on r2r 0.9.5 builds the Bit-Bots extrinsic calibration package against ROS Jazzy and libclang 22, without its previous vendored r2r_msg_gen workaround. Generated rosidl_message_type_support_t bindings expose the data field correctly. This PR applies that change to current master; the full upstream test matrix has not been run locally.

@jaagut

jaagut commented Sep 6, 2026

Copy link
Copy Markdown
Author

Sorry, I did not meant to push this. This is a duplicate of #133

@jaagut jaagut closed this Sep 6, 2026
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.

1 participant