dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
2.34k stars 477 forks source link

Can't build ROS2 Humble Image on l4t-r35.4.1 #530

Open jj-quantumdrones opened 6 months ago

jj-quantumdrones commented 6 months ago

I have an NVIDIA Jetson Orin NX.

I am trying to build an image with the following configuration:

I am going to be working in python and cpp.

I run the following command:

$ CUDA_VERSION=11.8 jetson-containers build --name=ai-dev ros:humble-desktop

I get the following output:

Click to expand output ```txt DEPRECATED: The legacy builder is deprecated and will be removed in a future release. BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0 environment-variable. Sending build context to Docker daemon 19.97kB Step 1/5 : ARG BASE_IMAGE Step 2/5 : FROM ${BASE_IMAGE} r35.4.1: Pulling from nvidia/l4t-jetpack 2378679266ac: Pulling fs layer fbe64e031ca2: Pulling fs layer bc84636d073b: Pulling fs layer 4c8a78053e02: Pulling fs layer c98a245e07e2: Pulling fs layer 54e58b7fa9fd: Pulling fs layer bd70e595c704: Pulling fs layer 70a7c3288501: Pulling fs layer 0cdb0dfb035f: Pulling fs layer a4c3570418d1: Pulling fs layer 019c19b28a48: Pulling fs layer ea8790418f30: Pulling fs layer a9dca93572f1: Pulling fs layer 1a4f4ffe916b: Pulling fs layer b1285e2f3ec3: Pulling fs layer 2bd4b945552e: Pulling fs layer a5c388f5daf7: Pulling fs layer d9fa505958b2: Pulling fs layer 5f5b8fb8b6a8: Pulling fs layer 1b798dc9c4ba: Pulling fs layer b48c074786ef: Pulling fs layer 30eefdd3bb15: Pulling fs layer c98a245e07e2: Waiting 54e58b7fa9fd: Waiting bd70e595c704: Waiting 70a7c3288501: Waiting 0cdb0dfb035f: Waiting a4c3570418d1: Waiting 019c19b28a48: Waiting ea8790418f30: Waiting a9dca93572f1: Waiting 1a4f4ffe916b: Waiting b1285e2f3ec3: Waiting 2bd4b945552e: Waiting 4c8a78053e02: Waiting a5c388f5daf7: Waiting d9fa505958b2: Waiting 5f5b8fb8b6a8: Waiting 1b798dc9c4ba: Waiting b48c074786ef: Waiting 30eefdd3bb15: Waiting bc84636d073b: Verifying Checksum bc84636d073b: Download complete 2378679266ac: Verifying Checksum 2378679266ac: Download complete 4c8a78053e02: Verifying Checksum c98a245e07e2: Verifying Checksum c98a245e07e2: Download complete 54e58b7fa9fd: Verifying Checksum 54e58b7fa9fd: Download complete 2378679266ac: Pull complete 70a7c3288501: Verifying Checksum 70a7c3288501: Download complete fbe64e031ca2: Verifying Checksum fbe64e031ca2: Download complete a4c3570418d1: Verifying Checksum a4c3570418d1: Download complete bd70e595c704: Verifying Checksum bd70e595c704: Download complete 019c19b28a48: Verifying Checksum 019c19b28a48: Download complete 0cdb0dfb035f: Download complete ea8790418f30: Verifying Checksum ea8790418f30: Download complete a9dca93572f1: Verifying Checksum a9dca93572f1: Download complete fbe64e031ca2: Pull complete bc84636d073b: Pull complete 4c8a78053e02: Pull complete c98a245e07e2: Pull complete 54e58b7fa9fd: Pull complete bd70e595c704: Pull complete 70a7c3288501: Pull complete 0cdb0dfb035f: Pull complete a4c3570418d1: Pull complete 019c19b28a48: Pull complete ea8790418f30: Pull complete a9dca93572f1: Pull complete 2bd4b945552e: Verifying Checksum 2bd4b945552e: Download complete a5c388f5daf7: Verifying Checksum a5c388f5daf7: Download complete b1285e2f3ec3: Verifying Checksum b1285e2f3ec3: Download complete d9fa505958b2: Verifying Checksum d9fa505958b2: Download complete 1b798dc9c4ba: Download complete 5f5b8fb8b6a8: Verifying Checksum 5f5b8fb8b6a8: Download complete b48c074786ef: Download complete 30eefdd3bb15: Download complete 1a4f4ffe916b: Verifying Checksum 1a4f4ffe916b: Download complete 1a4f4ffe916b: Pull complete b1285e2f3ec3: Pull complete 2bd4b945552e: Pull complete a5c388f5daf7: Pull complete d9fa505958b2: Pull complete 5f5b8fb8b6a8: Pull complete 1b798dc9c4ba: Pull complete b48c074786ef: Pull complete 30eefdd3bb15: Pull complete Digest: sha256:d1c8e971ab994235840eacc31c4ef4173bf9156317b1bf8aabe7e01eb21b2a0e Status: Downloaded newer image for nvcr.io/nvidia/l4t-jetpack:r35.4.1 ---> 5c923ac521a3 Step 3/5 : ENV DEBIAN_FRONTEND=noninteractive LANGUAGE=en_US:en LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 ---> Running in de90ee95ea8d Removing intermediate container de90ee95ea8d ---> 00e6a2683fb1 Step 4/5 : RUN set -ex && apt-get update && apt-get install -y --no-install-recommends locales locales-all tzdata && locale-gen en_US $LANG && update-locale LC_ALL=$LC_ALL LANG=$LANG && locale && apt-get install -y --no-install-recommends build-essential software-properties-common apt-transport-https ca-certificates lsb-release pkg-config gnupg git gdb wget curl nano zip unzip time sshpass ssh-client && apt-get clean && rm -rf /var/lib/apt/lists/* && gcc --version && g++ --version ---> Running in 9c478128cc25 + apt-get update Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB] Get:3 https://repo.download.nvidia.com/jetson/common r35.4 InRelease [2,555 B] Get:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB] Get:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB] Get:6 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 Packages [19.6 kB] Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [52.3 kB] Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [10.7 kB] Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1,400 kB] Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [3,158 kB] Get:11 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [1,103 kB] Get:12 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [52.0 kB] Get:13 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [2,777 kB] Get:14 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [4,661 B] Fetched 8,915 kB in 1s (8,432 kB/s) Reading package lists... + apt-get install -y --no-install-recommends locales locales-all tzdata Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: locales-all The following packages will be upgraded: locales tzdata 2 upgraded, 1 newly installed, 0 to remove and 131 not upgraded. Need to get 14.7 MB of archives. After this operation, 227 MB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 locales all 2.31-0ubuntu9.15 [3,869 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 tzdata all 2024a-0ubuntu0.20.04 [301 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 locales-all arm64 2.31-0ubuntu9.15 [10.6 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 14.7 MB in 1s (13.8 MB/s) (Reading database ... 43856 files and directories currently installed.) Preparing to unpack .../locales_2.31-0ubuntu9.15_all.deb ... Unpacking locales (2.31-0ubuntu9.15) over (2.31-0ubuntu9.9) ... Preparing to unpack .../tzdata_2024a-0ubuntu0.20.04_all.deb ... Unpacking tzdata (2024a-0ubuntu0.20.04) over (2023c-0ubuntu0.20.04.2) ... Selecting previously unselected package locales-all. Preparing to unpack .../locales-all_2.31-0ubuntu9.15_arm64.deb ... Unpacking locales-all (2.31-0ubuntu9.15) ... Setting up locales (2.31-0ubuntu9.15) ... locales-all installed, skipping locales generation Setting up locales-all (2.31-0ubuntu9.15) ... Setting up tzdata (2024a-0ubuntu0.20.04) ... Current default time zone: 'Etc/UTC' Local time is now: Fri May 17 09:36:23 UTC 2024. Universal Time is now: Fri May 17 09:36:23 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. + locale-gen en_US en_US.UTF-8 Generating locales (this might take a while)... en_US.ISO-8859-1... done en_US.UTF-8... done Generation complete. + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 + locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8 + apt-get install -y --no-install-recommends build-essential software-properties-common apt-transport-https ca-certificates lsb-release pkg-config gnupg git gdb wget curl nano zip unzip time sshpass ssh-client Reading package lists... Building dependency tree... Reading state information... build-essential is already the newest version (12.8ubuntu1.1). build-essential set to manually installed. ca-certificates is already the newest version (20230311ubuntu0.20.04.1). gnupg is already the newest version (2.2.19-3ubuntu2.2). gnupg set to manually installed. wget is already the newest version (1.20.3-1ubuntu2). The following additional packages will be installed: distro-info-data gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git-man libappstream4 libbabeltrace1 libcbor0.6 libcurl4 libdw1 libelf1 liberror-perl libfido2-1 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglib2.0-data liblmdb0 libpackagekit-glib2-18 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpython3.8 libpython3.8-minimal libpython3.8-stdlib libstemmer0d libyaml-0-2 packagekit policykit-1 python-apt-common python3-apt python3-certifi python3-chardet python3-dbus python3-gi python3-idna python3-requests python3-requests-unixsocket python3-six python3-software-properties python3-urllib3 python3.8 python3.8-minimal Suggested packages: gdb-doc gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn hunspell keychain libpam-ssh monkeysphere ssh-askpass appstream python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg python3-cryptography python3-openssl python3-socks python3.8-venv python3.8-doc binfmt-support Recommended packages: libc-dbg gdbserver less xdg-user-dirs xauth packagekit-tools unattended-upgrades The following NEW packages will be installed: apt-transport-https curl distro-info-data gdb gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git git-man libappstream4 libbabeltrace1 libcbor0.6 libcurl4 libdw1 liberror-perl libfido2-1 libgirepository-1.0-1 libglib2.0-bin libglib2.0-data liblmdb0 libpackagekit-glib2-18 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpython3.8 libstemmer0d libyaml-0-2 lsb-release nano openssh-client packagekit pkg-config policykit-1 python-apt-common python3-apt python3-certifi python3-chardet python3-dbus python3-gi python3-idna python3-requests python3-requests-unixsocket python3-six python3-software-properties python3-urllib3 software-properties-common sshpass time unzip zip The following packages will be upgraded: libelf1 libglib2.0-0 libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal 6 upgraded, 48 newly installed, 0 to remove and 125 not upgraded. Need to get 20.0 MB of archives. After this operation, 74.0 MB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3.8 arm64 3.8.10-0ubuntu1~20.04.9 [387 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpython3.8-stdlib arm64 3.8.10-0ubuntu1~20.04.9 [1,649 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3.8-minimal arm64 3.8.10-0ubuntu1~20.04.9 [1,831 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpython3.8-minimal arm64 3.8.10-0ubuntu1~20.04.9 [714 kB] Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 distro-info-data all 0.43ubuntu1.16 [5,032 B] Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libglib2.0-0 arm64 2.64.6-1~ubuntu20.04.7 [1,201 kB] Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libgirepository-1.0-1 arm64 1.64.1-1~ubuntu20.04.1 [77.0 kB] Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 gir1.2-glib-2.0 arm64 1.64.1-1~ubuntu20.04.1 [134 kB] Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libelf1 arm64 0.176-1.1ubuntu0.1 [44.4 kB] Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libglib2.0-data all 2.64.6-1~ubuntu20.04.7 [5,944 B] Get:11 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libyaml-0-2 arm64 0.2.2-1 [44.4 kB] Get:12 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 lsb-release all 11.1.0ubuntu2 [10.6 kB] Get:13 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-dbus arm64 1.2.16-1build1 [91.4 kB] Get:14 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-gi arm64 3.36.0-1 [159 kB] Get:15 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-six all 1.14.0-2 [12.1 kB] Get:16 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libcbor0.6 arm64 0.6.0-0ubuntu1 [20.5 kB] Get:17 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libfido2-1 arm64 1.3.1-1ubuntu2 [45.1 kB] Get:18 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 liblmdb0 arm64 0.9.24-1 [43.1 kB] Get:19 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpolkit-gobject-1-0 arm64 0.105-26ubuntu1.3 [37.4 kB] Get:20 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 nano arm64 4.8-1ubuntu1 [261 kB] Get:21 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 openssh-client arm64 1:8.2p1-4ubuntu0.11 [636 kB] Get:22 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python-apt-common all 2.0.1ubuntu0.20.04.1 [16.5 kB] Get:23 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3-apt arm64 2.0.1ubuntu0.20.04.1 [147 kB] Get:24 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 time arm64 1.7-25.1build1 [25.7 kB] Get:25 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 apt-transport-https all 2.0.10 [1,704 B] Get:26 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libcurl4 arm64 7.68.0-1ubuntu2.22 [215 kB] Get:27 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 curl arm64 7.68.0-1ubuntu2.22 [157 kB] Get:28 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libdw1 arm64 0.176-1.1ubuntu0.1 [213 kB] Get:29 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libbabeltrace1 arm64 1.5.8-1build1 [142 kB] Get:30 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpython3.8 arm64 3.8.10-0ubuntu1~20.04.9 [1,491 kB] Get:31 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 gdb arm64 9.2-0ubuntu1~20.04.1 [3,177 kB] Get:32 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpackagekit-glib2-18 arm64 1.1.13-2ubuntu1.1 [92.8 kB] Get:33 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 gir1.2-packagekitglib-1.0 arm64 1.1.13-2ubuntu1.1 [21.6 kB] Get:34 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 liberror-perl all 0.17029-1 [26.5 kB] Get:35 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 git-man all 1:2.25.1-1ubuntu3.11 [887 kB] Get:36 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 git arm64 1:2.25.1-1ubuntu3.11 [4,437 kB] Get:37 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libstemmer0d arm64 0+svn585-2 [60.6 kB] Get:38 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libappstream4 arm64 0.12.10-2 [120 kB] Get:39 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libglib2.0-bin arm64 2.64.6-1~ubuntu20.04.7 [69.2 kB] Get:40 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpolkit-agent-1-0 arm64 0.105-26ubuntu1.3 [14.2 kB] Get:41 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 pkg-config arm64 0.29.1-0ubuntu4 [43.8 kB] Get:42 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 policykit-1 arm64 0.105-26ubuntu1.3 [79.4 kB] Get:43 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-certifi all 2019.11.28-1 [149 kB] Get:44 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-chardet all 3.0.4-4build1 [80.4 kB] Get:45 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-idna all 2.8-1 [34.6 kB] Get:46 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3-urllib3 all 1.25.8-2ubuntu0.3 [88.7 kB] Get:47 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3-requests all 2.22.0-2ubuntu1.1 [47.2 kB] Get:48 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 python3-requests-unixsocket all 0.2.0-2 [7,272 B] Get:49 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3-software-properties all 0.99.9.12 [21.7 kB] Get:50 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 packagekit arm64 1.1.13-2ubuntu1.1 [388 kB] Get:51 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 software-properties-common all 0.99.9.12 [10.4 kB] Get:52 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 unzip arm64 6.0-25ubuntu1.2 [162 kB] Get:53 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 zip arm64 3.0-11build1 [146 kB] Get:54 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 sshpass arm64 1.06-1 [10.3 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 20.0 MB in 1s (14.0 MB/s) (Reading database ... 50861 files and directories currently installed.) Preparing to unpack .../00-python3.8_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking python3.8 (3.8.10-0ubuntu1~20.04.9) over (3.8.10-0ubuntu1~20.04.8) ... Preparing to unpack .../01-libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking libpython3.8-stdlib:arm64 (3.8.10-0ubuntu1~20.04.9) over (3.8.10-0ubuntu1~20.04.8) ... Preparing to unpack .../02-python3.8-minimal_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04.9) over (3.8.10-0ubuntu1~20.04.8) ... Preparing to unpack .../03-libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking libpython3.8-minimal:arm64 (3.8.10-0ubuntu1~20.04.9) over (3.8.10-0ubuntu1~20.04.8) ... Selecting previously unselected package distro-info-data. Preparing to unpack .../04-distro-info-data_0.43ubuntu1.16_all.deb ... Unpacking distro-info-data (0.43ubuntu1.16) ... Preparing to unpack .../05-libglib2.0-0_2.64.6-1~ubuntu20.04.7_arm64.deb ... Unpacking libglib2.0-0:arm64 (2.64.6-1~ubuntu20.04.7) over (2.64.6-1~ubuntu20.04.4) ... Selecting previously unselected package libgirepository-1.0-1:arm64. Preparing to unpack .../06-libgirepository-1.0-1_1.64.1-1~ubuntu20.04.1_arm64.deb ... Unpacking libgirepository-1.0-1:arm64 (1.64.1-1~ubuntu20.04.1) ... Selecting previously unselected package gir1.2-glib-2.0:arm64. Preparing to unpack .../07-gir1.2-glib-2.0_1.64.1-1~ubuntu20.04.1_arm64.deb ... Unpacking gir1.2-glib-2.0:arm64 (1.64.1-1~ubuntu20.04.1) ... Preparing to unpack .../08-libelf1_0.176-1.1ubuntu0.1_arm64.deb ... Unpacking libelf1:arm64 (0.176-1.1ubuntu0.1) over (0.176-1.1build1) ... Selecting previously unselected package libglib2.0-data. Preparing to unpack .../09-libglib2.0-data_2.64.6-1~ubuntu20.04.7_all.deb ... Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.7) ... Selecting previously unselected package libyaml-0-2:arm64. Preparing to unpack .../10-libyaml-0-2_0.2.2-1_arm64.deb ... Unpacking libyaml-0-2:arm64 (0.2.2-1) ... Selecting previously unselected package lsb-release. Preparing to unpack .../11-lsb-release_11.1.0ubuntu2_all.deb ... Unpacking lsb-release (11.1.0ubuntu2) ... Selecting previously unselected package python3-dbus. Preparing to unpack .../12-python3-dbus_1.2.16-1build1_arm64.deb ... Unpacking python3-dbus (1.2.16-1build1) ... Selecting previously unselected package python3-gi. Preparing to unpack .../13-python3-gi_3.36.0-1_arm64.deb ... Unpacking python3-gi (3.36.0-1) ... Selecting previously unselected package python3-six. Preparing to unpack .../14-python3-six_1.14.0-2_all.deb ... Unpacking python3-six (1.14.0-2) ... Selecting previously unselected package libcbor0.6:arm64. Preparing to unpack .../15-libcbor0.6_0.6.0-0ubuntu1_arm64.deb ... Unpacking libcbor0.6:arm64 (0.6.0-0ubuntu1) ... Selecting previously unselected package libfido2-1:arm64. Preparing to unpack .../16-libfido2-1_1.3.1-1ubuntu2_arm64.deb ... Unpacking libfido2-1:arm64 (1.3.1-1ubuntu2) ... Selecting previously unselected package liblmdb0:arm64. Preparing to unpack .../17-liblmdb0_0.9.24-1_arm64.deb ... Unpacking liblmdb0:arm64 (0.9.24-1) ... Selecting previously unselected package libpolkit-gobject-1-0:arm64. Preparing to unpack .../18-libpolkit-gobject-1-0_0.105-26ubuntu1.3_arm64.deb ... Unpacking libpolkit-gobject-1-0:arm64 (0.105-26ubuntu1.3) ... Selecting previously unselected package nano. Preparing to unpack .../19-nano_4.8-1ubuntu1_arm64.deb ... Unpacking nano (4.8-1ubuntu1) ... Selecting previously unselected package openssh-client. Preparing to unpack .../20-openssh-client_1%3a8.2p1-4ubuntu0.11_arm64.deb ... Unpacking openssh-client (1:8.2p1-4ubuntu0.11) ... Selecting previously unselected package python-apt-common. Preparing to unpack .../21-python-apt-common_2.0.1ubuntu0.20.04.1_all.deb ... Unpacking python-apt-common (2.0.1ubuntu0.20.04.1) ... Selecting previously unselected package python3-apt. Preparing to unpack .../22-python3-apt_2.0.1ubuntu0.20.04.1_arm64.deb ... Unpacking python3-apt (2.0.1ubuntu0.20.04.1) ... Selecting previously unselected package time. Preparing to unpack .../23-time_1.7-25.1build1_arm64.deb ... Unpacking time (1.7-25.1build1) ... Selecting previously unselected package apt-transport-https. Preparing to unpack .../24-apt-transport-https_2.0.10_all.deb ... Unpacking apt-transport-https (2.0.10) ... Selecting previously unselected package libcurl4:arm64. Preparing to unpack .../25-libcurl4_7.68.0-1ubuntu2.22_arm64.deb ... Unpacking libcurl4:arm64 (7.68.0-1ubuntu2.22) ... Selecting previously unselected package curl. Preparing to unpack .../26-curl_7.68.0-1ubuntu2.22_arm64.deb ... Unpacking curl (7.68.0-1ubuntu2.22) ... Selecting previously unselected package libdw1:arm64. Preparing to unpack .../27-libdw1_0.176-1.1ubuntu0.1_arm64.deb ... Unpacking libdw1:arm64 (0.176-1.1ubuntu0.1) ... Selecting previously unselected package libbabeltrace1:arm64. Preparing to unpack .../28-libbabeltrace1_1.5.8-1build1_arm64.deb ... Unpacking libbabeltrace1:arm64 (1.5.8-1build1) ... Selecting previously unselected package libpython3.8:arm64. Preparing to unpack .../29-libpython3.8_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking libpython3.8:arm64 (3.8.10-0ubuntu1~20.04.9) ... Selecting previously unselected package gdb. Preparing to unpack .../30-gdb_9.2-0ubuntu1~20.04.1_arm64.deb ... Unpacking gdb (9.2-0ubuntu1~20.04.1) ... Selecting previously unselected package libpackagekit-glib2-18:arm64. Preparing to unpack .../31-libpackagekit-glib2-18_1.1.13-2ubuntu1.1_arm64.deb ... Unpacking libpackagekit-glib2-18:arm64 (1.1.13-2ubuntu1.1) ... Selecting previously unselected package gir1.2-packagekitglib-1.0. Preparing to unpack .../32-gir1.2-packagekitglib-1.0_1.1.13-2ubuntu1.1_arm64.deb ... Unpacking gir1.2-packagekitglib-1.0 (1.1.13-2ubuntu1.1) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../33-liberror-perl_0.17029-1_all.deb ... Unpacking liberror-perl (0.17029-1) ... Selecting previously unselected package git-man. Preparing to unpack .../34-git-man_1%3a2.25.1-1ubuntu3.11_all.deb ... Unpacking git-man (1:2.25.1-1ubuntu3.11) ... Selecting previously unselected package git. Preparing to unpack .../35-git_1%3a2.25.1-1ubuntu3.11_arm64.deb ... Unpacking git (1:2.25.1-1ubuntu3.11) ... Selecting previously unselected package libstemmer0d:arm64. Preparing to unpack .../36-libstemmer0d_0+svn585-2_arm64.deb ... Unpacking libstemmer0d:arm64 (0+svn585-2) ... Selecting previously unselected package libappstream4:arm64. Preparing to unpack .../37-libappstream4_0.12.10-2_arm64.deb ... Unpacking libappstream4:arm64 (0.12.10-2) ... Selecting previously unselected package libglib2.0-bin. Preparing to unpack .../38-libglib2.0-bin_2.64.6-1~ubuntu20.04.7_arm64.deb ... Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.7) ... Selecting previously unselected package libpolkit-agent-1-0:arm64. Preparing to unpack .../39-libpolkit-agent-1-0_0.105-26ubuntu1.3_arm64.deb ... Unpacking libpolkit-agent-1-0:arm64 (0.105-26ubuntu1.3) ... Selecting previously unselected package pkg-config. Preparing to unpack .../40-pkg-config_0.29.1-0ubuntu4_arm64.deb ... Unpacking pkg-config (0.29.1-0ubuntu4) ... Selecting previously unselected package policykit-1. Preparing to unpack .../41-policykit-1_0.105-26ubuntu1.3_arm64.deb ... Unpacking policykit-1 (0.105-26ubuntu1.3) ... Selecting previously unselected package python3-certifi. Preparing to unpack .../42-python3-certifi_2019.11.28-1_all.deb ... Unpacking python3-certifi (2019.11.28-1) ... Selecting previously unselected package python3-chardet. Preparing to unpack .../43-python3-chardet_3.0.4-4build1_all.deb ... Unpacking python3-chardet (3.0.4-4build1) ... Selecting previously unselected package python3-idna. Preparing to unpack .../44-python3-idna_2.8-1_all.deb ... Unpacking python3-idna (2.8-1) ... Selecting previously unselected package python3-urllib3. Preparing to unpack .../45-python3-urllib3_1.25.8-2ubuntu0.3_all.deb ... Unpacking python3-urllib3 (1.25.8-2ubuntu0.3) ... Selecting previously unselected package python3-requests. Preparing to unpack .../46-python3-requests_2.22.0-2ubuntu1.1_all.deb ... Unpacking python3-requests (2.22.0-2ubuntu1.1) ... Selecting previously unselected package python3-requests-unixsocket. Preparing to unpack .../47-python3-requests-unixsocket_0.2.0-2_all.deb ... Unpacking python3-requests-unixsocket (0.2.0-2) ... Selecting previously unselected package python3-software-properties. Preparing to unpack .../48-python3-software-properties_0.99.9.12_all.deb ... Unpacking python3-software-properties (0.99.9.12) ... Selecting previously unselected package packagekit. Preparing to unpack .../49-packagekit_1.1.13-2ubuntu1.1_arm64.deb ... Unpacking packagekit (1.1.13-2ubuntu1.1) ... Selecting previously unselected package software-properties-common. Preparing to unpack .../50-software-properties-common_0.99.9.12_all.deb ... Unpacking software-properties-common (0.99.9.12) ... Selecting previously unselected package unzip. Preparing to unpack .../51-unzip_6.0-25ubuntu1.2_arm64.deb ... Unpacking unzip (6.0-25ubuntu1.2) ... Selecting previously unselected package zip. Preparing to unpack .../52-zip_3.0-11build1_arm64.deb ... Unpacking zip (3.0-11build1) ... Selecting previously unselected package sshpass. Preparing to unpack .../53-sshpass_1.06-1_arm64.deb ... Unpacking sshpass (1.06-1) ... Setting up liblmdb0:arm64 (0.9.24-1) ... Setting up time (1.7-25.1build1) ... Setting up libpython3.8-minimal:arm64 (3.8.10-0ubuntu1~20.04.9) ... Setting up apt-transport-https (2.0.10) ... Setting up libyaml-0-2:arm64 (0.2.2-1) ... Setting up libglib2.0-0:arm64 (2.64.6-1~ubuntu20.04.7) ... Setting up distro-info-data (0.43ubuntu1.16) ... Setting up unzip (6.0-25ubuntu1.2) ... Setting up libpackagekit-glib2-18:arm64 (1.1.13-2ubuntu1.1) ... Setting up libcbor0.6:arm64 (0.6.0-0ubuntu1) ... Setting up sshpass (1.06-1) ... Setting up liberror-perl (0.17029-1) ... Setting up python3-six (1.14.0-2) ... Setting up zip (3.0-11build1) ... Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.7) ... Setting up python3-chardet (3.0.4-4build1) ... Setting up python3-certifi (2019.11.28-1) ... Setting up python3-idna (2.8-1) ... Setting up pkg-config (0.29.1-0ubuntu4) ... Setting up python3-urllib3 (1.25.8-2ubuntu0.3) ... Setting up nano (4.8-1ubuntu1) ... update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group editor) doesn't exist update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode update-alternatives: warning: skip creation of /usr/share/man/man1/pico.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group pico) doesn't exist Setting up python-apt-common (2.0.1ubuntu0.20.04.1) ... Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.9) ... Setting up libcurl4:arm64 (7.68.0-1ubuntu2.22) ... Setting up git-man (1:2.25.1-1ubuntu3.11) ... Setting up libgirepository-1.0-1:arm64 (1.64.1-1~ubuntu20.04.1) ... Setting up curl (7.68.0-1ubuntu2.22) ... Setting up libstemmer0d:arm64 (0+svn585-2) ... Setting up lsb-release (11.1.0ubuntu2) ... Setting up libpython3.8-stdlib:arm64 (3.8.10-0ubuntu1~20.04.9) ... Setting up libfido2-1:arm64 (1.3.1-1ubuntu2) ... Setting up python3.8 (3.8.10-0ubuntu1~20.04.9) ... Setting up libelf1:arm64 (0.176-1.1ubuntu0.1) ... Setting up libpolkit-gobject-1-0:arm64 (0.105-26ubuntu1.3) ... Setting up libdw1:arm64 (0.176-1.1ubuntu0.1) ... Setting up python3-dbus (1.2.16-1build1) ... Setting up python3-apt (2.0.1ubuntu0.20.04.1) ... Setting up openssh-client (1:8.2p1-4ubuntu0.11) ... Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.7) ... Setting up libappstream4:arm64 (0.12.10-2) ... Setting up libpython3.8:arm64 (3.8.10-0ubuntu1~20.04.9) ... Setting up python3-requests (2.22.0-2ubuntu1.1) ... Setting up git (1:2.25.1-1ubuntu3.11) ... Setting up gir1.2-glib-2.0:arm64 (1.64.1-1~ubuntu20.04.1) ... Setting up libbabeltrace1:arm64 (1.5.8-1build1) ... Setting up libpolkit-agent-1-0:arm64 (0.105-26ubuntu1.3) ... Setting up policykit-1 (0.105-26ubuntu1.3) ... Setting up python3-requests-unixsocket (0.2.0-2) ... Setting up gir1.2-packagekitglib-1.0 (1.1.13-2ubuntu1.1) ... Setting up gdb (9.2-0ubuntu1~20.04.1) ... Setting up python3-gi (3.36.0-1) ... Setting up packagekit (1.1.13-2ubuntu1.1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of force-reload. Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket. Setting up python3-software-properties (0.99.9.12) ... Setting up software-properties-common (0.99.9.12) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for libc-bin (2.31-0ubuntu9.9) ... Processing triggers for dbus (1.12.16-2ubuntu2.3) ... + apt-get clean + rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_InRelease /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_main_binary-arm64_Packages.lz4 + gcc --version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + g++ --version g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Removing intermediate container 9c478128cc25 ---> 0ebf38a0ebad Step 5/5 : COPY tarpack /usr/local/bin/ ---> f58f86bf560e Successfully built f58f86bf560e Successfully tagged ai-dev:l4t-r35.4.1-build-essential DEPRECATED: The legacy builder is deprecated and will be removed in a future release. BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0 environment-variable. Sending build context to Docker daemon 37.38kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> f58f86bf560e Step 3/6 : ARG CUDA_ARCH_LIST PIP_INDEX_REPO PIP_UPLOAD_REPO PIP_UPLOAD_USER PIP_UPLOAD_PASS PIP_TRUSTED_HOSTS TAR_INDEX_URL SCP_UPLOAD_URL SCP_UPLOAD_USER SCP_UPLOAD_PASS DISTRO="ubuntu2004" DEBIAN_FRONTEND=noninteractive ---> Running in f7f620e1d168 Removing intermediate container f7f620e1d168 ---> 09a6a0cf85e8 Step 4/6 : ENV CUDA_HOME="/usr/local/cuda" ---> Running in 1c684dfe3956 Removing intermediate container 1c684dfe3956 ---> 07898dfac211 Step 5/6 : ENV NVCC_PATH="$CUDA_HOME/bin/nvcc" ---> Running in 0a87275973d5 Removing intermediate container 0a87275973d5 ---> 62e57b02c2ce Step 6/6 : ENV CUDAARCHS=${CUDA_ARCH_LIST} CUDA_ARCHITECTURES=${CUDA_ARCH_LIST} CUDA_HOME="/usr/local/cuda" CUDNN_LIB_PATH="/usr/lib/aarch64-linux-gnu" CUDNN_LIB_INCLUDE_PATH="/usr/include" CMAKE_CUDA_COMPILER=${NVCC_PATH} CUDA_NVCC_EXECUTABLE=${NVCC_PATH} CUDACXX=${NVCC_PATH} TORCH_NVCC_FLAGS="-Xfatbin -compress-all" CUDA_BIN_PATH="${CUDA_HOME}/bin" CUDA_TOOLKIT_ROOT_DIR="${CUDA_HOME}" PATH="$CUDA_HOME/bin:${PATH}" LD_LIBRARY_PATH="${CUDA_HOME}/compat:${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}" TAR_INDEX_URL=${TAR_INDEX_URL} PIP_INDEX_URL=${PIP_INDEX_REPO} PIP_TRUSTED_HOST=${PIP_TRUSTED_HOSTS} TWINE_REPOSITORY_URL=${PIP_UPLOAD_REPO} TWINE_USERNAME=${PIP_UPLOAD_USER} TWINE_PASSWORD=${PIP_UPLOAD_PASS} SCP_UPLOAD_URL=${SCP_UPLOAD_URL} SCP_UPLOAD_USER=${SCP_UPLOAD_USER} SCP_UPLOAD_PASS=${SCP_UPLOAD_PASS} DEBIAN_FRONTEND=noninteractive ---> Running in 4607ffb7eb46 Removing intermediate container 4607ffb7eb46 ---> 41e3fc7bbf4e Successfully built 41e3fc7bbf4e Successfully tagged ai-dev:l4t-r35.4.1-cuda { "cuda" : { "name" : "CUDA SDK", "version" : "11.4.19" }, "cuda_compat" : { "name" : "CUDA Specific Libraries", "version" : "11.4.31478197" }, "cuda_cudart" : { "name" : "CUDA Runtime (cudart)", "version" : "11.4.298" }, "cuda_cuobjdump" : { "name" : "cuobjdump", "version" : "11.4.315" }, "cuda_cupti" : { "name" : "CUPTI", "version" : "11.4.298" }, "cuda_cuxxfilt" : { "name" : "CUDA cu++ filt", "version" : "11.4.300" }, "cuda_gdb" : { "name" : "CUDA GDB", "version" : "11.4.298" }, "cuda_nvcc" : { "name" : "CUDA NVCC", "version" : "11.4.315" }, "cuda_nvdisasm" : { "name" : "CUDA nvdisasm", "version" : "11.4.298" }, "cuda_nvml_dev" : { "name" : "CUDA NVML Headers", "version" : "11.4.298" }, "cuda_nvprune" : { "name" : "CUDA nvprune", "version" : "11.4.298" }, "cuda_nvrtc" : { "name" : "CUDA NVRTC", "version" : "11.4.300" }, "cuda_nvtx" : { "name" : "CUDA NVTX", "version" : "11.4.300" }, "cuda_samples" : { "name" : "CUDA Samples", "version" : "11.4.300" }, "cuda_sanitizer_api" : { "name" : "CUDA Compute Sanitizer API", "version" : "11.4.298" }, "cuda_thrust" : { "name" : "CUDA C++ Core Compute Libraries", "version" : "11.4.298" }, "libcublas" : { "name" : "CUDA cuBLAS", "version" : "11.6.6.84" }, "libcudla" : { "name" : "CUDA cuDLA", "version" : "11.4.298" }, "libcufft" : { "name" : "CUDA cuFFT", "version" : "10.6.0.202" }, "libcurand" : { "name" : "CUDA cuRAND", "version" : "10.2.5.297" }, "libcusolver" : { "name" : "CUDA cuSOLVER", "version" : "11.2.0.297" }, "libcusparse" : { "name" : "CUDA cuSPARSE", "version" : "11.6.0.299" }, "libnpp" : { "name" : "CUDA NPP", "version" : "11.4.0.287" }, "nsight_compute" : { "name" : "Nsight Compute", "version" : "2021.2.8.1" } } #define CUDNN_MAJOR 8 #define CUDNN_MINOR 6 #define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL) #define CUDNN_MAX_SM_MAJOR_NUMBER 9 #define CUDNN_MAX_SM_MINOR_NUMBER 0 #define CUDNN_MAX_DEVICE_VERSION (CUDNN_MAX_SM_MAJOR_NUMBER * 100) + (CUDNN_MAX_SM_MINOR_NUMBER * 10) building cuDNN conv_sample /bin/sh: 1: file: not found CUDA_VERSION is 11040 Linking agains cublasLt = true CUDA VERSION: 11040 TARGET ARCH: aarch64 TARGET OS: linux SMS: 35 50 53 60 61 62 70 72 75 80 86 /usr/local/cuda/bin/nvcc -I/usr/local/cuda/include -I/usr/local/cuda/include -ccbin g++ -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_86,code=compute_86 -o fp16_dev.o -c fp16_dev.cu g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -o fp16_emu.o -c fp16_emu.cpp g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -o conv_sample.o -c conv_sample.cpp nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). fp16_emu.cpp: In function ‘float convertToFloat(void*, cudnnDataType_t)’: fp16_emu.cpp:163:1: warning: control reaches end of non-void function [-Wreturn-type] 163 | } | ^ /usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_86,code=compute_86 -o conv_sample fp16_dev.o fp16_emu.o conv_sample.o -I/usr/local/cuda/include -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -L/usr/lib/aarch64-linux-gnu -lcublasLt -lcudart -lcublas -lcudnn -lstdc++ -lm nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). Executing: conv_sample Using format CUDNN_TENSOR_NCHW (for INT8x4 and INT8x32 tests use CUDNN_TENSOR_NCHW_VECT_C) Testing single precision ====USER DIMENSIONS==== input dims are 1, 32, 4, 4 filter dims are 32, 32, 1, 1 output dims are 1, 32, 4, 4 ====PADDING DIMENSIONS==== padded input dims are 1, 32, 4, 4 padded filter dims are 32, 32, 1, 1 padded output dims are 1, 32, 4, 4 Testing conv ^^^^ CUDA : elapsed = 0.830769 sec, Test PASSED Testing half precision (math in single precision) ====USER DIMENSIONS==== input dims are 1, 32, 4, 4 filter dims are 32, 32, 1, 1 output dims are 1, 32, 4, 4 ====PADDING DIMENSIONS==== padded input dims are 1, 32, 4, 4 padded filter dims are 32, 32, 1, 1 padded output dims are 1, 32, 4, 4 Testing conv ^^^^ CUDA : elapsed = 0.000535011 sec, Test PASSED DEPRECATED: The legacy builder is deprecated and will be removed in a future release. BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0 environment-variable. Sending build context to Docker daemon 22.02kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> 41e3fc7bbf4e Step 3/6 : ARG PYTHON_VERSION_ARG ---> Running in 5f7da8610cbc Removing intermediate container 5f7da8610cbc ---> 9f13788f5136 Step 4/6 : ENV PYTHON_VERSION=${PYTHON_VERSION_ARG} PIP_DISABLE_PIP_VERSION_CHECK=on PIP_DEFAULT_TIMEOUT=100 PYTHONFAULTHANDLER=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=utf-8 PYTHONHASHSEED=random PIP_NO_CACHE_DIR=off PIP_CACHE_PURGE=true PIP_ROOT_USER_ACTION=ignore TWINE_NON_INTERACTIVE=1 DEBIAN_FRONTEND=noninteractive ---> Running in b09a9a790e11 Removing intermediate container b09a9a790e11 ---> 86190aa659fa Step 5/6 : COPY install.sh /tmp/install_python.sh ---> cba51d6a5507 Step 6/6 : RUN /tmp/install_python.sh ---> Running in 3f7fa8760993 + apt-get update Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB] Get:2 https://repo.download.nvidia.com/jetson/common r35.4 InRelease [2,555 B] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB] Get:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB] Get:6 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 Packages [19.6 kB] Get:7 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [11.1 MB] Get:8 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [1,234 kB] Get:9 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1,317 B] Get:10 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [139 kB] Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [3,158 kB] Get:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1,400 kB] Get:13 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [52.3 kB] Get:14 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [10.7 kB] Get:15 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [54.8 kB] Get:16 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [27.8 kB] Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [1,103 kB] Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [4,661 B] Get:19 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [2,777 kB] Get:20 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [52.0 kB] Fetched 21.8 MB in 2s (12.2 MB/s) Reading package lists... + apt-get install -y --no-install-recommends python3.8 python3.8-dev Reading package lists... Building dependency tree... Reading state information... python3.8 is already the newest version (3.8.10-0ubuntu1~20.04.9). python3.8 set to manually installed. The following additional packages will be installed: libexpat1-dev libpython3.8-dev The following NEW packages will be installed: libexpat1-dev libpython3.8-dev python3.8-dev 0 upgraded, 3 newly installed, 0 to remove and 125 not upgraded. Need to get 4,376 kB of archives. After this operation, 19.4 MB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libexpat1-dev arm64 2.2.9-1ubuntu0.6 [104 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libpython3.8-dev arm64 3.8.10-0ubuntu1~20.04.9 [3,758 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 python3.8-dev arm64 3.8.10-0ubuntu1~20.04.9 [514 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 4,376 kB in 1s (7,817 kB/s) Selecting previously unselected package libexpat1-dev:arm64. (Reading database ... 52680 files and directories currently installed.) Preparing to unpack .../libexpat1-dev_2.2.9-1ubuntu0.6_arm64.deb ... Unpacking libexpat1-dev:arm64 (2.2.9-1ubuntu0.6) ... Selecting previously unselected package libpython3.8-dev:arm64. Preparing to unpack .../libpython3.8-dev_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking libpython3.8-dev:arm64 (3.8.10-0ubuntu1~20.04.9) ... Selecting previously unselected package python3.8-dev. Preparing to unpack .../python3.8-dev_3.8.10-0ubuntu1~20.04.9_arm64.deb ... Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04.9) ... Setting up libexpat1-dev:arm64 (2.2.9-1ubuntu0.6) ... Setting up libpython3.8-dev:arm64 (3.8.10-0ubuntu1~20.04.9) ... Setting up python3.8-dev (3.8.10-0ubuntu1~20.04.9) ... + which python3.8 /usr/bin/python3.8 + return_code=0 + set -e + '[' 0 '!=' 0 ']' + rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_InRelease /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_main_binary-arm64_Packages.lz4 + apt-get clean + curl -sS https://bootstrap.pypa.io/get-pip.py + python3.8 Looking in indexes: http://jetson.webredirect.org/jp5/cu118 ERROR: Could not find a version that satisfies the requirement pip (from versions: none) ERROR: No matching distribution found for pip + curl -sS https://bootstrap.pypa.io/pip/3.6/get-pip.py + python3.6 /tmp/install_python.sh: line 27: python3.6: command not found curl: (23) Failed writing body (0 != 16384) The command '/bin/sh -c /tmp/install_python.sh' returned a non-zero code: 127 Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/qsai/data/jacques/code/jetson-containers/jetson_containers/build.py", line 103, in build_container(args.name, args.packages, args.base, args.build_flags, args.simulate, args.skip_tests, args.test_only, args.push, args.no_github_api) File "/home/qsai/data/jacques/code/jetson-containers/jetson_containers/container.py", line 143, in build_container status = subprocess.run(cmd.replace(_NEWLINE_, ' '), executable='/bin/bash', shell=True, check=True) File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'sudo DOCKER_BUILDKIT=0 docker build --network=host --tag ai-dev:l4t-r35.4.1-python --file /home/qsai/data/jacques/code/jetson-containers/packages/build/python/Dockerfile --build-arg BASE_IMAGE=ai-dev:l4t-r35.4.1-cudnn --build-arg PYTHON_VERSION_ARG="3.8" /home/qsai/data/jacques/code/jetson-containers/packages/build/python 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/build/ai-dev_l4t-r35.4.1-python.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 127. Namespace(base='', build_flags='', list_packages=False, logs='', multiple=False, name='ai-dev', no_github_api=False, package_dirs=[''], packages=['ros:humble-desktop'], push='', show_packages=False, simulate=False, skip_errors=False, skip_packages=[''], skip_tests=[''], test_only=[''], verbose=False) -- L4T_VERSION=35.4.1 -- JETPACK_VERSION=5.1.2 -- CUDA_VERSION=11.8 -- PYTHON_VERSION=3.8 -- LSB_RELEASE=20.04 (focal) -- Package torchvision:0.18.0 has missing dependencies, disabling... ("couldn't find package: pytorch:2.3") -- Package nanodb has missing dependencies, disabling... ("couldn't find package: cuda-python") -- Package faiss_lite has missing dependencies, disabling... ("couldn't find package: cuda-python") -- Package raft has missing dependencies, disabling... ("couldn't find package: cuda-python") -- Package local_llm has missing dependencies, disabling... ("couldn't find package: nanodb") -- Package nano_llm:main has missing dependencies, disabling... ("couldn't find package: nanodb") -- Package nano_llm:24.4 has missing dependencies, disabling... ("couldn't find package: nanodb") -- Package nano_llm:24.4.1 has missing dependencies, disabling... ("couldn't find package: nanodb") -- Package nano_llm:24.5 has missing dependencies, disabling... ("couldn't find package: nanodb") -- Package cuda-python:11.4 has missing dependencies, disabling... ("couldn't find package: cuda:11.4") -- Building containers ['build-essential', 'cuda', 'cudnn', 'python', 'tensorrt', 'numpy', 'opencv', 'cmake', 'ros:humble-desktop'] -- Building container ai-dev:l4t-r35.4.1-build-essential sudo DOCKER_BUILDKIT=0 docker build --network=host --tag ai-dev:l4t-r35.4.1-build-essential \ --file /home/qsai/data/jacques/code/jetson-containers/packages/build/build-essential/Dockerfile \ --build-arg BASE_IMAGE=nvcr.io/nvidia/l4t-jetpack:r35.4.1 \ /home/qsai/data/jacques/code/jetson-containers/packages/build/build-essential \ 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/build/ai-dev_l4t-r35.4.1-build-essential.txt; exit ${PIPESTATUS[0]} -- Building container ai-dev:l4t-r35.4.1-cuda sudo DOCKER_BUILDKIT=0 docker build --network=host --tag ai-dev:l4t-r35.4.1-cuda \ --file /home/qsai/data/jacques/code/jetson-containers/packages/cuda/cuda/Dockerfile.builtin \ --build-arg BASE_IMAGE=ai-dev:l4t-r35.4.1-build-essential \ --build-arg CUDA_ARCH_LIST="72;87" \ --build-arg DISTRO="ubuntu2004" \ --build-arg TAR_INDEX_URL="http://jetson.webredirect.org:8000/jp5/cu118" \ --build-arg PIP_INDEX_REPO="http://jetson.webredirect.org/jp5/cu118" \ --build-arg PIP_TRUSTED_HOSTS="jetson.webredirect.org" \ --build-arg PIP_UPLOAD_REPO="http://localhost/jp5/cu118" \ --build-arg PIP_UPLOAD_USER="jp5" \ --build-arg PIP_UPLOAD_PASS="none" \ --build-arg SCP_UPLOAD_URL="localhost:/dist/jp5/cu118" \ --build-arg SCP_UPLOAD_USER="None" \ --build-arg SCP_UPLOAD_PASS="None" \ /home/qsai/data/jacques/code/jetson-containers/packages/cuda/cuda \ 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/build/ai-dev_l4t-r35.4.1-cuda.txt; exit ${PIPESTATUS[0]} -- Testing container ai-dev:l4t-r35.4.1-cuda (cuda:11.8/test.sh) sudo docker run -t --rm --runtime=nvidia --network=host \ --volume /home/qsai/data/jacques/code/jetson-containers/packages/cuda/cuda:/test \ --volume /home/qsai/data/jacques/code/jetson-containers/data:/data \ --workdir /test \ ai-dev:l4t-r35.4.1-cuda \ /bin/bash -c '/bin/bash test.sh' \ 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/test/ai-dev_l4t-r35.4.1-cuda_test.sh.txt; exit ${PIPESTATUS[0]} -- Tagging container ai-dev:l4t-r35.4.1-cuda -> ai-dev:l4t-r35.4.1-cudnn sudo docker tag ai-dev:l4t-r35.4.1-cuda ai-dev:l4t-r35.4.1-cudnn -- Testing container ai-dev:l4t-r35.4.1-cudnn (cudnn/test.sh) sudo docker run -t --rm --runtime=nvidia --network=host \ --volume /home/qsai/data/jacques/code/jetson-containers/packages/cuda/cudnn:/test \ --volume /home/qsai/data/jacques/code/jetson-containers/data:/data \ --workdir /test \ ai-dev:l4t-r35.4.1-cudnn \ /bin/bash -c '/bin/bash test.sh' \ 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/test/ai-dev_l4t-r35.4.1-cudnn_test.sh.txt; exit ${PIPESTATUS[0]} -- Building container ai-dev:l4t-r35.4.1-python sudo DOCKER_BUILDKIT=0 docker build --network=host --tag ai-dev:l4t-r35.4.1-python \ --file /home/qsai/data/jacques/code/jetson-containers/packages/build/python/Dockerfile \ --build-arg BASE_IMAGE=ai-dev:l4t-r35.4.1-cudnn \ --build-arg PYTHON_VERSION_ARG="3.8" \ /home/qsai/data/jacques/code/jetson-containers/packages/build/python \ 2>&1 | tee /home/qsai/data/jacques/code/jetson-containers/logs/20240517_113307/build/ai-dev_l4t-r35.4.1-python.txt; exit ${PIPESTATUS[0]} ```

