rhaberkorn / sciteco

Advanced TECO dialect and interactive screen editor based on Scintilla
https://rhaberkorn.github.io/sciteco/
GNU General Public License v3.0
48 stars 6 forks source link

Build error #22

Closed blakemcbride closed 1 month ago

blakemcbride commented 1 month ago

When I build the current verion of Sciteco I get en error message about an invalid q-register:

$ make
[...]
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco grosciteco.tes.1 >grosciteco.tes.1.intermediate
../src/sciteco -m -- ./grosciteco.tes \
                grosciteco.tes.1.woman grosciteco.tes.1.intermediate
Info: Added new unnamed file to ring.
Info: Added file "grosciteco.tes.1.intermediate" to ring
Error: Invalid Q-Register "glyphs.aq"
Info: #0 in Q-Register "format" at 7074 (405:21)
Info: #1 in file "./grosciteco.tes" at 5757 (274:10)
make[2]: *** [GNUmakefile:829: grosciteco.tes.1.woman] Error 1
rm sciteco.7.in grosciteco.tes.1.intermediate
make[2]: Leaving directory '/home/blake/Backup/sciteco.git/doc'
make[1]: *** [GNUmakefile:514: all-recursive] Error 1
make[1]: Leaving directory '/home/blake/Backup/sciteco.git'
make: *** [GNUmakefile:423: all] Error 2
rhaberkorn commented 1 month ago

Thanks for reporting this. It could be fixed now. You can close the ticket if this is the case.

The thing is that different groff versions generate different glyph references for the same document (C request in intermediate output). And I of course didn't include all possible values in the grosciteco postprocessor, but only those that are actually required for the documents processed. So this is probably not the last problem of this kind.

blakemcbride commented 1 month ago

Thanks but same error after pull and rebuild from scratch:

$ make
[...]
Info: Added new unnamed file to ring.
Info: Added file "sciteco.7.in" to ring
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco grosciteco.tes.1 >grosciteco.tes.1.intermediate
../src/sciteco -m -- ./grosciteco.tes \
                grosciteco.tes.1.woman grosciteco.tes.1.intermediate
Info: Added new unnamed file to ring.
Info: Added file "grosciteco.tes.1.intermediate" to ring
Error: Invalid Q-Register "glyphs.ha"
Info: #0 in Q-Register "format" at 7074 (405:21)
Info: #1 in file "./grosciteco.tes" at 5772 (275:10)
make[2]: *** [GNUmakefile:826: grosciteco.tes.1.woman] Error 1
rm sciteco.7.in grosciteco.tes.1.intermediate
make[2]: Leaving directory '/home/blake/Backup/sciteco.git/doc'
make[1]: *** [GNUmakefile:511: all-recursive] Error 1
make[1]: Leaving directory '/home/blake/Backup/sciteco.git'
make: *** [GNUmakefile:420: all] Error 2
$
rhaberkorn commented 1 month ago

Try again. No need to rebuild from scratch. If it still doesn't work, please run the following command:

make -C doc grosciteco.tes.1.intermediate tedoc.tes.1.intermediate sciteco.1.intermediate sciteco.7.intermediate

