Jetson Nano. Error with Command: APP_EIM=1 TARGET_JETSON_NANO=1 CC=clang CXX=clang++ make -j

Question/Issue:
I want to build this Project in a Jetson Nano.

But I have a problem when I try to build a specific model targeting the Jetson Nano GPU with TensorRT with the command

APP_EIM=1 TARGET_JETSON_NANO=1 CC=clang CXX=clang++ make -j

Does anyone know the problem? Is there any way to solve it?
Thanks in Advance.

Project ID:
649146

Context/Use case:
I would like to learn more about Edge Impulse and I started with this learning project following each step as described.

Steps Taken:
Following the instructions of this learning project, on the step:

To build a specific model targeting the Jetson Nano GPU with TensorRT, using Clang:
APP_EIM=1 TARGET_JETSON_NANO=1 CC=clang CXX=clang++ make -j

Actual Outcome:
I get this error:

/usr/bin/ld: cannot find -lcudart
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:251: recipe for target ‘runner’ failed
make: *** [runner] Error 1

Reproducibility:

  • [X] Always

Environment:

  • Platform: NVIDIA Jetson Nano Developer Kit rev B01
  • Build Environment Details: JetPack 4.6.1
  • OS Version: Jetson Linux R32.7.1 / NVIDIA L4T 32.7.1 / Ubuntu 18.04
1 Like

Hi @angelo.cioffari.btc

It looks like you are perhaps missing CUDA, can you paste the output from:
nvcc --version

If it is missing or incorrectly installed try running:

sudo apt install --reinstall nvidia-cuda-runtime

Thanks

Eoin

fyi @rjames

1 Like

Hello @Eoin!

Thank you for your reply. I finally got some time to continue learning more about Edge Impulse with the Jetson Nano…

when I run this:
nvcc --version

got this message:

bash: nvcc: command not found

and when I try to run this:
sudo apt install --reinstall nvidia-cuda-runtime

got this message:

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package nvidia-cuda-runtime

I think this is a Jetpack issue, right? The error usr/bin/ld: cannot find -lcudart seems to indicate that the linker (ld) cannot find libcudart.so during the compilation, probably because the library path is not configured correctly for the compiler (clang).

Not sure if this is the problem or how to resolve it… :thinking:

Thanks again.
Angelo

1 Like