Error:

+ which python3.8
/usr/bin/python3.8
+ return_code=0
+ set -e
+ '[' 0 '!=' 0 ']'
+ rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-backports_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-security_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_focal-updates_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_InRelease /var/lib/apt/lists/repo.download.nvidia.com_jetson_common_dists_r35.4_main_binary-arm64_Packages.lz4
+ apt-get clean
+ curl -sS https://bootstrap.pypa.io/get-pip.py
+ python3.8
Looking in indexes: http://jetson.webredirect.org/jp5/cu118
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
+ curl -sS https://bootstrap.pypa.io/pip/3.6/get-pip.py
+ python3.6
/tmp/install_python.sh: line 27: python3.6: command not found
curl: (23) Failed writing body (0 != 16384)
The command '/bin/sh -c /tmp/install_python.sh' returned a non-zero code: 127

It looks like python is failing to install correctly?

I'm not sure what the state of my image and containers are:

qsai@ai-board:~/data/jacques/code$ sudo docker image ls
REPOSITORY                   TAG                           IMAGE ID       CREATED         SIZE
<none>                       <none>                        cba51d6a5507   3 minutes ago   10GB
ai-dev                       l4t-r35.4.1-cuda              41e3fc7bbf4e   3 minutes ago   10GB
ai-dev                       l4t-r35.4.1-cudnn             41e3fc7bbf4e   3 minutes ago   10GB
ai-dev                       l4t-r35.4.1-build-essential   f58f86bf560e   3 minutes ago   10GB
nvcr.io/nvidia/l4t-jetpack   r35.4.1
qsai@ai-board:~/data/jacques/code$ sudo docker ps -a
CONTAINER ID   IMAGE          COMMAND                  CREATED         STATUS                       PORTS     NAMES
3f7fa8760993   cba51d6a5507   "/bin/sh -c /tmp/ins…"   4 minutes ago   Exited (127) 3 minutes ago             eager_villani

