nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
627 stars 76 forks source link

[Fatal Error Bug Report] Failed to build NVIDIA Nixgl Drivers #138

Open dnkmmr69420 opened 1 year ago

dnkmmr69420 commented 1 year ago

Here is my error

error: builder for '/nix/store/xg6fkrij6pm4dkxghp6lnhlb5b4dk82g-nvidia-x11-530.41.03-nixGL.drv' failed with exit code 2;
       last 10 log lines:
       > Verifying archive integrity... OK
       > Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 530.41.03/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Linux-x86_64-530.41.03.run: line 729: /build/makeself.ZYlnAtA5/zstd: No such file or directory
       > tail: error writing 'standard output': Broken pipe
       > /nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Linux-x86_64-530.41.03.run: line 720: /dev/tty: No such device or address
       >
       > Terminated
       > xz: (stdin): File format not recognized
       > tail: error writing 'standard output': Broken pipe
       > tar: This does not look like a tar archive
       > tar: Exiting with failure status due to previous errors
       For full logs, run 'nix log /nix/store/xg6fkrij6pm4dkxghp6lnhlb5b4dk82g-nvidia-x11-530.41.03-nixGL.drv'.
error: 1 dependencies of derivation '/nix/store/cpx61md1wgh926qvljijalsyjlkny1nj-nixGLNvidia-530.41.03.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0s46cygkxjny6jm5cljc86mr0gxzs8hd-nixGL.drv' failed to build

This is running on fedora silverblue

dnkmmr69420 commented 1 year ago

the log

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/xg6fkrij6pm4dkxghp6lnhlb5b4dk82g-nvidia-x11-530.41.03-nixGL.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
tail: error writing 'standard output': Broken pipe
Creating directory NVIDIA-Linux-x86_64-530.41.03
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 530.41.03/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Lin>
tail: error writing 'standard output': Broken pipe
/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Linux-x86_64-530.41.03.run: line 720: /dev/tty: No such device or address

Terminated
xz: (stdin): File format not recognized
tail: error writing 'standard output': Broken pipe
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 ESCOD

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
tail: error writing 'standard output': Broken pipe
Creating directory NVIDIA-Linux-x86_64-530.41.03
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 530.41.03/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Lin>
tail: error writing 'standard output': Broken pipe
/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Linux-x86_64-530.41.03.run: line 720: /dev/tty: No such device or address

Terminated
xz: (stdin): File format not recognized
tail: error writing 'standard output': Broken pipe
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
 ESCOD

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
tail: error writing 'standard output': Broken pipe
Creating directory NVIDIA-Linux-x86_64-530.41.03
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 530.41.03/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Lin>
tail: error writing 'standard output': Broken pipe
/nix/store/di2va099dlad32771wznbk9pjl1b57pl-NVIDIA-Linux-x86_64-530.41.03.run: line 720: /dev/tty: No such device or address

Terminated
xz: (stdin): File format not recognized
tail: error writing 'standard output': Broken pipe
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-14/14 (END)
wentasah commented 11 months ago

Using current nixpkgs-unstable seems to fix this problem. Running the following works for me:

NIXPKGS_ALLOW_UNFREE=1 nix run --impure --override-input nixpkgs nixpkgs/nixos-unstable github:guibou/nixGL
movefasta commented 10 months ago

Using current nixpkgs-unstable seems to fix this problem. Running the following works for me:

NIXPKGS_ALLOW_UNFREE=1 nix run --impure --override-input nixpkgs nixpkgs/nixos-unstable github:guibou/nixGL

Additional info: i face an issue with flake.lock file, because nixpkgs was pinned in my flake registry. Unpin nixpkgs solved this.