Behaviortree_ros2 package will not compile

I cannot get the package to compile. It always stops somewhere between 65 and 95 % of compiling, even after 20 minutes. I already made a new account to start all over. When it still did not work I also deleted install, log and build folders and tried again but I am always stuck.

image

I don’t know how to copy the lines from the terminal but there is no error message, just ongoing compiling with the percentage not rising. Is there something wrong with my folder structure?

@LenaPanda
It would be helpful if you could tell us what unit and section (exercise or example) of the course you are currently working on, so someone can do a quick check.

Sorry, it is right in the beginning. Section 1.2, the first compiling of the behavior tree after cloning it from git.

Same for me right now (Stucked at 67% of behaviortree_ros2 compile, still waiting for complete after 45 minutes)

Now having the error message:

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/test_unit3.dir/build.make:63: CMakeFiles/test_unit3.dir/test/test_unit3.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:355: CMakeFiles/test_unit3.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/solution_test_project.dir/build.make:63: CMakeFiles/solution_test_project.dir/test/solution_test_project.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:187: CMakeFiles/solution_test_project.dir/all] Error 2
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/test_unit2.dir/build.make:63: CMakeFiles/test_unit2.dir/test/test_unit2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: CMakeFiles/test_unit2.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< behaviortree_ros2 [37min 20s, exited with code 2]

Hi LenaPanda and stroyer,
Thanks for the error message. This error means that there is insufficient RAM memory in the virtual machine. Sometimes you can solve this by compiling package by package with this command:

colcon build --packages-select <package_name>

In this case you can compile “behaviortree_cpp_v3”:

colcon build --packages-select behaviortree_cpp_v3

and then “behaviortree_ros2”:

colcon build --packages-select behaviortree_ros2

However, you are not supposed to use this in the course and it shouldn’t take this large amount of time (I tried and it was the same for me), so we will look inside the course’s files and try to optimize them for a faster compilation.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.