NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.55k stars 13.71k forks source link

`nix eval ".#pkgsCross.aarch64-multiplatform"` loops #341274

Open Artturin opened 2 weeks ago

Artturin commented 2 weeks ago

Copying directly from the cross matrix room

Artturin: Hmm nix eval ".#pkgsCross.aarch64-multiplatform" -vvvvvvvvvvv goes for a loop after evaluating 9ptls https://gist.github.com/Artturin/997cca3789e1dda918de53afa94fa0b1

instantiated '9ptls-aarch64-unknown-linux-gnu-1.6.5' -> '/nix/store/hz6mc0fxnsgc0111xrkigdmvgjmnridh-9ptls-aarch64-unknown-linux-gnu-1.6.5.drv'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'builder'
processing attribute 'checkPhase'
processing attribute 'cmakeFlags'
processing attribute 'configureFlags'
processing attribute 'depsBuildBuild'
processing attribute 'depsBuildBuildPropagated'
processing attribute 'depsBuildTarget'
processing attribute 'depsBuildTargetPropagated'
processing attribute 'depsHostHost'
processing attribute 'depsHostHostPropagated'
processing attribute 'depsTargetTarget'
processing attribute 'depsTargetTargetPropagated'
processing attribute 'doCheck'
processing attribute 'doInstallCheck'
processing attribute 'mesonFlags'
processing attribute 'name'
processing attribute 'nativeBuildInputs'
processing attribute 'outputs'
processing attribute 'patches'
processing attribute 'pname'
processing attribute 'postPatch'
processing attribute 'propagatedBuildInputs'
processing attribute 'NIX_CFLAGS_COMPILE'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'HOSTNAME'
processing attribute 'SOURCE_DATE_EPOCH'
processing attribute 'USER'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'builder'
processing attribute 'cmakeFlags'
processing attribute 'configureFlags'
processing attribute 'depsBuildBuild'
processing attribute 'depsBuildBuildPropagated'
processing attribute 'depsBuildTarget'
processing attribute 'depsBuildTargetPropagated'
processing attribute 'depsHostHost'
processing attribute 'depsHostHostPropagated'
processing attribute 'depsTargetTarget'
processing attribute 'depsTargetTargetPropagated'
processing attribute 'doCheck'
processing attribute 'doInstallCheck'
processing attribute 'enableParallelBuilding'
processing attribute 'enableParallelChecking'
processing attribute 'enableParallelInstalling'
processing attribute 'mesonFlags'
processing attribute 'name'
processing attribute 'nativeBuildInputs'
processing attribute 'outputs'
processing attribute 'patches'
processing attribute 'pname'
processing attribute 'postFixup'
processing attribute 'postInstall'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'builder'
processing attribute 'cmakeFlags'
processing attribute 'configureFlags'
processing attribute 'depsBuildBuild'
processing attribute 'depsBuildBuildPropagated'
processing attribute 'depsBuildTarget'
processing attribute 'depsBuildTargetPropagated'
processing attribute 'depsHostHost'
processing attribute 'depsHostHostPropagated'
processing attribute 'depsTargetTarget'
processing attribute 'depsTargetTargetPropagated'
processing attribute 'doCheck'
processing attribute 'doInstallCheck'
processing attribute 'hardeningDisable'
processing attribute 'mesonFlags'
processing attribute 'name'
processing attribute 'nativeBuildInputs'
processing attribute 'outputs'
processing attribute 'patches'
processing attribute 'pname'
processing attribute 'postInstall'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'builder'
processing attribute 'checkPhase'
processing attribute 'cmakeFlags'
processing attribute 'configureFlags'
processing attribute 'depsBuildBuild'
processing attribute 'depsBuildBuildPropagated'
...

Artturin: non cross eval log doesn't seem to be helpful :/

instantiated '9ptls-1.6.5' -> '/nix/store/kxmj7czlc7ipl9wlrmz1943kp37pwncy-9ptls-1.6.5.drv'
evaluating file '/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/common-updater/combinators.nix'
evaluating file '/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/applications/audio/a2jmidid/default.nix'
processing attribute '__structuredAttrs'
processing attribute 'args'
processing attribute 'buildInputs'
processing attribute 'builder'
processing attribute 'cmakeFlags'
processing attribute 'configureFlags'
processing attribute 'depsBuildBuild'
processing attribute 'depsBuildBuildPropagated'
... goes on normally

