"Unbound variable: %build-inputs

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Wicki Gabriel (wicg)
Owner
unassigned
Submitted by
Wicki Gabriel (wicg)
Severity
normal
W
W
Wicki Gabriel (wicg) wrote on 23 Feb 2023 13:42
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
ZR0P278MB02689D6F93588931F66C370EC1AB9@ZR0P278MB0268.CHEP278.PROD.OUTLOOK.COM
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.
Attachment: file
W
W
Wicki Gabriel (wicg) wrote on 23 Feb 2023 13:56
"Unbound variable: %build-inputs" in Cross-Compilation Context
(name . 61732@debbugs.gnu.org)(address . 61732@debbugs.gnu.org)
ZR0P278MB02681231254E2A24B410623DC1AB9@ZR0P278MB0268.CHEP278.PROD.OUTLOOK.COM
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).
Attachment: file
L
L
Ludovic Courtès wrote on 27 Feb 2023 22:17
Re: bug#61732: "Unbound variable: %build-inputs
(name . Wicki Gabriel (wicg))(address . wicg@zhaw.ch)(name . 61732@debbugs.gnu.org)(address . 61732@debbugs.gnu.org)
878rgihkpx.fsf_-_@gnu.org
Hi Wicki,

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

Toggle quote (7 lines)
> 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’.
?