public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin
@ 2021-10-19  1:43 egallager at gcc dot gnu.org
  2021-10-19  6:49 ` [Bug jit/102824] building pdf/dvi documentation for libgccjit fails iains at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-10-19  1:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

            Bug ID: 102824
           Summary: building pdf/dvi documentation for libgccjit fails on
                    darwin
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
                CC: iains at gcc dot gnu.org
  Target Milestone: ---
             Build: darwin

Running `make pdf` fails in gcc/jit for me with the following error:

!pdfTeX error: pdfetex: cannot find image file libgccjit-figures/sum-of-squares
1.
 ==> Fatal error occurred, no output PDF file produced!
/opt/iains/x86_64-apple-darwin19/gcc-7-5-toolchain/bin/texi2dvi: pdfetex exited
with bad status, quitting.
make[2]: *** [../../gcc/jit/Make-lang.in:283: doc/libgccjit.pdf] Error 1
make[2]: Leaving directory
'/Users/ericgallager/gcc_newgit/abcdefghijklmnopqrstuvwxyz_01234567890.build/gcc'
make[1]: *** [Makefile:5361: pdf-gcc] Error 1
make[1]: Leaving directory
'/Users/ericgallager/gcc_newgit/abcdefghijklmnopqrstuvwxyz_01234567890.build'
make: *** [Makefile:1280: do-pdf] Error 2

I also got a similar error with `make dvi`, the full log for which can be found
here:
https://github.com/cooljeanius/gcc_bugs/blob/master/doc_logs/libgccjit.log

(I originally reported this on IRC while testing a patch for bug 102663)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
@ 2021-10-19  6:49 ` iains at gcc dot gnu.org
  2022-04-01 22:54 ` dmalcolm at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: iains at gcc dot gnu.org @ 2021-10-19  6:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-10-19
            Summary|building pdf/dvi            |building pdf/dvi
                   |documentation for libgccjit |documentation for libgccjit
                   |fails on darwin             |fails
     Ever confirmed|0                           |1
              Build|darwin                      |darwin, linux

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---


On linux the make html target succeeds - but it seems to run sphinx - is that
now a prerequisite? (running make dvi after make html did not seem to make any
difference)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
  2021-10-19  6:49 ` [Bug jit/102824] building pdf/dvi documentation for libgccjit fails iains at gcc dot gnu.org
@ 2022-04-01 22:54 ` dmalcolm at gcc dot gnu.org
  2022-04-06 20:21 ` cvs-commit at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-04-01 22:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
make pdf is looking for the images in:
  gcc/jit/docs/_build/texinfo/libgccjit-figures
but they're in the source tree in:
  gcc/jit/docs/_build/texinfo

