]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Improve error reporting if PDF generation fails
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 Apr 2021 17:37:59 +0000 (18:37 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Apr 2021 20:42:59 +0000 (21:42 +0100)
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.

libstdc++-v3/doc/Makefile.am
libstdc++-v3/doc/Makefile.in

index 2e0eb187f912531a81d01fac7ca5e70e8aff28f6..cb9b68ffaeaff7dbd277f81ba914d018ba82d41a 100644 (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
index 7681908103ab45d2579d4c998e2a188ace7ec399..956b641c1aaa1874fc9899b2bc15ed67170ac12d 100644 (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