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

Reduce disk space used by ROS 2 build. #21

Open
3 tasks
danzimmerman opened this issue Dec 7, 2024 · 5 comments
Open
3 tasks

Reduce disk space used by ROS 2 build. #21

danzimmerman opened this issue Dec 7, 2024 · 5 comments

Comments

@danzimmerman
Copy link
Owner

Running out of space on a 32GB card.

See also:

Questions:

  • - Does --merge-install have any effect?
  • - Is there a way to incrementally remove build artifacts post-install?
  • - What about debug info, etc.?
@danzimmerman
Copy link
Owner Author

danzimmerman commented Dec 8, 2024

RelWithDebInfo still seems right https://stackoverflow.com/questions/48754619/what-are-cmake-build-type-debug-release-relwithdebinfo-and-minsizerel

Can set specific flags this way (or change what you get for Release) https://discourse.cmake.org/t/setting-compiler-flags-in-cmakelists-txt/8820/2

https://stackoverflow.com/a/8422964
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options

-g

Produce debugging information in the operating system’s native format (stabs, COFF, XCOFF, or DWARF). GDB can work with this debugging information.

On most systems that use stabs format, -g enables use of extra debugging information that only GDB can use; this extra information makes debugging work better in GDB but probably makes other debuggers crash or refuse to read the program. If you want to control for certain whether to generate the extra information, use -gvms (see below).

@danzimmerman
Copy link
Owner Author

Building in release mode, now dying on rmw_cyclonedds_cpp:

Starting >>> rmw_cyclonedds_cpp
--- stderr: rmw_cyclonedds_cpp
/home/<user>/.local/opt/ros/jazzy_ws/src/ros2/rmw_cyclonedds/rmw_cyclonedds_cpp/src/rmw_node.cpp:5646:33: error: stray ‘\221’ in program
 5646 |   ret = rmw_validate_namespace(n<91>:<d2>"<U+0011><94>Q<9b>$<a6><U+000C><86>
      |                                 ^~~~
/home/<user>/.local/opt/ros/jazzy_ws/src/ros2/rmw_cyclonedds/rmw_cyclonedds_cpp/src/rmw_node.cpp:5646:35: error: stray ‘\322’ in program
 5646 |   ret = rmw_validate_namespace(n<91>:<d2>"<U+0011><94>Q<9b>$<a6><U+000C><86>
      |                                      ^~~~
/home/<user>/.local/opt/ros/jazzy_ws/src/ros2/rmw_cyclonedds/rmw_cyclonedds_cpp/src/rmw_node.cpp:5646:36: warning: missing terminating " character
---
Failed   <<< rmw_cyclonedds_cpp [3.58s, exited with code 2]

@danzimmerman
Copy link
Owner Author

I skipped that but eventually build died with I/O error on almost every command and wouldn't reboot.

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

1 participant