I work on gdb, which uses texinfo documentation. I was writing a patch
to gdb.texinfo but my patch had an error. I always build out-of-tree
(not in srcdir).
I'm using the makeinfo shipped with Fedora 40:
prentzel. makeinfo --version
texi2any (GNU texinfo) 7.1
Here is the output from the build log:
make[4]: Entering directory '/home/tromey/gdb/build/gdb/doc'
makeinfo --split-size=5000000 --split-size=5000000 -DHAVE_MAKEINFO_CLICK -I
../../../binutils-gdb/gdb/doc/../../readline/readline/doc -I
../../../binutils-gdb/gdb/doc/../mi -I ../../../binutils-gdb/gdb/doc \
-o gdb.info ../../../binutils-gdb/gdb/doc/gdb.texinfo
gdb.texinfo:3941: unknown command `defn'
gdb.texinfo:3941: misplaced {
gdb.texinfo:3941: misplaced }
gdb.texinfo:3941: unknown command `defn'
gdb.texinfo:3941: misplaced {
gdb.texinfo:3941: misplaced }
Note that the error messages refer to 'gdb.texinfo', but the command
line uses a longer path to the source file instead.
This difference makes it so that next-error in Emacs does not find
gdb.texinfo.
I think the full path to the source file should be printed in errors.
thanks,
Tom