christianrauch / camera_ros

ROS 2 node for libcamera supported cameras (V4L2, Raspberry Pi Camera Modules)
https://libcamera.org
MIT License
69 stars 30 forks source link

colcon build camera_ros end with error #6

Closed alain-lnpcrd closed 2 years ago

alain-lnpcrd commented 2 years ago

Hi, ubuntu 22.04 aarch64 on raspberrypi 4B 8Go


pi@pi-desktop:~/ros2_ws$ colcon build --packages-select camera_ros
Starting >>> camera_ros
--- stderr: camera_ros                             
In file included from /usr/include/c++/11/bits/move.h:57,
                 from /usr/include/c++/11/bits/stl_pair.h:59,
                 from /usr/include/c++/11/utility:70,
                 from /usr/include/c++/11/optional:36,
                 from /usr/local/include/libcamera/libcamera/controls.h:11,
                 from /home/pi/ros2_ws/src/camera_ros-main/src/clamp.hpp:2,
                 from /home/pi/ros2_ws/src/camera_ros-main/src/CameraNode.cpp:1:
/usr/include/c++/11/type_traits:2364:32: internal compiler error: Erreur de segmentation
 2364 |     auto declval() noexcept -> decltype(__declval<_Tp>(0))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
0xffff806b73fb __libc_start_call_main
    ../sysdeps/nptl/libc_start_call_main.h:58
0xffff806b74cb __libc_start_main_impl
    ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
gmake[2]: *** [CMakeFiles/camera_component.dir/build.make:76 : CMakeFiles/camera_component.dir/src/CameraNode.cpp.o] Erreur 1
gmake[1]: *** [CMakeFiles/Makefile2:248 : CMakeFiles/camera_component.dir/all] Erreur 2
gmake: *** [Makefile:146 : all] Erreur 2
---
Failed   <<< camera_ros [8.36s, exited with code 2]

Summary: 0 packages finished [9.16s]
  1 package failed: camera_ros
  1 package had stderr output: camera_ros
pi@pi-desktop:~/ros2_ws$ 
christianrauch commented 2 years ago

This is a compiler error (internal compiler error). It asks you to submit a bug report to the GCC project:

Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

I've built this on a Raspberry Pi Zero 2 W with Ubuntu 22.04. I think this is nothing that can be fixed in this project.