HKUST-Aerial-Robotics / OmniNxt

[IROS'24 Oral] A Fully Open-source and Compact Aerial Robot with Omnidirectional Visual Perception
https://hkust-aerial-robotics.github.io/OmniNxt/
GNU General Public License v3.0
294 stars 18 forks source link

Docker issue #11

Closed arnab-source closed 3 months ago

arnab-source commented 3 months ago

After cloning the github,

cd docker
make jetson-orin

provides the following error:

Error response from daemon: pull access denied for d2slam, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Peize-Liu commented 3 months ago

Could you try running the following command? docker pull hkustswarm/d2slam:jetson_orin_base_35.3.1 Please ensure you're logged into Docker. Let me know if you encounter any issues.

arnab-source commented 3 months ago
docker pull hkustswarm/d2slam:jetson_orin_base_35.3.1

is working ... after that I tried "make jetson_orin", didn't run (got same error). But, when I tried "make jetson_orin_base", it worked, and finally trying now "make jetson_orin".

But in "make jetson_orin", I am getting the following error:

589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_node.dir/build.make:266: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_node] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1335: CMakeFiles/d2frontend_node.dir/all] Error 2
589.1 make[1]: *** Waiting for unfinished jobs....
589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_net_tester.dir/build.make:266: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_net_tester] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1426: CMakeFiles/d2frontend_net_tester.dir/all] Error 2
589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_spy.dir/build.make:260: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_spy] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1398: CMakeFiles/d2frontend_spy.dir/all] Error 2
589.1 make: *** [Makefile:146: all] Error 2
589.1 cd /root/swarm_ws/build/d2frontend; catkin build --get-env d2frontend | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -
589.1 Failed <<< d2frontend                           [ 6 minutes and 34.4 seconds ] 
589.1 Abandoned <<< d2vins                               [ Unrelated job failed ]    
589.1 Abandoned <<< quadcam_depth_est                    [ Unrelated job failed ]    
589.1 [build] Summary: 13 of 16 packages succeeded.                                  
589.1 [build] Ignored: None.                                                         
589.1 [build] Warnings: 14 packages succeeded with warnings.                         
589.1 [build] Abandoned: 2 packages were abandoned.                                  
589.1 [build] Failed: 1 packages failed.                                             
589.1 [build] Runtime: 9 minutes and 47.6 seconds total.                             
589.1 [build] Note: Workspace packages have changed, please re-source setup files to use them.
589.1 
589.1 ...............................................................................
589.1 Failed << d2frontend:make                       [ Exited with code 2 ]         
------
Dockerfile.jetson:13
--------------------
  12 |     WORKDIR ${SWARM_WS}
  13 | >>> RUN   export PATH=/usr/local/cuda/bin:$PATH && \
  14 | >>>       export CUDA_HOME=/usr/local/cuda && \
  15 | >>>       . /opt/ros/${ROS_VERSION}/setup.sh && \
  16 | >>>       catkin config -DCMAKE_BUILD_TYPE=Release \
  17 | >>>             --cmake-args -DONNXRUNTIME_LIB_DIR=/usr/local/lib/ \
  18 | >>>             -DONNXRUNTIME_INC_DIR=/usr/local/include/onnxruntime/core/session/ \
  19 | >>>             -DTorch_DIR=/usr/local/lib/python3.8/dist-packages/torch/share/cmake/Torch && \
  20 | >>>       catkin build
--------------------
ERROR: failed to solve: process "/bin/sh -c export PATH=/usr/local/cuda/bin:$PATH &&       export CUDA_HOME=/usr/local/cuda &&       . /opt/ros/${ROS_VERSION}/setup.sh &&       catkin config -DCMAKE_BUILD_TYPE=Release             --cmake-args -DONNXRUNTIME_LIB_DIR=/usr/local/lib/             -DONNXRUNTIME_INC_DIR=/usr/local/include/onnxruntime/core/session/             -DTorch_DIR=/usr/local/lib/python3.8/dist-packages/torch/share/cmake/Torch &&       catkin build" did not complete successfully: exit code: 1
make: *** [Makefile:16: jetson_orin] Error 1
Peize-Liu commented 3 months ago
docker pull hkustswarm/d2slam:jetson_orin_base_35.3.1

is working ... after that I tried "make jetson_orin", didn't run (got same error). But, when I tried "make jetson_orin_base", it worked, and finally trying now "make jetson_orin".

But in "make jetson_orin", I am getting the following error:

