plougher / squashfs-tools

tools to create and extract Squashfs filesystems
GNU General Public License v2.0
752 stars 193 forks source link

Nix build .#ISOConfig. Error: Argument list too long. /nix/store/...squashfs-4.5.1/bin/mksquashfs:... #224

Closed yuzukicat closed 1 year ago

yuzukicat commented 1 year ago
[00:26:38] [~/Workspace/nixos-config] git(main) πŸ”₯ ❱❱❱ sudo nix build .#images.minimal-iso                                       git(main|✚1 
[sudo] password for yuzuki: 
warning: Git tree '/home/yuzuki/Workspace/nixos-config' is dirty
error: builder for '/nix/store/hh1rwgpz4chrp37nhxbdbg8jj8dkq7qh-squashfs.img.drv' failed with exit code 126;
       last 1 log lines:
       > /nix/store/3yfs41f4b60jya2gk6xikx4s97zsxjr0-stdenv-linux/setup: line 1549: /nix/store/6mk7mcxp8m9sj8879940wvvqfdmwv73r-squashfs-4.5.1/bin/mksquashfs: Argument list too long
       For full logs, run 'nix log /nix/store/hh1rwgpz4chrp37nhxbdbg8jj8dkq7qh-squashfs.img.drv'.
error: 1 dependencies of derivation '/nix/store/v9n9jb40j2wlrscg89vg2s2jh7yflnjh-nixoxa-dirty-x86_64-linux.iso.drv' failed to build
[00:26:48] [cost 7.079s] 932  sudo nix build .#images.minimal-iso                                                                             

[00:27:27] [~/Workspace/nixos-config] git(main) πŸ”₯ ❱❱❱ nix log /nix/store/hh1rwgpz4chrp37nhxbdbg8jj8dkq7qh-squashfs.img.drv      git(main|✚1 
[00:28:18] [cost 50.106s] 933  nix log /nix/store/hh1rwgpz4chrp37nhxbdbg8jj8dkq7qh-squashfs.img.drv
/nix/store/3yfs41f4b60jya2gk6xikx4s97zsxjr0-stdenv-linux/setup: line 1549: /nix/store/6mk7mcxp8m9sj8879940wvvqfdmwv73r-squashfs-4.5.1/bin/mksquashfs: Argument list too long

Environment:

OS: Manjaro Linux 22.0.4 Sikaris x86_64 
Kernel: 6.1.12-1-MANJARO 
DE: Plasma 5.26.5 [KF5 5.103.0] [Qt 5.15.8] (x11) 
[00:36:44] [~] ❱❱❱ nix-env --version
nix-env (Nix) 2.13.2
[00:36:54] [cost 0.012s] 936  nix-env --version    
yuzukicat commented 1 year ago

The issue will get solved after nix flake update, and it seems that it is related to how gcc works, as well as ARG_MAX defined by linux. Because it is not related to squashfs, I mark it as closed.