I’m trying to run my first written program on the Jetson Xavier, but I keep getting an exec format error. In Nsight, I make sure that the target architecture is aarch64 and the on the host system (Ubuntu 18.04) is also aarch64, but for some reason I keep getting the following error:
/home/cudaeducation>
/bin/sh: 1: /tmp/nsight-debug/project13: Exec format error
I’m not sure what I’m doing wrong.
From what I understand, I’m supposed to update the toolchain to GCC 6.4.1, but I don’t know how to add a new toolchain in Nsight/Eclipse. Check out the discussion about it: Is it possible to build kernel module in Xavier? (Solved) - Jetson AGX Xavier - NVIDIA Developer Forums
Any advice would be greatly appreciated!
-Cuda Education