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

Error during colcon build #9

Open
kunalkotkar10 opened this issue Sep 9, 2024 · 0 comments
Open

Error during colcon build #9

kunalkotkar10 opened this issue Sep 9, 2024 · 0 comments

Comments

@kunalkotkar10
Copy link

kunalkotkar10 commented Sep 9, 2024

I am using Ros2 Humble and Ubuntu 22.04. When I run the command:

colcon build --event-handlers console_direct+ --cmake-args -DCMAKE_BUILD_TYPE=Release

It gives an error for astra_camera and build fails:

Processing: astra_camera
26% Building CXX object CMakeFiles/astra_camera.dir/src/ros_param_backend.cpp.o
31% Building CXX object CMakeFiles/astra_camera.dir/src/ros_service.cpp.o
In file included from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__traits.hpp:19,
from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__traits.hpp:23,
from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_event.hpp:9,
from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/kunal/Projects/astra2/src/ros2_astra_camera/astra_camera/src/ros_service.cpp:14:
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp: In function ‘void rcl_interfaces::msg::to_flow_style_yaml(const ParameterValue&, std::ostream&)’:
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp:125:47: internal compiler error: Segmentation fault
125 | rosidl_generator_traits::value_to_yaml(item, out);
| ^
0x74eeb8e4251f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x74eeb8e29d8f __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x74eeb8e29e3f __libc_start_main_impl
../csu/libc-start.c:392
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-12/README.Bugs for instructions.
gmake[2]: *** [CMakeFiles/astra_camera.dir/build.make:202: CMakeFiles/astra_camera.dir/src/ros_service.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/astra_camera.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
--- stderr: astra_camera
In file included from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__traits.hpp:19,
from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__traits.hpp:23,
from /opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_event.hpp:9,
from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/kunal/Projects/astra2/src/ros2_astra_camera/astra_camera/src/ros_service.cpp:14:
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp: In function ‘void rcl_interfaces::msg::to_flow_style_yaml(const ParameterValue&, std::ostream&)’:
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp:125:47: internal compiler error: Segmentation fault
125 | rosidl_generator_traits::value_to_yaml(item, out);
| ^
0x74eeb8e4251f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x74eeb8e29d8f __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x74eeb8e29e3f __libc_start_main_impl
../csu/libc-start.c:392
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-12/README.Bugs for instructions.
gmake[2]: *** [CMakeFiles/astra_camera.dir/build.make:202: CMakeFiles/astra_camera.dir/src/ros_service.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/astra_camera.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Failed <<< astra_camera [56.7s, exited with code 2]

Summary: 1 package finished [1min 28s]
1 package failed: astra_camera
1 package had stderr output: astra_camera

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