jetsonhacks / installROS2

Scripts to install ROS2 on the NVIDIA jetsons
MIT License
116 stars 41 forks source link

Generating Python code for ROS interfaces Illegal instruction (core dumped) #4

Open nhatuan84 opened 3 years ago

nhatuan84 commented 3 years ago

Hi, I got this error when building for Xavier. Could you please help.

Thank you.

[ 1%] Built target rosidl_generator_py_customcpp [ 16%] Built target rosidl_generator_py_custom__rosidl_generator_c [ 31%] Built target rosidl_generator_py_customrosidl_typesupport_fastrtps_cpp [ 47%] Built target rosidl_generator_py_customrosidl_typesupport_introspection_c [ 62%] Built target rosidl_generator_py_customrosidl_typesupport_c [ 78%] Built target rosidl_generator_py_customrosidl_typesupport_fastrtps_c [ 78%] Built target rosidl_generator_py_custom [ 79%] Generating Python code for ROS interfaces Illegal instruction (core dumped) make[2]: *** [rosidl_generator_py/rosidl_generator_py/_rosidl_generator_py_s.ep.rosidl_typesupport_fastrtps_c.c] Error 132 rosidl_generator_py_custompy/CMakeFiles/rosidl_generator_py_custompy.dir/build.make:111: recipe for target 'rosidl_generator_py/rosidl_generator_py/_rosidl_generator_py_s.ep.rosidl_typesupport_fastrtps_c.c' failed CMakeFiles/Makefile2:576: recipe for target .'rosidl_generator_py_custompy/CMakeFiles/rosidl_generator_py_custompy.dir/all' failed make[1]: *** [rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custompy.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

samconnolly commented 3 years ago

Happened to get the same error trying to get this to run for the first time today! For me the issue was my numpy version, which seems to have caused other problems on Jetsons too - see link below with the following fix: "It is numpy 1.19.5 issue. You can fix it by installing previous minor version. pip3 install numpy==1.19.4"

https://forums.developer.nvidia.com/t/illegal-instruction-core-dumped/165488