Subject: bug#55833: cross-base error: wrong type argument in position 1

From: Maxime Devos <[email-masked]>
Date: Tue, 07 Jun 2022 20:33:58 +0200

Ekaitz Zarraga schreef op di 07-06-2022 om 15:43 [+0000]:
> I think the error was introduced in the commit b55310603f0df7d5ae02d47cb8d4be58bf1d41ca but I can't really explain what's happening.

I guess it's due to the introduction of

  lookup-platform-by-target-or-system

Proposed solution:

  * rename platform-linux-architecture to
    '%platform-linux-architecture'
    and define a wrapper 'platform-linux-architecture' displaying
    a proper error message ‘unsupported target’ or such.

and

  * use "riscv64-linux-gnu" instead of "riscv64-unknown-linux-gnu"
    (as expected by (guix platforms riscv)).

Greetings,
Maxime.