You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get the following error on some of our systems:
error[E0609]: no field data on type r2r_rcl::rosidl_message_type_support_t
--> /home/lea/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/r2r_msg_gen-0.9.5/src/lib.rs:136:26
|
136 | let members = (*ptr).data as *const rosidl_typesupport_introspection_c__MessageMembers;
| ^^^^ unknown field
|
= note: available field is: _address
I'm also experiencing this issue, under Ubuntu 24.04.4 LTS with ROS Jazzy. I don't experience this issue on Ubuntu 18.04.6 LTS with ROS Foxy. Same bindgen version for both (0.71.1).
Based on some early debugging steps it looks to me like this is a bindgen bug that has somehow been triggered by more recent versions of Ubuntu? I generated the combined header file and it doesn't look like it has anything wrong with it?
Ooo. Debugging of bindgen got me one step closer to understanding the problem. The internal generated value for the Type is wrong somehow. Here's what I see in the bindgen debug logs for the item:
I believe the linked issue fixes it by not using bindgen to generate this type, but instead providing a built-in type for rosidl_message_type_support_t that has a fixed structure (without the function pointers). This will technically work, but fixing the underlying bindgen issue is likely the smarter choice for this project?
Activity
evandjpl commentedon Aug 28, 2026
I'm also experiencing this issue, under Ubuntu 24.04.4 LTS with ROS Jazzy. I don't experience this issue on Ubuntu 18.04.6 LTS with ROS Foxy. Same bindgen version for both (0.71.1).
Based on some early debugging steps it looks to me like this is a
bindgenbug that has somehow been triggered by more recent versions of Ubuntu? I generated the combined header file and it doesn't look like it has anything wrong with it?evandjpl commentedon Aug 28, 2026
Ooo. Debugging of bindgen got me one step closer to understanding the problem. The internal generated value for the Type is wrong somehow. Here's what I see in the bindgen debug logs for the item:
evandjpl commentedon Aug 28, 2026
I should add that I'm using
libclang-22-dev. Not sure if that's causing trouble with bindgen :/Flova commentedon Aug 28, 2026
I think the linked issue might have a fix/patch, but I haven't tried it.
evandjpl commentedon Aug 28, 2026
This looks to be the underlying bindgen issue: rust-lang/rust-bindgen#2691
evandjpl commentedon Aug 28, 2026
I believe the linked issue fixes it by not using bindgen to generate this type, but instead providing a built-in type for
rosidl_message_type_support_tthat has a fixed structure (without the function pointers). This will technically work, but fixing the underlyingbindgenissue is likely the smarter choice for this project?evandjpl commentedon Aug 28, 2026
Great news!
I'm going to make a PR requesting we bump the bindgen version to allow people with LLVM newer than 20 to continue using
r2r.Issues + PRs:
rust-lang/rust-bindgen#370
rust-lang/rust-bindgen#3377
rust-lang/rust-bindgen#3376
rust-lang/rust-bindgen#3264
rust-lang/rust-bindgen#3278