Subject: bug#56633: closed (Re: bug#56633: [core-updates] Some cross-derivations cannot be computed)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 19 Jul 2022 21:32:02 +0000

Your bug report

#56633: [core-updates] Some cross-derivations cannot be computed

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
56633: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56633
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#56633: [core-updates] Some cross-derivations cannot be computed
From: Ludovic Courtès <[email-masked]>
To: Marius Bakke <[email-masked]>
Cc: [email-masked]
Date: Tue, 19 Jul 2022 23:31:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Marius Bakke <[email-masked]> skribis:

> On the 'core-updates' branch, running 'guix build -d' fails on some
> cross-derivations (notably anything that depends on NSPR, but there may
> be others).

That was a typo in (guix build-system mozilla), where we’d accidentally
create a bag with #:system as its ‘name’ field.

Fixed in 5dfc6ab1ab292b87ceea144aa661d0e64c834031!

Ludo’.

Subject: [core-updates] Some cross-derivations cannot be computed
From: Marius Bakke <[email-masked]>
To: [email-masked]
Date: Mon, 18 Jul 2022 20:47:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello Guix!

On the 'core-updates' branch, running 'guix build -d' fails on some
cross-derivations (notably anything that depends on NSPR, but there may
be others).

Somehow both TARGET and SYSTEM ends up #false. Any ideas to what is
going on?

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build --target=aarch64-linux-gnu nspr -d

Backtrace:
In guix/monads.scm:
    471:9 19 (_ _)
In guix/packages.scm:
   1553:7 18 (_ _)
In guix/store.scm:
  1996:13 17 (_ #<store-connection 256.99 7f5816372e60>)
In guix/packages.scm:
  1878:37 16 (_)
  1798:39 15 (bag->derivation #<<bag> name: "ld-wrapper-aarch64-linux-gnu-0" system: #f target: #f build-inputs: () host-inputs: (("binutils" #<package [email-masked] gnu/packages/cross-base.scm:69 7f58054e12c0>) ("guile" #<package [email-masked] guix/build-system/gnu.scm:145 7f5804e65420>) ("bash" #<package [email-masked] gnu/packages/bash.scm:131 7f5804bae210>) ("wrapper" "…> …)
   1291:4 14 (bag-transitive-inputs _)
  1074:23 13 (transitive-inputs _)
  1415:36 12 (propagated-inputs _)
In srfi/srfi-1.scm:
   586:29 11 (map1 (("libunistring" #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e1000>) ("bdw-gc" #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e5f20>)))
   586:17 10 (map1 (("bdw-gc" #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e5f20>)))
In guix/packages.scm:
  1370:20  9 (rewrite ("bdw-gc" #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e5f20>))
In guix/memoization.scm:
    101:0  8 (_ #<hash-table 7f5804e64be0 2/31> #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e5f20> _)
In guix/packages.scm:
  1384:13  7 (_)
In guix/build-system/gnu.scm:
   157:33  6 (cut? _)
In gnu/packages/bdw-gc.scm:
    61:15  5 (arguments #<package [email-masked] gnu/packages/bootstrap.scm:297 7f58054e5f20>)
In guix/utils.scm:
    672:7  4 (target-hurd? _)
In unknown file:
           3 (string-suffix? "-gnu" #f #<undefined> #<undefined> #<undefined> #<undefined>)
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 string-suffix?: Wrong type argument in position 2 (expecting string): #f
--8<---------------cut here---------------end--------------->8---