libstdc++: Improve error reporting if PDF generation fails

If pdflatex runs out of memory the build fails with no hint what's
wrong. This adds another grep command to the makefile so that an
out-of-memory error will result in more information being shown.

As suggested in https://bugzilla.redhat.com/show_bug.cgi?id=1841056
using lualatex can be used as a workaround.

libstdc++-v3/ChangeLog:

	* doc/Makefile.am (stamp-pdf-doxygen): Also grep for
	out-of-memory error in log file.
	* doc/Makefile.in: Regenerate.
This commit is contained in:
Jonathan Wakely 2021-04-08 18:37:59 +01:00
parent e41e356633
commit be8d5f99f5
2 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,7 @@ stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
else \
echo "... error"; \
grep -F 'LaTeX Error' ${doxygen_outdir}/latex/refman.log; \
grep -F 'TeX capacity exceeded, sorry' ${doxygen_outdir}/latex/refman.log; \
exit 12; \
fi
$(STAMP) stamp-pdf-doxygen

View File

@ -958,6 +958,7 @@ stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
else \
echo "... error"; \
grep -F 'LaTeX Error' ${doxygen_outdir}/latex/refman.log; \
grep -F 'TeX capacity exceeded, sorry' ${doxygen_outdir}/latex/refman.log; \
exit 12; \
fi
$(STAMP) stamp-pdf-doxygen