GithubHelp home page GithubHelp logo

Comments (5)

ArefAJ avatar ArefAJ commented on June 17, 2024

Edit:

sometimes at the beginning of making:

-- +++ processing catkin package: 'darknet_ros_3d'
-- ==> add_subdirectory(gb_visual_detection_3d-melodic/darknet_ros_3d)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message):
catkin_package() DEPENDS on 'PCL' but neither 'PCL_INCLUDE_DIRS' nor
'PCL_LIBRARIES' is defined.
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
gb_visual_detection_3d-melodic/darknet_ros_3d/CMakeLists.txt:23 (catkin_package)

from gb_visual_detection_3d.

fgonzalezr1998 avatar fgonzalezr1998 commented on June 17, 2024

HI @Liimiitz96 It seems to be a gcc error. Try to uninstall and install again the latest version of gcc

from gb_visual_detection_3d.

ArefAJ avatar ArefAJ commented on June 17, 2024

hey @fgonzalezr1998,

thanks for your relpy. I have gcc version: gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 installed by default. So it should compile against c++14 without a problem.

but i am still getting this error:


In file included from /home/nvidia/catkin_ws/src/gb_visual_detection_3d/darknet_ros_3d/include/darknet_ros_3d/Darknet3D.h:47:0,
from /home/nvidia/catkin_ws/src/gb_visual_detection_3d/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp:38:
/opt/ros/melodic/include/pcl_ros/point_cloud.h:303:27: warning: variable templates only available with -std=c++14 or -std=gnu++14
constexpr static bool pcl_uses_boost = true;
^~~~~~~~~~~~~~
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/build.make:62: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o' failed
make[2]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o] Error 4
CMakeFiles/Makefile2:8415: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all' failed
make[1]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed


i installed now gcc 11 with update alternative and set it as default and after running catkin_make following error occured again:

In file included from /home/nvidia/catkin_ws/src/gb_visual_detection_3d/darknet_ros_3d/include/darknet_ros_3d/Darknet3D.h:47,
from /home/nvidia/catkin_ws/src/gb_visual_detection_3d/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp:38:
/opt/ros/melodic/include/pcl_ros/point_cloud.h:303:27: warning: variable templates only available with ‘-std=c++14’ or ‘-std=gnu++14’
303 | constexpr static bool pcl_uses_boost = true;
| ^~~~~~~~~~~~~~
c++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-11/README.Bugs for instructions.
gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/build.make:62: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o' failed
make[2]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o] Error 4
CMakeFiles/Makefile2:8415: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all' failed
make[1]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed


catkin_make -j1 output the same:

[ 94%] Building CXX object gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o
c++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-11/README.Bugs for instructions.
gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/build.make:62: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o' failed
make[2]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o] Error 4
CMakeFiles/Makefile2:8644: recipe for target 'gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all' failed
make[1]: *** [gb_visual_detection_3d/darknet_ros_3d/CMakeFiles/darknet_ros_3d.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed

from gb_visual_detection_3d.

W4li8 avatar W4li8 commented on June 17, 2024

Hi. Did you ever resolve this issue? I am stuck too, maybe caused by some of the jetson's memory limitations?

from gb_visual_detection_3d.

2shaar2059 avatar 2shaar2059 commented on June 17, 2024

^

from gb_visual_detection_3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.