I would greatly appreciate some advice on what to do next to get this set up. Thank you.

jj-quantumdrones commented 6 months ago

PS

Once the image is built on my Orin I'm trying to run my dev container with the following setup:

.devcontainer/
    devcontainer.json
    Dockerfile

devcontainer.json

{
    "name": "AI Development Container",
    "build": {
        "dockerfile": "Dockerfile"
    },
    "runArgs": [
        "--gpus",
        "all"
    ],
    "mounts": [
        "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"
    ],
    "workspaceFolder": "/workspace",
    "customizations": {
        "vscode": {
            "extensions": [
                "ms-python.python"
            ]
        }
    }
}

Dockerfile:

FROM cba51d6a5507

# Install any additional dependencies or perform further setup if needed
dusty-nv commented 6 months ago

Hi @jj-quantumdrones, on JetPack 5 I still use l4t-jetpack as the base container (i.e. it already comes with the default version of CUDA 11.4, cuDNN, TensorRT, ect) and have not done custom CUDA versions for JetPack 5. Sorry that I only have time to support that for JetPack 6. Since you have Orin, could you run JetPack 6 on that?

jj-quantumdrones commented 6 months ago

Hi @dusty-nv thank you for your time to answer my post.

Unfortunately I cannot run JetPack 6 we have to use JetPack 5 for our project. But from some testing today without docker trying to run our app straight on the Orin board it looks like I might be fine to run CUDA 11.4 and I may not need CUDA 11.8.

