GNU bug report logs - #61732
"Unbound variable: %build-inputs

Previous Next

Package: guix;

Reported by: "Wicki Gabriel (wicg)" <wicg <at> zhaw.ch>

Date: Thu, 23 Feb 2023 12:49:02 UTC

Severity: normal

To reply to this bug, email your comments to 61732 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#61732; Package guix. (Thu, 23 Feb 2023 12:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Wicki Gabriel (wicg)" <wicg <at> zhaw.ch>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 23 Feb 2023 12:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Wicki Gabriel (wicg)" <wicg <at> zhaw.ch>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: "Unbound variable: %build-inputs
Date: Thu, 23 Feb 2023 12:42:33 +0000
[Message part 1 (text/plain, inline)]
Hello

I get the following error message when trying to cross-compile perl-gd:
```
Backtrace:
          15 (primitive-load "/gnu/store/m65ipkgj9d9l2in8yp9w82npqbb?")
In ice-9/eval.scm:
   214:21 14 (_ #f)
   217:50 13 (lp (#<procedure 7ffff0057100 at ice-9/eval.scm:282:?> ?))
   217:50 12 (lp (#<procedure 7ffff00570e0 at ice-9/eval.scm:282:?> ?))
   217:50 11 (lp (#<procedure 7ffff00570c0 at ice-9/eval.scm:282:?> ?))
   217:50 10 (lp (#<procedure 7ffff00570a0 at ice-9/eval.scm:282:?> ?))
   217:50  9 (lp (#<procedure 7ffff0057080 at ice-9/eval.scm:282:?> ?))
   217:50  8 (lp (#<procedure 7ffff0057060 at ice-9/eval.scm:282:?> ?))
   217:50  7 (lp (#<procedure 7ffff0057040 at ice-9/eval.scm:282:?> ?))
   217:50  6 (lp (#<procedure 7ffff0057020 at ice-9/eval.scm:282:?> ?))
   217:33  5 (lp (#<procedure 7fffeef7f8e0 at ice-9/eval.scm:191:?> ?))
   191:35  4 (_ #f)
   196:43  3 (_ #f)
   196:35  2 (_ #f)
   223:20  1 (proc #<directory (guile-user) 7fffeffcfc80>)
In unknown file:
           0 (%resolve-variable (7 . %build-inputs) #<directory (gui?>)

ERROR: In procedure %resolve-variable:
Unbound variable: %build-inputs
```

Not sure where it comes from.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#61732; Package guix. (Thu, 23 Feb 2023 12:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 61732 <at> debbugs.gnu.org (full text, mbox):

From: "Wicki Gabriel (wicg)" <wicg <at> zhaw.ch>
To: "61732 <at> debbugs.gnu.org" <61732 <at> debbugs.gnu.org>
Subject: "Unbound variable: %build-inputs" in Cross-Compilation Context
Date: Thu, 23 Feb 2023 12:56:43 +0000
[Message part 1 (text/plain, inline)]
Sorry, that last email was sent a little too early.


I tried said cross-compilation with this command: `guix build perl-gd --target=aarch64-linux-gnu` and could provoke the same error message also with perl-commonmark​.

It also happens with riscv64-linux-gnu and arm-linux-gnueabihf as target (i haven't tested all of them, though).
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#61732; Package guix. (Mon, 27 Feb 2023 21:18:01 GMT) Full text and rfc822 format available.

Message #11 received at 61732 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "Wicki Gabriel (wicg)" <wicg <at> zhaw.ch>
Cc: "61732 <at> debbugs.gnu.org" <61732 <at> debbugs.gnu.org>
Subject: Re: bug#61732: "Unbound variable: %build-inputs
Date: Mon, 27 Feb 2023 22:17:14 +0100
Hi Wicki,

"Wicki Gabriel (wicg)" <wicg <at> zhaw.ch> skribis:

> Sorry, that last email was sent a little too early.
>
>
> I tried said cross-compilation with this command: `guix build perl-gd --target=aarch64-linux-gnu` and could provoke the same error message also with perl-commonmark​.
>
> It also happens with riscv64-linux-gnu and arm-linux-gnueabihf as target (i haven't tested all of them, though).

This issue was fixed (or rather sidestepped) a few days ago with this
commit:

  d00c2e9c2b * services: console-font, kmscon: Refer to native 'font-gnu-unifont' builds.

Assuming you stumbled upon this error while cross-building a system
image with ‘guix system image --target=aarch64-linux-gnu’ or similar,
the problem is now solved.

If you really want to cross-build ‘perl-gd’, then we’re not there yet
but I think Maxim made some progress on this front.

HTH,
Ludo’.




This bug report was last modified 1 year and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.