Skip to content

error: auto-patchelf could not satisfy dependency libz.so.1 #301

@hrushitfujitsu

Description

@hrushitfujitsu

I tried to run example/relu, and when entering the nix dev shell the build fails with the following error, how do i fix this error?

env:

` - system: `"aarch64-linux"`
 - host os: `Linux 6.8.0-1041-aws, Ubuntu, 22.04.5 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.32.4`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/hj8qvpyc7j9n0rpq6lg1asrk4s4kczpi-nixpkgs/nixpkgs``

error:

python3.13-torch> auto-patchelf: 1 dependencies could not be satisfied
python3.13-torch> error: auto-patchelf could not satisfy dependency libz.so.1 wanted by /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs/libgfortran-e1b7dfc8.so.5.0.0
python3.13-torch> auto-patchelf failed to find all the required dependencies.
python3.13-torch> Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
error: Cannot build '/nix/store/mj8k1hmcd1a9kp40zs2r8m808csfzwl4-python3.13-torch-2.9.0.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0
         /nix/store/w8lc6skghspgpyk4yqvnxs24hs2nrci0-python3.13-torch-2.9.0-cxxdev
         /nix/store/z9cq36dy6a5axyzmvs2rv9nm98a8rf4z-python3.13-torch-2.9.0-dist
       Last 25 log lines:
       >     libc10.so -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch/lib
       >     libstdc++.so.6 -> found: /nix/store/zmjqwzhgl9hwr8xnk8raj8d50lzkql66-gcc-14.3.0-lib/lib
       >     libgcc_s.so.1 -> found: /nix/store/f8w1i7yisixb9hivzbk0l4ixmf67fjqr-gcc-14.3.0-libgcc/lib
       >     libpthread.so.0 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     libc.so.6 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       > setting RPATH to: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch/lib:/nix/store/zmjqwzhgl9hwr8xnk8raj8d50lzkql66-gcc-14.3.0-lib/lib:/nix/store/f8w1i7yisixb9hivzbk0l4ixmf67fjqr-gcc-14.3.0-libgcc/lib:/nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       > searching for dependencies of /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch/lib/libtorch_cpu.so
       >     libopenblasp-r0-121ca252.3.30.so -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs
       >     librt.so.1 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     libgcc_s.so.1 -> found: /nix/store/f8w1i7yisixb9hivzbk0l4ixmf67fjqr-gcc-14.3.0-libgcc/lib
       >     libdl.so.2 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     libm.so.6 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     libgomp-a49a47f9.so.1.0.0 -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs
       >     libpthread.so.0 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     libarm_compute-555502b7.so -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs
       >     libarm_compute_graph-91f54ff9.so -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs
       >     libc10.so -> found: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch/lib
       >     libstdc++.so.6 -> found: /nix/store/zmjqwzhgl9hwr8xnk8raj8d50lzkql66-gcc-14.3.0-lib/lib
       >     libc.so.6 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       >     ld-linux-aarch64.so.1 -> found: /nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib
       > setting RPATH to: /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs:/nix/store/62yvg9afjvmwa8z17arn4giqmjzg2xd2-glibc-2.40-66/lib:/nix/store/f8w1i7yisixb9hivzbk0l4ixmf67fjqr-gcc-14.3.0-libgcc/lib:/nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch/lib:/nix/store/zmjqwzhgl9hwr8xnk8raj8d50lzkql66-gcc-14.3.0-lib/lib
       > auto-patchelf: 1 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency libz.so.1 wanted by /nix/store/6j4cmpgrccsx0w1v5rq5qx5q7830g2jn-python3.13-torch-2.9.0/lib/python3.13/site-packages/torch.libs/libgfortran-e1b7dfc8.so.5.0.0
       > auto-patchelf failed to find all the required dependencies.
       > Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
       For full logs, run:
         nix-store -l /nix/store/mj8k1hmcd1a9kp40zs2r8m808csfzwl4-python3.13-torch-2.9.0.drv
error: Cannot build '/nix/store/d87fg3d1m7j677x02yh1kafaxa7j8h9h-nix-shell-env.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/b5c20zmbrvxi0195x89li6gifj2yq60m-nix-shell-env

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions