Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR [13/25] COPY docker/jetpack_files /pdk_files #4140

Open
krishnarajk opened this issue Sep 21, 2024 · 3 comments
Open

ERROR [13/25] COPY docker/jetpack_files /pdk_files #4140

krishnarajk opened this issue Sep 21, 2024 · 3 comments

Comments

@krishnarajk
Copy link

Description

I am trying to setup tensort rt oss on the jetson orin nano.
While executing the https://github.com/NVIDIA/TensorRT/blob/release/8.6/docker/ubuntu-cross-aarch64.Dockerfile file it is throwing the error with
`ERROR [13/25] COPY docker/jetpack_files /pdk_files 0.0s

[13/25] COPY docker/jetpack_files /pdk_files:


ubuntu-cross-aarch64.Dockerfile:69

67 | # Skip installing PyPI packages and NGC client on cross-build container
68 |
69 | >>> COPY docker/jetpack_files /pdk_files
70 | COPY scripts/stubify.sh /pdk_files
71 |

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 156867a5-6c53-4894-8bca-0c027714172f::f1lz936xp5y2zkhe4z4gs28dg: "/docker/jetpack_files": not found
`
I have modified the file to accept the cuda version 12.2.0

Environment

TensorRT Version: 8.6.1

NVIDIA GPU: jetson orin nano

NVIDIA Driver Version:

CUDA Version: 12.2

CUDNN Version:

@lix19937
Copy link

You can find the scripts/stubify.sh file in you env or in github repo.

I upload my stubify.sh as follow, you can save it as stubify.sh

#!/bin/bash
#
# This short shell script will extract all the strong "text" symbols from the
# shared library and create a new "stub" shared library with the same symbols.
# The body of these functions will be empty and therefore have no dependencies.
# This scripts uses whatever CC is defined in the user's environment.
#

set -o pipefail

# check arguments
if [ $# -ne 2 ] ; then
    echo "Usage: $(basename $0) IN_LIBFILE OUT_LIBFILE"
    exit 1
fi

IN_LIBFILE="$1"
OUT_LIBFILE="$2"

# check compiler
if [ -z "${CC}" ] ; then
    echo "Error: Environment variable 'CC' has not been defined"
    exit 1
fi

SONAME=$(readelf -d "${IN_LIBFILE}" | grep '(SONAME)' | cut -d [ -f 2 | cut -d ] -f 1)

# make stub library
nm -D "${IN_LIBFILE}" | \
    awk '{if ($2 == "T") { print "void",$3,"() {}" }}' | \
    "${CC}" -x c -O0 -fPIC -shared -Wl,-soname=${SONAME} -Wl,--strip-all -o "${OUT_LIBFILE}" -

exit $?

@krishnarajk

@krishnarajk
Copy link
Author

krishnarajk commented Sep 22, 2024

@lix19937 thank you for your reply. It also throws error for

COPY docker/jetpack_files /pdk_files

i couldnt find the jetpack_files in the repo. How can I get those files?

@lix19937
Copy link

Do you has install JetPack SDK ?

Download and launch the JetPack SDK manager. Login with your NVIDIA developer account.
Select the platform and target OS, and click Continue.
Under Download & Install Options change the download folder and select Download now, Install later. Agree to the license terms and click Continue.
Move the extracted files into the /docker/jetpack_files folder. @krishnarajk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants