When Jetson Nano compiles with catkin_make, if the default is 4 threads (catkin_make -j4), internal compiler error is prone to occur. At this time, you can modify ~/.bashrc to change the number of threads compiled by the system to limit the maximum thread. Thus it compiles smoothly. Proceed as follows:
1. Open terminal
vim ~/.bashrc
2. Add the following command, n is the number of threads you want to set, for example, it is better to set it to 2 or less for Nano:
export ROS_PARALLEL_JOBS=-jn # Nano n=2
3. Source it to take effect:
source ~/.bashrc
OK, you can experiment happily~