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

Build failure: cudaPackages.tensorrt #382169

Open
3 tasks done
jhargraveiii opened this issue Feb 15, 2025 · 1 comment
Open
3 tasks done

Build failure: cudaPackages.tensorrt #382169

jhargraveiii opened this issue Feb 15, 2025 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@jhargraveiii
Copy link

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

✗ nix profile install --impure github:nixos/nixpkgs#cudaPackages.tensorrt

Can Hydra reproduce this build failure?

No, Hydra cannot reproduce this build failure.

Link to Hydra build job

No response

Relevant log output

error: builder for '/nix/store/9jw9zpddayxni9aj3kvjwhfbb6ih73xp-tensorrt-10.3.0.26.drv' failed to produce output path for output 'dev' at '/nix/store/9jw9zpddayxni9aj3kvjwhfbb6ih73xp-tensorrt-10.3.0.26.drv.chroot/root/nix/store/kf1aamhm74w1icy4mzb4f6j9ljklz435-tensorrt-10.3.0.26-dev'
error: 1 dependencies of derivation '/nix/store/0pk07816xxhwddki3x2461hc7c7cxagx-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a8xnm52i9ysc03hfhww2w2nr0qnc7pdc-X-Restart-Triggers-polkit.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kiw2gj5fzy5iisp50s3wp80qvn15h608-dbus-1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lblpzvwg5jfvhjwsccamy9alx77dy3hb-unit-accounts-daemon.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/v66yjvr16sg6vqkicx2czyiyi0ypfqn0-X-Restart-Triggers-dbus.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hh5ygxwgi0ni3cq9bi13whi6dczfzvvf-unit-polkit.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/15bg17nbwbzfaq0dc45czdb38kdn0yrb-unit-dbus.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1jpc17cm22np90n104nd37lrhdylw5wh-unit-dbus.service.drv' failed to build
error: 3 dependencies of derivation '/nix/store/xzhr1h4hzx3bbvpazx7vknfncd0a0i1s-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ga5fi297j8li60d8753qdxzjzfbpyfmp-user-units.drv' failed to build
error: builder for '/nix/store/5fy8rx031ij42ilhwibg6a00kjmdg5sn-tensorrt-10.3.0.26.drv' failed with exit code 1;
       last 25 log lines:
       >     libgcc_s.so.1 -> found: /nix/store/qjg34af79vcz9k2x386wjg6pk905cs42-gcc-14-20241116-libgcc/lib
       > setting RPATH to: /nix/store/ggqfrwgzpr3v3dkvh4cnmhymnvf6cqja-gcc-14-20241116-lib/lib:/nix/store/qjg34af79vcz9k2x386wjg6pk905cs42-gcc-14-20241116-libgcc/lib:$ORIGIN
       > searching for dependencies of /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer_lean.so
       >     libstdc++.so.6 -> found: /nix/store/ggqfrwgzpr3v3dkvh4cnmhymnvf6cqja-gcc-14-20241116-lib/lib
       >     libgcc_s.so.1 -> found: /nix/store/qjg34af79vcz9k2x386wjg6pk905cs42-gcc-14-20241116-libgcc/lib
       > setting RPATH to: /nix/store/ggqfrwgzpr3v3dkvh4cnmhymnvf6cqja-gcc-14-20241116-lib/lib:/nix/store/qjg34af79vcz9k2x386wjg6pk905cs42-gcc-14-20241116-libgcc/lib:$ORIGIN
       > auto-patchelf: 0 dependencies could not be satisfied
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/fr5w2ni9k2i8h7jg3sbpx2vyyrdinjq1-tensorrt-10.3.0.26-bin/bin/trtexec
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_dispatch.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_plugin.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvonnxparser.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer_dispatch.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer_plugin.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer_vc_plugin.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/stubs/libnvinfer_lean.so
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_builder_resource_win.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_builder_resource.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvonnxparser.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_lean.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer_vc_plugin.so.10.3.0
       > autoFixElfFiles: using addDriverRunpath to fix /nix/store/2ddad58cx4ppyw0d8d1ranaskckrn4id-tensorrt-10.3.0.26-lib/lib/libnvinfer.so.10.3.0
       > ERROR: noBrokenSymlinks: the symlink /nix/store/y9lzv28kbmf0xrv6j4rwwzfxz3hql2pc-tensorrt-10.3.0.26/targets/x86_64-linux-gnu/samples points to a missing target /nix/store/y9lzv28kbmf0xrv6j4rwwzfxz3hql2pc-tensorrt-10.3.0.26/samples
       > ERROR: noBrokenSymlinks: the symlink /nix/store/y9lzv28kbmf0xrv6j4rwwzfxz3hql2pc-tensorrt-10.3.0.26/targets/x86_64-linux-gnu/include points to a missing target /nix/store/y9lzv28kbmf0xrv6j4rwwzfxz3hql2pc-tensorrt-10.3.0.26/include
       > ERROR: noBrokenSymlinks: found 2 dangling symlinks and 0 reflexive symlinks
       For full logs, run 'nix log /nix/store/5fy8rx031ij42ilhwibg6a00kjmdg5sn-tensorrt-10.3.0.26.drv'.
