Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot generate container_node_sizes_impl.hpp, node size information will be unavailable [13937] #56

Closed
Nir-Az opened this issue Feb 21, 2022 · 6 comments

Comments

@Nir-Az
Copy link

Nir-Az commented Feb 21, 2022

Hi
When configuring foonathan memory I get this CMake warning.

  cannot generate container_node_sizes_impl.hpp, node size information will
  be unavailable

Is it because I turn off the BUILD_TOOLS flag?
will it cause memory issues / performance issues on FastDDS runtime?

@JLBuenoLopez JLBuenoLopez changed the title cannot generate container_node_sizes_impl.hpp, node size information will be unavailable cannot generate container_node_sizes_impl.hpp, node size information will be unavailable [13937] Feb 22, 2022
@MiguelCompany
Copy link
Member

Is it because I turn off the BUILD_TOOLS flag?

Yes. This will disable the generation of the container_node_sizes_impl.hpp contents.

will it cause memory issues / performance issues on FastDDS runtime?

It will increase memory usage a bit, since Fast DDS will guess the node size here, which takes the size of a custom node that includes the fields of all the common implementations.

@Nir-Az
Copy link
Author

Nir-Az commented Feb 22, 2022

Thanks @MiguelCompany ,
So FastDDS recomendation is to turn on the tools build?
Not sure why they coupled an executable build with a library feature..

@MiguelCompany
Copy link
Member

@Nir-Az

If you don't want to (or cannot due to system requirements) build and run the tool, you could use the generous external contribution that was recently merged on foonathan/memory#129

@Nir-Az
Copy link
Author

Nir-Az commented Feb 22, 2022

@MiguelCompany I can turn the flag on and test if it builds OK, but what did you mean with running it?

I am consuming FastDDS library and use it's API.
When/Why should I run this foonathan tool?

Didn't find something about it on FastDDS documentation.

@MiguelCompany
Copy link
Member

@Nir-Az

The tool is run as a build step. See here. When cross-compiling, it can be run on an emulator.

foonathan/memory#129 changes this to use CMake machinery to generate container_node_sizes_impl.hpp

@Nir-Az
Copy link
Author

Nir-Az commented Feb 22, 2022

Great, thanks for the help.

@Nir-Az Nir-Az closed this as completed Feb 22, 2022
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

No branches or pull requests

2 participants