I tried running $ jetson-containers build --name=ai-dev ros:humble-desktop without the CUDA 11.8 flag and still ran into the same python installation error though I'm not sure how to get past...

dusty-nv commented 6 months ago

OK thanks for letting me know @jj-quantumdrones , the past couple days I have been getting nano_llm to build on top of ros:humble container (see forum thread about this), and will also go back and check it on JP5 too 👍

dusty-nv commented 6 months ago

@jj-quantumdrones ok it is working again, I just built/pushed this for JP5: dustynv/ros:humble-llm-r35.4.1

jj-quantumdrones commented 6 months ago

Thank you so much! I will try to go through the setup today again with my Orin NX.

jj-quantumdrones commented 5 months ago

@dusty-nv I am now running jetson-containers build --name=ai-dev ros:humble-desktop and I get the following output logs, they are very long so I am attaching here as .txt files:

They all end the same as follows, exit with status 0 which appears positive.

-- Building container ai-dev:l4t-r35.4.1-ros_humble-desktop

DOCKER_BUILDKIT=0 docker build --network=host --tag ai-dev:l4t-r35.4.1-ros_humble-desktop \
--file /home/picard/Code/Containers/jetson-containers/packages/ros/Dockerfile.ros2 \
--build-arg BASE_IMAGE=ai-dev:l4t-r35.4.1-cmake \
--build-arg ROS_VERSION="humble" \
--build-arg ROS_PACKAGE="desktop" \
/home/picard/Code/Containers/jetson-containers/packages/ros \
2>&1 | tee /home/picard/Code/Containers/jetson-containers/logs/20240524_131237/build/ai-dev_l4t-r35.4.1-ros_humble-desktop.txt; exit ${PIPESTATUS[0]}

