Subject: bug#46104: backtrace in guix-weather on unsupported package

From: zimoun <[email-masked]>
Date: Fri, 29 Jan 2021 11:40:36 +0100

Hi,

On Mon, 25 Jan 2021 at 20:15, Efraim Flashner <[email-masked]> wrote:
> GHC isn't available for aarch64, only i686-linux and x86_64-linux.
>
> (ins)efraim@3900XT ~/workspace/guix$ guix weather ghc --system=aarch64-linux

--8<---------------cut here---------------start------------->8---
$ guix package -A | cut -f1 | grep ghc | tail -n2
ghcid
r-cghcall

$ guix weather --system=aarch64-linux $(guix package -A | cut -f1 | grep ghc | tail -n2)
computing 1 package derivations for aarch64-linux...
looking for 1 store items on https://ci.guix.gnu.org...
https://ci.guix.gnu.org
  0.0% substitutes available (0 out of 1)
  unknown substitute sizes
  0.0 MiB on disk (uncompressed)
  0.000 seconds per request (0.0 seconds in total)
  2,849.0 requests per second

  0.0% (0 out of 1) of the missing items are queued
  27 queued builds
      i586-gnu: 11 (40.7%)
      armhf-linux: 1 (3.7%)
      i686-linux: 12 (44.4%)
      aarch64-linux: 3 (11.1%)
  build rate: 28.75 builds per hour
      x86_64-linux: 10.67 builds per hour
      i686-linux: 10.11 builds per hour
      aarch64-linux: 8.08 builds per hour

$ guix weather --system=aarch64-linux $(guix package -A | cut -f1 | grep ghc | tail -n2 | head -n1)
computing 0 package derivations for aarch64-linux...
looking for 0 store items on https://ci.guix.gnu.org...
https://ci.guix.gnu.org
Backtrace:
           8 (primitive-load "/home/simon/.config/guix/current/bin/g…")
In guix/ui.scm:
  2154:12  7 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1736:10  6 (with-exception-handler _ _ #:unwind? _ # _)
  1731:15  5 (with-exception-handler #<procedure 7fd0340402d0 at ic…> …)
In guix/scripts/weather.scm:
    545:9  4 (_)
In guix/build/utils.scm:
   569:23  3 (every* #<procedure 7fd02ab69c00 at guix/scripts/weath…> …)
In guix/scripts/weather.scm:
   546:19  2 (_ "https://ci.guix.gnu.org")
   196:22  1 (_ _ ())
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `numerical-overflow' with args `("/" "Numerical overflow" #f #f)'.
--8<---------------cut here---------------end--------------->8---

And to add more…

--8<---------------cut here---------------start------------->8---
$ guix weather --system=foo hello
Backtrace:
In guix/packages.scm:
   922:40 19 (_ _ ("x86_64-linux" "i686-linux" "armhf-linux" "aar…" …))
In guix/memoization.scm:
    100:0 18 (_ #<hash-table 7fd69076b1a0 0/31> (#<package tar@1…> …) …)
In guix/packages.scm:
   926:35 17 (_)
  1169:16 16 (package->bag _ _ _ #:graft? _)
  1275:48 15 (thunk)
In srfi/srfi-1.scm:
   586:29 14 (map1 (("coreutils" #<package [email-masked] guix/…>) …))
   586:29 13 (map1 (("grep" #<package [email-masked] gnu/packages/com…>) …))
   586:29 12 (map1 (("locales" #<package [email-masked]…>) …))
   586:29 11 (map1 (("bash" #<package [email-masked] gnu/p…>) …))
   586:17 10 (map1 (("gcc" #<package [email-masked] gnu/packages/com…>) …))
In guix/packages.scm:
  1018:20  9 (rewrite ("gcc" #<package [email-masked] gnu/packages/comm…>))
In guix/memoization.scm:
    101:0  8 (_ #<hash-table 7fd6877e94c0 14/31> #<package [email-masked].…> …)
In guix/packages.scm:
  1032:13  7 (_)
In guix/build-system/gnu.scm:
   155:33  6 (cut? _)
In gnu/packages/commencement.scm:
  3581:39  5 (arguments #<package [email-masked] gnu/packages/commencemen…>)
In gnu/packages/gcc.scm:
   141:30  4 (arguments #<package [email-masked] gnu/packages/gcc.scm:364…>)
In guix/utils.scm:
   466:18  3 (nix-system->gnu-triplet _ _)
In unknown file:
           2 (substring "foo" 0 #f)
In ice-9/boot-9.scm:
  1669:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Wrong type (expecting exact integer): #f
--8<---------------cut here---------------end--------------->8---