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

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

Open
nhatuan84 opened this issue Jul 13, 2021 · 1 comment

Comments

@nhatuan84
Copy link

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

Thank you.

[ 1%] Built target rosidl_generator_py_custom__cpp
[ 16%] Built target rosidl_generator_py_custom__rosidl_generator_c
[ 31%] Built target rosidl_generator_py_custom__rosidl_typesupport_fastrtps_cpp
[ 47%] Built target rosidl_generator_py_custom__rosidl_typesupport_introspection_c
[ 62%] Built target rosidl_generator_py_custom__rosidl_typesupport_c
[ 78%] Built target rosidl_generator_py_custom__rosidl_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_custom__py/CMakeFiles/rosidl_generator_py_custom__py.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_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/all' failed
make[1]: *** [rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

@samconnolly
Copy link

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

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

2 participants