589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_node.dir/build.make:266: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_node] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1335: CMakeFiles/d2frontend_node.dir/all] Error 2
589.1 make[1]: *** Waiting for unfinished jobs....
589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_net_tester.dir/build.make:266: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_net_tester] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1426: CMakeFiles/d2frontend_net_tester.dir/all] Error 2
589.1 /usr/bin/ld: warning: libnvdla_compiler.so, needed by /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: warning: libnvdla_runtime.so, needed by /usr/local/cuda/lib64/libcudla.so.1, not found (try using -rpath or -rpath-link)
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncStrideSemaphore(NvDlaSemaphoreRec const*, unsigned int)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addReshape(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::submit(bool, bool, unsigned int, unsigned int, nvdla::ISync**)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemUnmap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSemaphore(NvDlaSemaphoreRec const*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleFree'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroySync(nvdla::ISync*)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createRuntime()'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::createSyncSyncpoint(NvDlaFenceRec const*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createNetwork()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::ISoftMaxLayer::setAxis(int)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemMap'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::IRuntime::bindSubmitEvent(int, NvDlaSyncEventType, nvdla::ISync*, int*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyNetwork(nvdla::INetwork*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::createWisdom()'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `nvdla::destroyRuntime(nvdla::IRuntime*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::destroyWisdom(nvdla::IWisdom*)'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::INetwork::addTranspose(nvdla::ITensor*, nvdla::Dims4)'
589.1 /usr/bin/ld: /usr/local/cuda/lib64/libcudla.so.1: undefined reference to `NvRmMemHandleAllocAttr'
589.1 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to `nvdla::IProfile::setUseSoftMaxOptz(bool)'
589.1 collect2: error: ld returned 1 exit status
589.1 make[2]: *** [CMakeFiles/d2frontend_spy.dir/build.make:260: /root/swarm_ws/devel/.private/d2frontend/lib/d2frontend/d2frontend_spy] Error 1
589.1 make[1]: *** [CMakeFiles/Makefile2:1398: CMakeFiles/d2frontend_spy.dir/all] Error 2
589.1 make: *** [Makefile:146: all] Error 2
589.1 cd /root/swarm_ws/build/d2frontend; catkin build --get-env d2frontend | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -
589.1 Failed <<< d2frontend                           [ 6 minutes and 34.4 seconds ] 
589.1 Abandoned <<< d2vins                               [ Unrelated job failed ]    
589.1 Abandoned <<< quadcam_depth_est                    [ Unrelated job failed ]    
589.1 [build] Summary: 13 of 16 packages succeeded.                                  
589.1 [build] Ignored: None.                                                         
589.1 [build] Warnings: 14 packages succeeded with warnings.                         
589.1 [build] Abandoned: 2 packages were abandoned.                                  
589.1 [build] Failed: 1 packages failed.                                             
589.1 [build] Runtime: 9 minutes and 47.6 seconds total.                             
589.1 [build] Note: Workspace packages have changed, please re-source setup files to use them.
589.1 
589.1 ...............................................................................
589.1 Failed << d2frontend:make                       [ Exited with code 2 ]         
------
Dockerfile.jetson:13
--------------------
  12 |     WORKDIR ${SWARM_WS}
  13 | >>> RUN   export PATH=/usr/local/cuda/bin:$PATH && \
  14 | >>>       export CUDA_HOME=/usr/local/cuda && \
  15 | >>>       . /opt/ros/${ROS_VERSION}/setup.sh && \
  16 | >>>       catkin config -DCMAKE_BUILD_TYPE=Release \
  17 | >>>             --cmake-args -DONNXRUNTIME_LIB_DIR=/usr/local/lib/ \
  18 | >>>             -DONNXRUNTIME_INC_DIR=/usr/local/include/onnxruntime/core/session/ \
  19 | >>>             -DTorch_DIR=/usr/local/lib/python3.8/dist-packages/torch/share/cmake/Torch && \
  20 | >>>       catkin build
--------------------
ERROR: failed to solve: process "/bin/sh -c export PATH=/usr/local/cuda/bin:$PATH &&       export CUDA_HOME=/usr/local/cuda &&       . /opt/ros/${ROS_VERSION}/setup.sh &&       catkin config -DCMAKE_BUILD_TYPE=Release             --cmake-args -DONNXRUNTIME_LIB_DIR=/usr/local/lib/             -DONNXRUNTIME_INC_DIR=/usr/local/include/onnxruntime/core/session/             -DTorch_DIR=/usr/local/lib/python3.8/dist-packages/torch/share/cmake/Torch &&       catkin build" did not complete successfully: exit code: 1
make: *** [Makefile:16: jetson_orin] Error 1

You should configure your docker default runtime as nvidia-runtime: image

arnab-source commented 3 months ago

With this change in the docker configuration, "make jetson_orin" command is working.