aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-04-08 18:37:59 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-04-08 21:42:59 +0100
commitbe8d5f99f50cf282c21632e60fe1d8857bb5a554 (patch)
tree821d024afa6fa34cb21a13efb7a828a857e21620
parente41e356633aef69822fb63329d812a0b20057ded (diff)
downloadgcc-be8d5f99f50cf282c21632e60fe1d8857bb5a554.zip
gcc-be8d5f99f50cf282c21632e60fe1d8857bb5a554.tar.gz
gcc-be8d5f99f50cf282c21632e60fe1d8857bb5a554.tar.bz2
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.
-rw-r--r--libstdc++-v3/doc/Makefile.am1
-rw-r--r--libstdc++-v3/doc/Makefile.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/doc/Makefile.am b/libstdc++-v3/doc/Makefile.am
index 2e0eb18..cb9b68f 100644
--- a/libstdc++-v3/doc/Makefile.am
+++ b/libstdc++-v3/doc/Makefile.am
@@ -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
diff --git a/libstdc++-v3/doc/Makefile.in b/libstdc++-v3/doc/Makefile.in
index 7681908..956b641 100644
--- a/libstdc++-v3/doc/Makefile.in
+++ b/libstdc++-v3/doc/Makefile.in
@@ -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