I think I’m having what seems to be a fairly niche issue:
I’m trying to set up an environment with which to build docker images to run on the Xavier, on an x86 machine.
For context, I’m running docker 19.03 on my Ubuntu 18.04 install, with CUDA 10.1, everything installed normally.
I’ve got the qemu aarch64 interpreter set up via docker with:
sudo docker run --rm --privileged hypriot/qemu-register
and I know it works because I can run the l4t-base image with:
sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-base:r32.3.1
However, I’m trying to build OpenCV inside this l4t-base container, and it fails at some point saying:
/bin/sh: 1: cicc: not found
I’ve done a little research and basically found that the CUDA compiler in the container can’t find nvvm. And I confirmed this by looking in /usr/local/cuda to find that the nvvm directory does not exist. So I assume that the container should be looking to my host OS to find nvvm, in which case it does exist but the container cannot find it. I’ve thought of simply mounting the directory as a volume but I don’t think that would work because of the differences in architecture…but maybe the interpreter would handle that?
Any advice would be appreciated. Thanks.