bug#61732: "Unbound variable: %build-inputs

2023-02-27 Thread Ludovic Courtès
Hi Wicki,

"Wicki Gabriel (wicg)"  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’.





bug#61732: "Unbound variable: %build-inputs" in Cross-Compilation Context

2023-02-23 Thread Wicki Gabriel (wicg)
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).


bug#61732: "Unbound variable: %build-inputs

2023-02-23 Thread Wicki Gabriel (wicg)
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 (# ?))
   217:50 12 (lp (# ?))
   217:50 11 (lp (# ?))
   217:50 10 (lp (# ?))
   217:50  9 (lp (# ?))
   217:50  8 (lp (# ?))
   217:50  7 (lp (# ?))
   217:50  6 (lp (# ?))
   217:33  5 (lp (# ?))
   191:35  4 (_ #f)
   196:43  3 (_ #f)
   196:35  2 (_ #f)
   223:20  1 (proc #)
In unknown file:
   0 (%resolve-variable (7 . %build-inputs) #)

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

Not sure where it comes from.