From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 865F83857033; Thu, 8 Apr 2021 20:43:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 865F83857033 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-8068] libstdc++: Improve error reporting if PDF generation fails X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: e41e356633aef69822fb63329d812a0b20057ded X-Git-Newrev: be8d5f99f50cf282c21632e60fe1d8857bb5a554 Message-Id: <20210408204319.865F83857033@sourceware.org> Date: Thu, 8 Apr 2021 20:43:19 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 20:43:19 -0000 https://gcc.gnu.org/g:be8d5f99f50cf282c21632e60fe1d8857bb5a554 commit r11-8068-gbe8d5f99f50cf282c21632e60fe1d8857bb5a554 Author: Jonathan Wakely Date: Thu Apr 8 18:37:59 2021 +0100 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. Diff: --- libstdc++-v3/doc/Makefile.am | 1 + libstdc++-v3/doc/Makefile.in | 1 + 2 files changed, 2 insertions(+) diff --git a/libstdc++-v3/doc/Makefile.am b/libstdc++-v3/doc/Makefile.am index 2e0eb187f91..cb9b68ffaea 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 7681908103a..956b641c1aa 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