unable to build samples with bazel

Hello,

I believe I installed everything according to Isaac SDK Setup but I am having these errors which holds me going forward.

isaac@isaac:~$ bazel build //apps/samples/v4l2_camera
ERROR: infinite symlink expansion detected
[start of symlink chain]
/home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac
/home/isaac
[end of symlink chain]
ERROR: /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/toolchain/crosstool/BUILD:62:1: no such package '@com_nvidia_isaac//engine/build': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '@toolchain//crosstool:gcc_or_nvcc'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppc'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppitc'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:npps'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppial'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppig'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppif'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:cudart'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppidei'
ERROR: /home/isaac/engine/gems/image/BUILD:43:1: no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//engine/gems/image:cuda_conversions'
ERROR: /home/isaac/engine/gems/image/BUILD:14:1: error loading package '@libjpeg//': Encountered error while reading extension file 'engine/build/template.bzl': no such package '@com_nvidia_isaac//engine/build': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//engine/gems/image:image'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:cuda'
ERROR: /home/isaac/third_party/BUILD:13:1: error loading package '@cuda_x86_64//': Encountered error while reading extension file 'third_party/cuda.bzl': no such package '@com_nvidia_isaac//third_party': Could not access /home/isaac/.cache/bazel/_bazel_isaac/a3e524197ca170c53f95e9940f385cf9/external/com_nvidia_isaac: Infinite symlink expansion and referenced by '//third_party:nppicc'
WARNING: errors encountered while analyzing target '//apps/samples/v4l2_camera:v4l2_camera': it will not be built
INFO: Analysed target //apps/samples/v4l2_camera:v4l2_camera (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 0.096s, Critical Path: 0.00s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
FAILED: Build did NOT complete successfully

I too faced the same error

if some Nvidia officials working on Isaac can help
that would be great

thank you

Hi Devshank3,

I re install ubuntu and the thing is you need to is to mkdir “isaac” folder and install everything accordingly to the “isaac” folder. That was the case for me anyway.

you mean it worked for you ?

can you elaborate the mkdir isaac ?

should the mkdir isaac should be inside isaac sdk ?

in your root directory create a folder with the name of “isaac” Then install everything according to sdk documentation.

There will be only one isaac folder. I will screenshot tomorrow of my linux machine