But from the same output.txt file this part looks suspicious:

/usr/bin/vcs:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
.E...................................................................................................................................................................................................................................................................................................................................

Moving on to try to inspect the status of my docker images:

When I run docker images to see the status of my images, the final image ai-dev_l4t-r35.4.1-ros_humble-desktop is missing.

picard@picard-desktop:~/Code/Containers$ docker images
REPOSITORY                   TAG                           IMAGE ID       CREATED          SIZE
<none>                       <none>                        9499b28c2b2e   39 minutes ago   11.1GB
<none>                       <none>                        5138c9a57ae4   3 hours ago      11.1GB
ai-dev                       l4t-r35.4.1-cmake             9aca54a6fd47   3 hours ago      11.1GB
ai-dev                       l4t-r35.4.1-opencv_deb        59d492886a25   3 hours ago      11.1GB
ai-dev                       l4t-r35.4.1-numpy             3f887eef4629   3 hours ago      10.2GB
ai-dev                       l4t-r35.4.1-python            a037d2d19cad   3 hours ago      10.1GB
ai-dev                       l4t-r35.4.1-tensorrt          a037d2d19cad   3 hours ago      10.1GB
ai-dev                       l4t-r35.4.1-build-essential   829f0d2664c0   3 hours ago      10GB
ai-dev                       l4t-r35.4.1-cuda              dd261a37448c   3 hours ago      10GB
ai-dev                       l4t-r35.4.1-cudnn             dd261a37448c   3 hours ago      10GB
nvcr.io/nvidia/l4t-jetpack   r35.4.1                       5c923ac521a3   10 months ago    9.71GB

