I use Nsight eclipse remote debug function to upload a project to Jetson tx1.
This project can compile successfully in pc(ubuntu 14.04),but when i use remote debug,the console shows that
“ubuntu@tegra-ubuntu:~$ /bin/sh -c “cd "/tmp";export LD_LIBRARY_PATH="/usr/local/cuda-8.0/lib64":${LD_LIBRARY_PATH};"/usr/local/cuda-8.0/bin/cuda-gdbserver" --cuda-use-lockfile=0 :2345 "/tmp/main"”;exit
Process /tmp/main created; pid = 3840
Cannot exec /tmp/main: Exec format error.
gdbserver: Unable to determine the number of hardware watchpoints available.
gdbserver: Unable to determine the number of hardware breakpoints available.
Child exited with status 127
No program to debug. GDBserver exiting.
logout”
“Exec format error” means that you’re trying to run a x86_64 app on arm64 board, please make sure that you use the correct cuda toolkit for arm64 and compile the app with the right cross compile options. I guess that you app cannot run on board even without cuda-gdb.
Thanks a lot ,according yo your answer I know what’s the problem with my program:My app doesn’t compile correctly .
I use arm-linux-gcc 4.4.3 version,and I only change the GCC C compiler and GCC C linker from gcc to arm-linux-gcc.
It can build exe ,but can,t run on TX1. Is there any other options need I to change? Or I use the wrong conpiler?
Where can I to get some instructons ?