(strace) Says it loops at pkgs/top-level/cubocore-packages.nix but pkgsCross.aarch64-multiplatform.CuboCore or pkgsCross.aarch64-multiplatform.qt5 don't have issues

instantiated '9ptls-aarch64-unknown-linux-gnu-1.6.5' -> '/nix/store/hz6mc0fxnsgc0111xrkigdmvgjmnridh-9ptls-aarch64-unknown-linux-gnu-1.6.5.drv'
) = 152
)            = 8
brk(0x437b1000)                         = 0x437b1000
brk(0x43801000)                         = 0x43801000
brk(0x438a1000)                         = 0x438a1000
brk(0x439e1000)                         = 0x439e1000
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/top-level/all-packages.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=1303716, ...}) = 0
read(6, "/* The top-level package collect"..., 65536) = 65536
read(6, ";\n\n  sx-go = callPackage ../tool"..., 65536) = 65536
read(6, "kgs_21 = (callPackage ../develop"..., 65536) = 65536
read(6, " };\n\n  roundcubePlugins = dontRe"..., 65536) = 65536
read(6, "aima-apl {\n    buildNativeImage "..., 65536) = 65536
read(6, "util { };\n\n  mcabber = callPacka"..., 65536) = 65536
read(6, "kage ../tools/misc/scdl { };\n\n  "..., 65536) = 65536
read(6, "omplete { };\n\n  zsh-autosuggesti"..., 65536) = 65536
read(6, "e ../development/compilers/uasm "..., 65536) = 65536
brk(0x43ae1000)                         = 0x43ae1000
read(6, "ols/gqlint { };\n\n  gradle-packag"..., 65536) = 65536
read(6, "up = libsoup_3;\n  };\n\n  geoipWit"..., 65536) = 65536
read(6, " libroxml = callPackage ../devel"..., 65536) = 65536
read(6, "lPackage ../tools/graphics/vulka"..., 65536) = 65536
read(6, "s/unstructured-api { };\n\n  urser"..., 65536) = 65536
read(6, "ecific/linux/libevdevc { };\n\n  l"..., 65536) = 65536
read(6, "development/interpreters/gauche/"..., 65536) = 65536
read(6, "plications/audio/mod-arpeggiator"..., 65536) = 65536
brk(0x43ce1000)                         = 0x43ce1000
read(6, "ions/misc/tint2 { };\n\n  tiny = c"..., 65536) = 65536
read(6, "e ../games/openrw {\n    inherit "..., 65536) = 65536
read(6, "cp9020cdw { }).cupswrapper;\n\n  c"..., 58532) = 58532
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/top-level/all-packages.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=1303716, ...}) = 0
read(6, "/* The top-level package collect"..., 65536) = 65536
read(6, ";\n\n  sx-go = callPackage ../tool"..., 65536) = 65536
read(6, "kgs_21 = (callPackage ../develop"..., 65536) = 65536
read(6, " };\n\n  roundcubePlugins = dontRe"..., 65536) = 65536
read(6, "aima-apl {\n    buildNativeImage "..., 65536) = 65536
read(6, "util { };\n\n  mcabber = callPacka"..., 65536) = 65536
read(6, "kage ../tools/misc/scdl { };\n\n  "..., 65536) = 65536
read(6, "omplete { };\n\n  zsh-autosuggesti"..., 65536) = 65536
read(6, "e ../development/compilers/uasm "..., 65536) = 65536
read(6, "ols/gqlint { };\n\n  gradle-packag"..., 65536) = 65536
read(6, "up = libsoup_3;\n  };\n\n  geoipWit"..., 65536) = 65536
read(6, " libroxml = callPackage ../devel"..., 65536) = 65536
read(6, "lPackage ../tools/graphics/vulka"..., 65536) = 65536
read(6, "s/unstructured-api { };\n\n  urser"..., 65536) = 65536
read(6, "ecific/linux/libevdevc { };\n\n  l"..., 65536) = 65536
read(6, "development/interpreters/gauche/"..., 65536) = 65536
read(6, "plications/audio/mod-arpeggiator"..., 65536) = 65536
read(6, "ions/misc/tint2 { };\n\n  tiny = c"..., 65536) = 65536
read(6, "e ../games/openrw {\n    inherit "..., 65536) = 65536
read(6, "cp9020cdw { }).cupswrapper;\n\n  c"..., 58532) = 58532
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/top-level/all-packages.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=1303716, ...}) = 0
read(6, "/* The top-level package collect"..., 65536) = 65536
read(6, ";\n\n  sx-go = callPackage ../tool"..., 65536) = 65536
read(6, "kgs_21 = (callPackage ../develop"..., 65536) = 65536
read(6, " };\n\n  roundcubePlugins = dontRe"..., 65536) = 65536
read(6, "aima-apl {\n    buildNativeImage "..., 65536) = 65536
read(6, "util { };\n\n  mcabber = callPacka"..., 65536) = 65536
read(6, "kage ../tools/misc/scdl { };\n\n  "..., 65536) = 65536
read(6, "omplete { };\n\n  zsh-autosuggesti"..., 65536) = 65536
read(6, "e ../development/compilers/uasm "..., 65536) = 65536
read(6, "ols/gqlint { };\n\n  gradle-packag"..., 65536) = 65536
read(6, "up = libsoup_3;\n  };\n\n  geoipWit"..., 65536) = 65536
read(6, " libroxml = callPackage ../devel"..., 65536) = 65536
read(6, "lPackage ../tools/graphics/vulka"..., 65536) = 65536
read(6, "s/unstructured-api { };\n\n  urser"..., 65536) = 65536
read(6, "ecific/linux/libevdevc { };\n\n  l"..., 65536) = 65536
read(6, "development/interpreters/gauche/"..., 65536) = 65536
read(6, "plications/audio/mod-arpeggiator"..., 65536) = 65536
read(6, "ions/misc/tint2 { };\n\n  tiny = c"..., 65536) = 65536
read(6, "e ../games/openrw {\n    inherit "..., 65536) = 65536
read(6, "cp9020cdw { }).cupswrapper;\n\n  c"..., 58532) = 58532
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/top-level/splice.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=7050, ...}) = 0
read(6, "# The `splicedPackages' package "..., 7050) = 7050
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/stdenv/generic/check-meta.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=18891, ...}) = 0
read(6, "# Checks derivation meta and att"..., 18891) = 18891
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
mmap(0x7fe3b78c0000, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe3b78c0000
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/lib/customisation.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=20216, ...}) = 0
read(6, "{ lib }:\n\nlet\n  inherit (builtin"..., 20216) = 20216
close(6)                                = 0
openat(AT_FDCWD, "/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/top-level/cubocore-packages.nix", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
read(6, "{ newScope, lxqt, lib, libsForQt"..., 2996) = 2996
close(6)                                = 0
processing attribute '__structuredAttrs'
) = 49
)            = 8
processing attribute 'args'
) = 36
)            = 8
processing attribute 'buildInputs'
) = 43
)            = 8
processing attribute '__structuredAttrs'
) = 49
)            = 8
processing attribute 'args'
) = 36
)            = 8
processing attribute 'buildInputs'
) = 43
)            = 8
processing attribute 'builder'
) = 39
)            = 8
processing attribute 'checkPhase'
) = 42
)            = 8
processing attribute 'cmakeFlags'
) = 42
)            = 8
processing attribute 'configureFlags'
) = 46
)            = 8
processing attribute 'depsBuildBuild'
) = 46
)            = 8
...
kirillrdy commented 2 weeks ago

@Artturin i think it's a nix flake bug

you can use nix eval --raw .#pkgsCross.aarch64-multiplatform

this was fixed in newer nix https://nix.dev/manual/nix/2.23/release-notes/rl-2.22#other-changes

Artturin commented 2 weeks ago

@Artturin i think it's a nix flake bug

you can use nix eval --raw .#pkgsCross.aarch64-multiplatform

this was fixed in newer nix nix.dev/manual/nix/2.23/release-notes/rl-2.22#other-changes

Nope not that

$ nix eval ".#pkgsCross.aarch64-multiplatform.bash"
«derivation /nix/store/bxx2gz4y3myac4db5q0p102f910n1yd0-bash-aarch64-unknown-linux-gnu-5.2p32.drv»
Artturin commented 1 week ago

nix-eval-jobs --flake ".#legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform" --workers 1 doesn't loop

Can someone on non lazy-trees branch nix try the command in the OP?

kjeremy commented 1 week ago

I can verify that it happens on 9af5bba31 with nix 2.24.6. I had to ctrl-c after it ate up 31gb of ram.