On Sun, Feb 22, 2026 at 01:41:28PM +0800, Qian Yun wrote:
> Hi Peter, and to fricas-devel:
>
> I've tried: aldor can be built successfully with this chunk of code
> removed from aldor/lib/ax0/src/axext_l.lsp;
> and fricas-aldor interface can be built successfully as well,
> with this code removed from src/interp/foam_l.lisp.
>
> So Waldek, can I do the clean up then?
>
<snip>
> > > > (eval-when (:execute :load-toplevel)
> > > > (DEFCONST |G-axclique_string_305639517| (cons #'H-String nil))
> > > > (DEFCONST |G-axclique_integer_685864888| (cons #'H-integer nil))
> > > > (DEFCONST |G-axclique_error_011667951| (cons #'H-error nil))
> > > > )
<snip>
> > > > debugger invoked on a DEFCONSTANT-UNEQL in thread
> > > > #<THREAD tid=11938 "main thread" RUNNING {1200BE8003}>:
> > > > The constant |G-axclique_string_305639517| is being redefined (from
> > > > (#<FUNCTION H-STRING>) to (#<FUNCTION H-STRING>))
AFAICS G-axclique_string_305639517 and the other two are defined in
Aldor sources, so presumably normally they will be provided by Aldor.
It is not clear if we need our own definitions.
However, the error deserves deeper investigation. Namely, we use
DEFCONST, which is our macro which is supposed to sove problem
with redefinition of constants: if you check you will see that
DEFCONST executes DEFCONSTANT only when symbol is not bound.
In other words, DEFCONST is supposed to define constant only
when it is not already defined.
So how exactly do you trigger the error? Doing
)read foam_l.lisp
twice works for me when using Debian sbcl 2.2.9.
BTW: Plain DEFCONSTANT would fail in old sbcl versions, that is
why we have DEFCONST.
--
Waldek Hebisch