-
Notifications
You must be signed in to change notification settings - Fork 45
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
Excessive disk usage in build directory - 4.4 GB #447
Comments
@PaulBouchier thanks for the ticket. I can confirm the build dir for It's unclear whether this is "bloat" introduced by our build system or whether building Zenoh-c/cpp takes up this much space. We'd appreciate if you could investigate by building zenoh-cpp following the instructions upstream https://github.com/eclipse-zenoh/zenoh-cpp?tab=readme-ov-file#building-and-running-tests while passing along the flags as we do in rmw_zenoh, rmw_zenoh/zenoh_cpp_vendor/CMakeLists.txt Lines 18 to 40 in 2e43a48
Anyways, building code from source on RPi will likely lead to resource constraints. Why not rely on |
Thanks for the suggestion to use binaries. I did that and they work fine. I added README.md documentation about using binary packages to my PR. I'll respond here with findings from the investigation you requested. |
When building using the command line specified in the README.md,
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
the build directory grows to 4.4 GB. This seems to be due to stuff in a couple of directories called debug way down in the build tree.
This problem causes issues on small platforms like Raspberry Pi (I ran out of space), and the requirement to give --cmake-args makes it not fit well into a standard workspace build, where you can just type colcon build.
Is there some short-term workaround to avoid the bloat? And can the build be made so that the default colcon build just does what it should?
The text was updated successfully, but these errors were encountered: