Subject: Wrong type argument in position 158 (expecting empty list): #<package...

From: Brendan Tildesley <[email-masked]>
Date: Wed, 22 Sep 2021 16:20:37 +0200 (CEST)

I have a Guix with a 100+ packages updated, and a ran a guix build command with a long list of packages, getting this backtrace just after building a package. Note that it took hours of sucessfully building packages to get to this one error, and I'm not sure it will reproduce.
The error appears to be in processing the long list of packages.

The branch: https://notabug.org/Brendan/guix/src/wip-kde-updates-21.08

Backtrace:

...
validating RUNPATH of 0 binaries in "/gnu/store/lhypns0s7y9vcrxsk2zvqfg6kj2iarm7-ytfzf-1.2.0/bin"...
phase `validate-runpath' succeeded after 0.0 seconds
starting phase `validate-documentation-location'
phase `validate-documentation-location' succeeded after 0.0 seconds
starting phase `delete-info-dir-file'
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `install-license-files'
installing 1 license files from '.'
phase `install-license-files' succeeded after 0.0 seconds
starting phase `reset-gzip-timestamps'
phase `reset-gzip-timestamps' succeeded after 0.0 seconds
starting phase `compress-documentation'
phase `compress-documentation' succeeded after 0.0 seconds
successfully built /gnu/store/382mwvir2hq5rvlk4k2d4a3sawl9vbzh-ytfzf-1.2.0.drv
Backtrace:
In ice-9/eval.scm:
    619:8 19 (_ #(#(#<directory (guile-user) 7f3a9349fc80>)))
In guix/ui.scm:
   2185:7 18 (run-guix . _)
  2148:10 17 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
    800:4 15 (call-with-status-report _ _)
In ice-9/boot-9.scm:
  1752:10 14 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   658:37 13 (thunk)
   1320:8 12 (call-with-build-handler _ _)
   1320:8 11 (call-with-build-handler #<procedure 7f3a90176a50 at g…> …)
In guix/ui.scm:
    464:3 10 (_)
In ice-9/boot-9.scm:
  1747:15  9 (with-exception-handler #<procedure 7f3a81018d80 at ic…> …)
  1752:10  8 (with-exception-handler _ _ #:unwind? _ # _)
In guix/ui.scm:
    451:6  7 (_)
In guix/scripts/build.scm:
    608:5  6 (_)
In srfi/srfi-1.scm:
   673:15  5 (append-map _ _ . _)
   586:17  4 (map1 ("x86_64-linux"))
In unknown file:
           3 (concatenate ((#<derivation /gnu/store/z1x25h4kh8qv…>) …))
In ice-9/boot-9.scm:
  1685:16  2 (raise-exception _ #:continuable? _)
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure append: Wrong type argument in position 158 (expecting empty list): #<package [email-masked] gnu/packages/video.scm:5183 7f3a84448820>

Command: