[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mes] Compilation error with mescc - unhandled exception:not-a-n
From: |
Danny Milosavljevic |
Subject: |
Re: [bug-mes] Compilation error with mescc - unhandled exception:not-a-number:(#\h) |
Date: |
Thu, 30 May 2019 22:13:32 +0200 |
Hi Janneke!
On Thu, 30 May 2019 14:48:05 +0200
Jan Nieuwenhuizen <address@hidden> wrote:
> Danny Milosavljevic writes:
>
> Hi Danny!
>
> > I've been trying to fix some test failures on wip-arm, and one that I
> > can't fix says:
>
> I'm looking into it, have you tried with MES=guile SCHEME=guile? That
> would possibly give us a better backtrace :-)
>
> > $ cat mescc-lib/lib/tests/scaffold/55-char-array.log
> > less_punhandled exception:not-a-number:(#\h)
>
> It looks as if there's a typo somewhere, this
>
> > #<#<<record-type> <frame> (procedure)> <frame> (lambda (r) (if
> > (#<variable <> v 0) (#<variable list> (#<variable list> (#<variable list>
> > (quote #:immediate1) (#<variable -> -1 v)) (#<variable string-append>
> > mvn____% r ,$i8))) (#<variable list> (#<variable list> (#<variable list>
> > (quote #:immediate1) v) (#<variable string-append> mov____$i8,% r)))))>
>
> suggests that the `v' passed to `armv4:value->r' is a character and not
> a number.
>
> > Hmm?
>
> ...looking further into value->r usage
>
> module/mescc/compile.scm
> --8<---------------cut here---------------start------------->8---
> (,char (guard (char? char))
> (let ((info (allocate-register info)))
> (append-text info (wrap-as (as info 'value->r char)))))
>
> --8<---------------cut here---------------end--------------->8---
>
> this one looks suspicious; could it be that you're hit by this? Looks
> like abug.
>
> Let me know if you need more help!
>
> janneke
>
--
W: https://www.friendly-machines.at/
pgpjjT_3j6XW5.pgp
Description: OpenPGP digital signature