Notice there are two unnamed untagged images...

So then I look at the logs here: ~/Code/Containers/jetson-containers/logs/20240524_141042/build/ai-dev_l4t-r35.4.1-ros_humble-desktop.txt for building this last container called ai-dev_l4t-r35.4.1-ros_humble-desktop

See: ai-dev_l4t-r35.4.1-ros_humble-desktop.txt

In here I see:

/usr/bin/vcs:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
.................................E.E...................................................................................E..............................................................................................................................E..............................................................................

I assume those Es to be errors in some sort of progress bar?

I also get this at the end:

HEAD is now at 8364932 Trimmed the branch to only the vision_opencv sub directory
=== src/yaml_cpp_vendor (git) ===
Cloning into '.'...
Note: switching to 'release/humble/yaml_cpp_vendor/8.0.2-1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at fbd4968 Rebase from 'upstream'
The command '/bin/bash -c ./ros2_build.sh' returned a non-zero code: 1

So it looks like ros2_build.sh is failing.

Looking at ros2_build.sh this part seems suspicious:

# patches for building Humble on 18.04
if [ "$ROS_DISTRO" = "humble" ] || [ "$ROS_DISTRO" = "iron" ] && [ $(lsb_release --codename --short) = "bionic" ]; then
    # rti_connext_dds_cmake_module: No definition of [rti-connext-dds-6.0.1] for OS version [bionic]
    SKIP_KEYS="$SKIP_KEYS rti-connext-dds-6.0.1 ignition-cmake2 ignition-math6"

    # the default gcc-7 is too old to build humble
    apt-get install -y --no-install-recommends gcc-8 g++-8
    export CC="/usr/bin/gcc-8"
    export CXX="/usr/bin/g++-8"
    echo "CC=$CC CXX=$CXX"

    # upgrade pybind11
    apt-get purge -y pybind11-dev
    pip3 install --upgrade --no-cache-dir pybind11-global

    # https://github.com/dusty-nv/jetson-containers/issues/160#issuecomment-1429572145
    git -C /tmp clone -b yaml-cpp-0.6.0 https://github.com/jbeder/yaml-cpp.git
    cmake -S /tmp/yaml-cpp -B /tmp/yaml-cpp/BUILD -DBUILD_SHARED_LIBS=ON
    cmake --build /tmp/yaml-cpp/BUILD --parallel $(nproc --ignore=1)
    cmake --install /tmp/yaml-cpp/BUILD
    rm -rf /tmp/yaml-cpp
fi

I commented this block out, but ros2_build.sh still fails.

aapatni commented 1 month ago

Hi @jj-quantumdrones were you able to root cause this error?