GNU bug report logs -
#55833
cross-base error: wrong type argument in position 1
Previous Next
Full log
Message #14 received at 55833 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Josselin Poiret schreef op wo 08-06-2022 om 12:35 [+0200]:
> > * 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)).
>
> I don't think we should deviate from the usual behaviour of a
> procedure
> returning #f it wasn't able to find the thing it was searching for.
The proposal was to modify platform-linux-architecture, which doesn't
search for anything and doesn't return #false. It already throws an
exception:
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1
> (expecting struct): #f
The proposal is to make the error message clearer, by raising an
exception ourselves instead of leaving it to struct-vtable.
(My proposal might have been confusing due to the mention of
lookup-platform-by-target-or-system which doesn't seem relevant on
second sight?)
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.