Hello Qian,
I don't know if it is the correct way but it fixes this issue. To use
my previous example:
========================
)compile OMPKG.spad
Compiling FriCAS source code from file
/home/greg/Git/jlfricas/src/algebra/OMPKG.spad using old system
compiler.
OMPKG abbreviates package OpenMathPackage
------------------------------------------------------------------------
initializing NRLIB OMPKG for OpenMathPackage
compiling into NRLIB OMPKG
;;; *** |OpenMathPackage| REDEFINED
;;; *** |OpenMathPackage| REDEFINED
Time: 0 SEC.
Cumulative Statistics for Constructor OpenMathPackage
Time: 0 seconds
finalizing NRLIB OMPKG
; compiling file
"/home/greg/Git/jlfricas/src/algebra/OMPKG.NRLIB/OMPKG.lsp" (written
27 DEC 2023 09:34:40 AM):
; wrote /home/greg/Git/jlfricas/src/algebra/OMPKG.NRLIB/OMPKG.fasl
; compilation finished in 0:00:00.000
========================
Thanks, this was really annoying, especially when you need to look at
the output during compilation, say, for personal stuff.
Regards,
- Greg
Le mer. 27 déc. 2023 à 11:23, Qian Yun <[email protected]> a écrit :
>
> I believe this patch is the correct way to fix this patch.
>
> - Qian
>
> diff --git a/src/doc/Makefile.in b/src/doc/Makefile.in
> index e968affd..542f6cba 100644
> --- a/src/doc/Makefile.in
> +++ b/src/doc/Makefile.in
> @@ -255,7 +255,7 @@ GEN_HTFILES = xmpexp coverex gloss
> # The reason for this delayed execution is that generation of the .xpm
> # files in *.VIEW/ without the xvfb-run program will pop up image
> # windows in X and will make working during compilation impossible.
> -# The intro.htex and util.ht files are not relevant for image generation.
> +# The util.ht file is used during generation of interpsys.
> VIEWPORTFILES = coverex \
> $(shell grep -lRe 'graphpaste{\|spadgraph{' ${srcdir}/ht/*
> ${srcdir}/htex/* \
> | sed 's,.*/,,;s,\..*,,' \
> diff --git a/src/interp/Makefile.in b/src/interp/Makefile.in
> index 0576330a..66e289a3 100644
> --- a/src/interp/Makefile.in
> +++ b/src/interp/Makefile.in
> @@ -132,6 +132,7 @@ makeint.lisp: ../boot/lobj_lst
> ' (quote (' >> makeint.lisp
> cat ../boot/lobj_lst >> makeint.lisp
> echo '))))' >> makeint.lisp
> + echo '(initroot)' >> makeint.lisp
> echo '(build-interpsys' \
> '(quote ($(patsubst %, "%", ${ALL_OBJS}))))' >> makeint.lisp
> @ echo '(in-package "BOOT")' >> makeint.lisp
>
>
> On 12/27/23 08:56, Qian Yun wrote:
> > A quick and dirty fix is:
> >
> > =====
> > diff --git a/src/doc/Makefile.in b/src/doc/Makefile.in
> > index e968affd..542f6cba 100644
> > --- a/src/doc/Makefile.in
> > +++ b/src/doc/Makefile.in
> > @@ -255,7 +255,7 @@ GEN_HTFILES = xmpexp coverex gloss
> > # The reason for this delayed execution is that generation of the .xpm
> > # files in *.VIEW/ without the xvfb-run program will pop up image
> > # windows in X and will make working during compilation impossible.
> > -# The intro.htex and util.ht files are not relevant for image generation.
> > +# The util.ht file is used during generation of interpsys.
> > VIEWPORTFILES = coverex \
> > $(shell grep -lRe 'graphpaste{\|spadgraph{' ${srcdir}/ht/*
> > ${srcdir}/htex/* \
> > | sed 's,.*/,,;s,\..*,,' \
> > diff --git a/src/interp/htcheck.boot b/src/interp/htcheck.boot
> > index e3f78805..bc2d5596 100644
> > --- a/src/interp/htcheck.boot
> > +++ b/src/interp/htcheck.boot
> > @@ -80,7 +80,8 @@ $primitiveHtCommands := '(
> >
> > buildHtMacroTable() ==
> > $htMacroTable := MAKE_HASHTABLE('EQUAL)
> > - fn := CONCAT($spadroot, '"/share/hypertex/pages/util.ht")
> > + -- this is called once by bootsys to generate interpsys
> > + fn := CONCAT(getEnv '"FRICAS", '"/share/hypertex/pages/util.ht")
> > if PROBE_-FILE(fn) then
> > instream := MAKE_INSTREAM(fn)
> > while not EOFP instream repeat
> > =====
> >
> > The reason is that '|$spadroot|' is not correct when dumping
> > interpsys by bootsys.
> >
> > Let's see if there's a better way.
> >
> > - Qian
> >
> > On 12/26/23 21:49, Waldek Hebisch wrote:
> >> On Tue, Dec 26, 2023 at 08:14:28AM +0100, Grégory Vanuxem wrote:
> >>> Hello,
> >>>
> >>> During FriCAS compilation of the Algebra in a terminal we can see
> >>> "Unexpected HT command: \spad" displayed numerous times. Any idea why
> >>> this command
> >>> seems no longer supported. Is this a bug or a step in the process of
> >>> removing it? I may be wrong but I would not be surprised if it was
> >>> used to display the brace enclosed content in italic. Example:
> >>>
> >>> --->-->OpenMathPackage((OMsupportsSymbol? ((Boolean) (String)
> >>> (String)))): Unexpected HT command: \spad
> >>> --->-->OpenMathPackage((OMsupportsSymbol? ((Boolean) (String)
> >>> (String)))): Unexpected HT command: \spad
> >>> --->-->OpenMathPackage((OMsupportsSymbol? ((Boolean) (String)
> >>> (String)))): Unexpected HT command: \spad
> >>
> >> This is recent regression caused by commit "Use '|$spadroot|' instead
> >> of '(|getEnv| "FRICAS")'" (4d47c00545dc9aa82ae866adb46332a654348bc4).
> >>
> >> We need to make sure that FriCAS can find 'util.ht' during build.
> >>
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/fricas-devel/de425311-7075-48e2-b52f-38d310fbdc7a%40gmail.com.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAHnU2danD0s8Yd9aYTLtUp3_7KPd_gtuzBmOiM0pNDYbVj5rUw%40mail.gmail.com.