I just tried:
  git mv gcc/jit/docs/_build/texinfo/*.png
gcc/jit/docs/_build/texinfo/libgccjit-figures

and it seems to fix the "make pdf" for me.

Will test a bit more.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
  2021-10-19  6:49 ` [Bug jit/102824] building pdf/dvi documentation for libgccjit fails iains at gcc dot gnu.org
  2022-04-01 22:54 ` dmalcolm at gcc dot gnu.org
@ 2022-04-06 20:21 ` cvs-commit at gcc dot gnu.org
  2022-04-06 20:33 ` dmalcolm at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-06 20:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:

https://gcc.gnu.org/g:790e9814454662b6cd51d2fce1aa022ef73fedb8

commit r12-8031-g790e9814454662b6cd51d2fce1aa022ef73fedb8
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Wed Apr 6 16:20:10 2022 -0400

    jit: fix location of .png files for "make jit.pdf" [PR102824]

    "make jit.pdf" seems to be looking in
      gcc/jit/docs/_build/texinfo/libgccjit-figures
    for the .png files, but they were in the source tree in:
      gcc/jit/docs/_build/texinfo

    Fix "make jit.pdf" via:
      git mv \
        gcc/jit/docs/_build/texinfo/*.png \
        gcc/jit/docs/_build/texinfo/libgccjit-figures

    gcc/jit/ChangeLog:
            PR jit/102824
            * docs/_build/texinfo/factorial.png: Move to...
            * docs/_build/texinfo/libgccjit-figures/factorial.png: ...here.
            * docs/_build/texinfo/factorial1.png: Move to...
            * docs/_build/texinfo/libgccjit-figures/factorial1.png: ...here.
            * docs/_build/texinfo/sum-of-squares.png: Move to...
            * docs/_build/texinfo/libgccjit-figures/sum-of-squares.png:
...here.
            * docs/_build/texinfo/sum-of-squares1.png: Move to...
            * docs/_build/texinfo/libgccjit-figures/sum-of-squares1.png:
...here.

    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-04-06 20:21 ` cvs-commit at gcc dot gnu.org
@ 2022-04-06 20:33 ` dmalcolm at gcc dot gnu.org
  2022-04-08 22:48 ` egallager at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-04-06 20:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
As noted in https://gcc.gnu.org/pipermail/gcc-patches/2022-April/592889.html
the above patch seems to fix "make jit.pdf", but doesn't fix "make jit.dvi"; it
seems to be looking for .eps files for the images.

I last used TeX roughly 3 decades ago, so help fixing this would be welcome :)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-04-06 20:33 ` dmalcolm at gcc dot gnu.org
@ 2022-04-08 22:48 ` egallager at gcc dot gnu.org
  2023-01-06  4:12 ` egallager at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-04-08 22:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #4)
> As noted in https://gcc.gnu.org/pipermail/gcc-patches/2022-April/592889.html
> the above patch seems to fix "make jit.pdf", but doesn't fix "make jit.dvi";
> it seems to be looking for .eps files for the images.
> 
> I last used TeX roughly 3 decades ago, so help fixing this would be welcome
> :)

yeah I'm not much of a TeX user myself, so... well, who around here *does*
understand TeX?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-04-08 22:48 ` egallager at gcc dot gnu.org
@ 2023-01-06  4:12 ` egallager at gcc dot gnu.org
  2023-01-06  8:19 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2023-01-06  4:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
@marxin is this something you checked during the sphinx conversion and
reversion at all?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-01-06  4:12 ` egallager at gcc dot gnu.org
@ 2023-01-06  8:19 ` marxin at gcc dot gnu.org
  2023-01-06  8:50 ` iains at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-06  8:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Well, running 'make latexpdf' works if you jump into gcc/jit/docs folder. Do I
miss something?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2023-01-06  8:19 ` marxin at gcc dot gnu.org
@ 2023-01-06  8:50 ` iains at gcc dot gnu.org
  2023-10-20  8:34 ` egallager at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: iains at gcc dot gnu.org @ 2023-01-06  8:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #6)
> @marxin is this something you checked during the sphinx conversion and
> reversion at all?

(In reply to Martin Liška from comment #7)
> Well, running 'make latexpdf' works if you jump into gcc/jit/docs folder. Do
> I miss something?

last time I checked 'make dvi ' it was hanging in libgccjit ('make pdf' is OK -
but in-tree gmp fails there).

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2023-01-06  8:50 ` iains at gcc dot gnu.org
@ 2023-10-20  8:34 ` egallager at gcc dot gnu.org
  2023-12-05  8:14 ` egallager at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2023-10-20  8:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
I've been testing this on the compile farm, and there seems to be a wide amount
of variation between machines with regards to whether this fails or not; I
think it might have to do with different machines having different sphinx
versions... I'm wondering if the minimum sphinx version documented to work in
https://gcc.gnu.org/install/prerequisites.html needs to be updated?

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
I've been testing this on the compile farm, and there seems to be a wide amount
of variation between machines with regards to whether this fails or not; I
think it might have to do with different machines having different sphinx
versions... I'm wondering if the minimum sphinx version documented to work in
https://gcc.gnu.org/install/prerequisites.html needs to be updated?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2023-10-20  8:34 ` egallager at gcc dot gnu.org
@ 2023-12-05  8:14 ` egallager at gcc dot gnu.org
  2024-03-17  3:41 ` iains at gcc dot gnu.org
  2024-03-27 15:47 ` egallager at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2023-12-05  8:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> ---
I'm wondering if it'd be possible to insert a line like:

\batchmode

into the tex files? 
Ref:
https://tex.stackexchange.com/questions/25267/what-reasons-if-any-are-there-for-compiling-in-interactive-mode

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2023-12-05  8:14 ` egallager at gcc dot gnu.org
@ 2024-03-17  3:41 ` iains at gcc dot gnu.org
  2024-03-27 15:47 ` egallager at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: iains at gcc dot gnu.org @ 2024-03-17  3:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #12 from Iain Sandoe <iains at gcc dot gnu.org> ---
what input is this waiting for at the moment?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug jit/102824] building pdf/dvi documentation for libgccjit fails
  2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2024-03-17  3:41 ` iains at gcc dot gnu.org
@ 2024-03-27 15:47 ` egallager at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: egallager at gcc dot gnu.org @ 2024-03-27 15:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102824

--- Comment #13 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #12)
> what input is this waiting for at the moment?

From checking the bug history, it looks like Martin Liška was the one to put
this in the WAITING status, which came along with this comment:

(In reply to Martin Liška from comment #7)
> Well, running 'make latexpdf' works if you jump into gcc/jit/docs folder. Do
> I miss something?

...which I thought we'd answered, but to make it a bit more clear: we shouldn't
have to do that to get the jit docs to build properly. They should build
properly when doing `make dvi` and/or `make pdf` from the top-level, rather
than requiring their own special procedures.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-03-27 15:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19  1:43 [Bug jit/102824] New: building pdf/dvi documentation for libgccjit fails on darwin egallager at gcc dot gnu.org
2021-10-19  6:49 ` [Bug jit/102824] building pdf/dvi documentation for libgccjit fails iains at gcc dot gnu.org
2022-04-01 22:54 ` dmalcolm at gcc dot gnu.org
2022-04-06 20:21 ` cvs-commit at gcc dot gnu.org
2022-04-06 20:33 ` dmalcolm at gcc dot gnu.org
2022-04-08 22:48 ` egallager at gcc dot gnu.org
2023-01-06  4:12 ` egallager at gcc dot gnu.org
2023-01-06  8:19 ` marxin at gcc dot gnu.org
2023-01-06  8:50 ` iains at gcc dot gnu.org
2023-10-20  8:34 ` egallager at gcc dot gnu.org
2023-12-05  8:14 ` egallager at gcc dot gnu.org
2024-03-17  3:41 ` iains at gcc dot gnu.org
2024-03-27 15:47 ` egallager at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).