error: 1 dependencies of derivation '/nix/store/3h5w0d4jhy2682ia7ph5nbva9z577kkx-etc-pam-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bpw07xajycp52fcizap6iawcq6i7zqz4-set-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yh6fxialykydcjl4ri9mrci0al1xcdak-etc-profile.drv' failed to build
error: 7 dependencies of derivation '/nix/store/ysn7smj2c2kq856s8vv5cxz63m8y5gkz-etc.drv' failed to build
error: 2 dependencies of derivation '/nix/store/i2mdn0m7dc5rgysa9y1d4ls29pyssdki-nixos-system-datalore-25.05.20250213.2ff53fe.drv' failed to build

Additional context

related to recent change to check for dead symlinks. Many packages were fixed but this one is still broken. Maybe because it must be manually installed.

I tried this overlay but didn't work:

(self: super: { cudaPackages = super.cudaPackages // { tensorrt = super.cudaPackages.tensorrt.overrideAttrs (oldAttrs: rec { dontCheckForBrokenSymlinks = true; outputs = [ "out" ]; fixupPhase = '' ${oldAttrs.fixupPhase or ""} # Remove broken symlinks in the main output find $out -type l ! -exec test -e {} \; -delete || true ''; }); }; })

System metadata

nix-shell -p nix-info --run "nix-info -m"

  • system: "x86_64-linux"
  • host os: Linux 6.12.13, NixOS, 25.05 (Warbler), 25.05.20250213.56d5c42
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): "nixos"
  • nixpkgs: /nix/store/3b1jyv48m0k78npzb5jnwdp3z3nn5lf7-source

Notify maintainers

@ConnorBaker @aidalgol @samuela

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@jhargraveiii jhargraveiii added the 0.kind: build failure A package fails to build label Feb 15, 2025
@jhargraveiii jhargraveiii changed the title Build failure: PACKAGENAME Build failure: cudaPackages.tensorrt Feb 15, 2025
@osbm
Copy link
Member

osbm commented Feb 15, 2025

I am getting this explanation:

nixpkgs on  master [!]
❯ export NIXPKGS_ALLOW_UNFREE=1
nixpkgs on  master [!]
❯ nix build --impure github:nixos/nixpkgs#cudaPackages.tensorrt
error: builder for '/nix/store/0ddqs11dfn8q57lpjl0h4vxbbpraa6kv-TensorRT-10.3.0.26.Linux.x86_64-gnu.cuda-12.5.tar.gz.drv' failed with exit code 1;
       last 13 log lines:
       >
       > ***
       > To use the TensorRT derivation, you must join the NVIDIA Developer Program and
       > download the 10.3.0.26 TAR package for CUDA 12.4 from
       > https://developer.nvidia.com/tensorrt.
       >
       > Once you have downloaded the file, add it to the store with the following
       > command, and try building this derivation again.
       >
       > $ nix-store --add-fixed sha256 TensorRT-10.3.0.26.Linux.x86_64-gnu.cuda-12.5.tar.gz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/0ddqs11dfn8q57lpjl0h4vxbbpraa6kv-TensorRT-10.3.0.26.Linux.x86_64-gnu.cuda-12.5.tar.gz.drv'.
error: 1 dependencies of derivation '/nix/store/5fy8rx031ij42ilhwibg6a00kjmdg5sn-tensorrt-10.3.0.26.drv' failed to build
nixpkgs on  master [!]

Did you follow this step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants