This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.texi does not compile
On Sat, Apr 29, 2000 at 06:12:44PM -0400, Eli Zaretskii wrote:
> > Date: Sat, 29 Apr 2000 10:42:10 +0200
> > From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
> >
> > It seems that your change
> >
> > Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
> >
> > * gcc.texi: Fixes for makeinfo 4.0 --html.
> >
> > broke compilation of gcc.texi with the included texinfo. I get
> >
> > Making info file `gcc.info' from `/usr/src/egcs/gcc/gcc.texi'.
> > /usr/src/egcs/gcc/gcc.texi:187: No matching `@end ifnottex'.
> > /usr/src/egcs/gcc/gcc.texi:212: Unmatched `@end'.
> > makeinfo: Removing output file `gcc.info' due to errors; use --force to preserve.
> >
> > makeinfo --version says
> > makeinfo (GNU texinfo 3.12) 1.68
>
> I'm guessing that this problem is not because the change in gcc.texi
> is buggy, but because it reveals a bug in makeinfo 3.12, whereby
> @ifnottex needed the matching @end ifnottex to be in the same node!
>
> We had a similar problem in the GDB docs. Since we wanted to use
> ifnottex (to produce the HTML version) *and* didn't want to force
> users to install Texinfo 4.0, the only solution we could come up with
> was to duplicate the offending portion of the Texinfo sources: once
> with @ifinfo and another one with @ifhtml. Ugly, but effective.
Thanks, it's a much better way to solve it than what I had (move the
@ifnottex down slightly).
--
Marc Espie
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'