And send me all of the doc/*.intermediate files.

What's your Groff version (groff --version)? It's strange because I do test on a wide range of Groff versions.

blakemcbride commented 1 month ago

Here is what I got:

$ make
[...]
../src/sciteco-minimal -e $'EBsciteco.7.in\e <FS@PACKAGE^Q@\esciteco\e;>J <FS@PACKAGE_NAME^Q@\eSciTECO\e;>J <FS@PACKAGE_VERSION^Q@\e2.1.0\e;>J <FS@PACKAGE_URL^Q@\ehttps://github.com/rhaberkorn/sciteco\e;>J <FS@bindir^Q@\e/usr/local/bin\e;>J <FS@libexecdir^Q@\e/usr/local/libexec\e;>J <FS@scitecodatadir^Q@\e/usr/local/share/sciteco\e;>J <FS@scitecolibdir^Q@\e/usr/local/share/sciteco/lib\e;>J <FS@TECO_INTEGER^Q@\e64\e;>J <FS@DATE^Q@\e11 Oct 2024\e;>J EWsciteco.7\e'
Info: Added new unnamed file to ring.
Info: Added file "sciteco.7.in" to ring
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco grosciteco.tes.1 >grosciteco.tes.1.intermediate
../src/sciteco -m -- ./grosciteco.tes \
                grosciteco.tes.1.woman grosciteco.tes.1.intermediate
Info: Added new unnamed file to ring.
Info: Added file "grosciteco.tes.1.intermediate" to ring
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco tedoc.tes.1 >tedoc.tes.1.intermediate
../src/sciteco -m -- ./grosciteco.tes \
                tedoc.tes.1.woman tedoc.tes.1.intermediate
Info: Added new unnamed file to ring.
Info: Added file "tedoc.tes.1.intermediate" to ring
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco sciteco.1 >sciteco.1.intermediate
../src/sciteco -m -- ./grosciteco.tes \
                sciteco.1.woman sciteco.1.intermediate
Info: Added new unnamed file to ring.
Info: Added file "sciteco.1.intermediate" to ring
Error: Invalid Q-Register "glyphs.ti"
Info: #0 in Q-Register "format" at 7074 (405:21)
Info: #1 in file "./grosciteco.tes" at 5787 (276:10)
make[2]: *** [GNUmakefile:826: sciteco.1.woman] Error 1
rm sciteco.1.intermediate sciteco.7.in tedoc.tes.1.intermediate grosciteco.tes.1.intermediate
make[2]: Leaving directory '/home/blake/Backup/sciteco.git/doc'
make[1]: *** [GNUmakefile:511: all-recursive] Error 1
make[1]: Leaving directory '/home/blake/Backup/sciteco.git'
make: *** [GNUmakefile:420: all] Error 2
$

I uploaded the file you requested at: intermediate.tar.gz

My version of groff is 1.23.0

(I am on Fedora 40)

Thanks!

rhaberkorn commented 1 month ago

Okay, now it should really compile.

PS: I have almost the same Groff version. No idea why it generates different intermediate output on your system.

blakemcbride commented 1 month ago

Thanks. It builds now. However, I am seeing a lot of the following warnings:

$ make
[...]
groff -wall -Z -Kutf-8 -Tutf8 -t -man -M. -msciteco sciteco.7 >sciteco.7.intermediate
troff:sciteco.7:417: warning [p 2, 3.7i, div '3tbd1,0', 0.0i]: cannot break line
troff:sciteco.7:417: warning [p 2, 3.7i, div '3tbd1,0', 0.2i]: cannot break line
troff:sciteco.7:419: warning [p 2, 3.7i, div '3tbd1,3', 0.0i]: cannot break line
troff:sciteco.7:421: warning [p 2, 3.7i, div '3tbd1,4', 0.2i]: cannot adjust line
troff:sciteco.7:424: warning [p 2, 3.7i, div '3tbd1,4', 1.5i]: cannot adjust line
troff:sciteco.7:424: warning [p 2, 3.7i, div '3tbd1,4', 1.7i]: cannot adjust line
troff:sciteco.7:425: warning [p 2, 3.7i, div '3tbd1,4', 2.2i]: cannot adjust line
troff:sciteco.7:426: warning [p 2, 3.7i, div '3tbd1,4', 2.5i]: cannot adjust line
troff:sciteco.7:426: warning [p 2, 3.7i, div '3tbd1,4', 2.7i]: cannot adjust line
troff:sciteco.7:426: warning [p 2, 3.7i, div '3tbd1,4', 2.8i]: cannot adjust line
troff:sciteco.7:430: warning [p 2, 3.7i, div '3tbd2,0', 0.0i]: cannot adjust line
troff:sciteco.7:430: warning [p 2, 3.7i, div '3tbd2,0', 0.2i]: cannot break line
troff:sciteco.7:430: warning [p 2, 3.7i, div '3tbd2,0', 0.3i]: cannot adjust line
troff:sciteco.7:430: warning [p 2, 3.7i, div '3tbd2,0', 0.5i]: cannot break line
troff:sciteco.7:432: warning [p 2, 3.7i, div '3tbd2,3', 0.0i]: cannot adjust line
troff:sciteco.7:432: warning [p 2, 3.7i, div '3tbd2,3', 0.2i]: cannot adjust line
troff:sciteco.7:432: warning [p 2, 3.7i, div '3tbd2,3', 0.3i]: cannot break line
troff:sciteco.7:434: warning [p 2, 3.7i, div '3tbd2,3', 0.8i]: cannot adjust line
troff:sciteco.7:434: warning [p 2, 3.7i, div '3tbd2,3', 1.0i]: cannot adjust line
troff:sciteco.7:436: warning [p 2, 3.7i, div '3tbd2,4', 0.3i]: cannot break line
troff:sciteco.7:460: warning [p 2, 3.7i, div '3tbd3,4', 2.3i]: cannot adjust line
troff:sciteco.7:460: warning [p 2, 3.7i, div '3tbd3,4', 2.5i]: cannot adjust line
troff:sciteco.7:461: warning [p 2, 3.7i, div '3tbd3,4', 2.8i]: cannot break line
troff:sciteco.7:470: warning [p 2, 3.7i, div '3tbd4,3', 0.2i]: cannot adjust line
troff:sciteco.7:475: warning [p 2, 3.7i, div '3tbd5,0', 0.0i]: cannot adjust line
troff:sciteco.7:479: warning [p 2, 3.7i, div '3tbd5,3', 0.2i]: cannot adjust line
troff:sciteco.7:486: warning [p 2, 3.7i, div '3tbd6,0', 0.2i]: cannot break line
troff:sciteco.7:490: warning [p 2, 3.7i, div '3tbd6,3', 0.3i]: cannot adjust line
troff:sciteco.7:499: warning [p 2, 3.7i, div '3tbd7,3', 0.3i]: cannot adjust line
troff:sciteco.7:501: warning [p 2, 3.7i, div '3tbd7,4', 0.3i]: cannot adjust line
troff:sciteco.7:509: warning [p 2, 3.7i, div '3tbd8,3', 0.2i]: cannot adjust line
troff:sciteco.7:515: warning [p 2, 3.7i, div '3tbd9,0', 0.0i]: cannot adjust line
troff:sciteco.7:519: warning [p 2, 3.7i, div '3tbd9,3', 0.3i]: cannot adjust line
troff:sciteco.7:527: warning [p 2, 3.7i, div '3tbd10,3', 0.2i]: cannot adjust line
troff:sciteco.7:530: warning [p 2, 3.7i, div '3tbd10,4', 0.7i]: cannot adjust line
troff:sciteco.7:536: warning [p 2, 3.7i, div '3tbd11,3', 0.2i]: cannot adjust line
troff:sciteco.7:548: warning [p 2, 3.7i, div '3tbd12,3', 0.2i]: cannot adjust line
troff:sciteco.7:553: warning [p 2, 3.7i, div '3tbd13,0', 0.0i]: cannot adjust line
troff:sciteco.7:557: warning [p 2, 3.7i, div '3tbd13,3', 0.2i]: cannot adjust line
troff:sciteco.7:560: warning [p 2, 3.7i, div '3tbd13,4', 0.5i]: cannot adjust line
troff:sciteco.7:564: warning [p 2, 3.7i, div '3tbd14,0', 0.0i]: cannot adjust line
troff:sciteco.7:564: warning [p 2, 3.7i, div '3tbd14,0', 0.2i]: cannot adjust line
troff:sciteco.7:564: warning [p 2, 3.7i, div '3tbd14,0', 0.3i]: cannot adjust line
troff:sciteco.7:566: warning [p 2, 3.7i, div '3tbd14,3', 0.0i]: cannot adjust line
troff:sciteco.7:571: warning [p 2, 3.7i, div '3tbd14,4', 1.8i]: cannot adjust line
troff:sciteco.7:574: warning [p 2, 3.7i, div '3tbd14,4', 3.3i]: cannot adjust line
troff:sciteco.7:574: warning [p 2, 3.7i, div '3tbd14,4', 3.5i]: cannot adjust line
troff:sciteco.7:577: warning [p 2, 3.7i, div '3tbd14,4', 4.5i]: cannot adjust line
troff:sciteco.7:582: warning [p 2, 3.7i, div '3tbd15,0', 0.0i]: cannot adjust line
troff:sciteco.7:582: warning [p 2, 3.7i, div '3tbd15,0', 0.2i]: cannot adjust line
troff:sciteco.7:586: warning [p 2, 3.7i, div '3tbd15,3', 0.2i]: cannot adjust line
troff:sciteco.7:595: warning [p 2, 3.7i, div '3tbd16,3', 0.2i]: cannot adjust line
troff:sciteco.7:605: warning [p 2, 3.7i, div '3tbd18,0', 0.0i]: cannot adjust line
troff:sciteco.7:605: warning [p 2, 3.7i, div '3tbd18,0', 0.2i]: cannot adjust line
troff:sciteco.7:607: warning [p 2, 3.7i, div '3tbd18,3', 0.0i]: cannot adjust line
troff:sciteco.7:612: warning [p 2, 3.7i, div '3tbd19,0', 0.0i]: cannot adjust line
troff:sciteco.7:612: warning [p 2, 3.7i, div '3tbd19,0', 0.2i]: cannot adjust line
troff:sciteco.7:622: warning [p 2, 3.7i, div '3tbd20,0', 0.0i]: cannot adjust line
troff:sciteco.7:622: warning [p 2, 3.7i, div '3tbd20,0', 0.2i]: cannot adjust line
troff:sciteco.7:631: warning [p 2, 3.7i, div '3tbd21,0', 0.0i]: cannot adjust line
troff:sciteco.7:631: warning [p 2, 3.7i, div '3tbd21,0', 0.2i]: cannot adjust line
troff:sciteco.7:638: warning [p 2, 3.7i, div '3tbd21,4', 1.3i]: cannot adjust line
troff:sciteco.7:653: warning [p 2, 3.7i, div '3tbd23,0', 0.0i]: cannot adjust line
troff:sciteco.7:676: warning [p 2, 3.7i, div '3tbd24,4', 0.7i]: cannot adjust line
troff:sciteco.7:677: warning [p 2, 3.7i, div '3tbd24,4', 0.8i]: cannot adjust line
troff:sciteco.7:678: warning [p 2, 3.7i, div '3tbd24,4', 1.5i]: cannot adjust line
rhaberkorn commented 1 month ago

However, I am seeing a lot of the following warnings

They have always been there. I believe that some of the tables in sciteco(7) are simply too large when rendered in 80 columns. Nothing critical, though.

blakemcbride commented 1 month ago

Thanks a lot!