<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lld documentation build fails with TemplateNotFound on Python 3.7/Sphinx 2.0.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=41789">41789</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld documentation build fails with TemplateNotFound on Python 3.7/Sphinx 2.0.1
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>steven@uplinklabs.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21905" name="attach_21905" title="output of sphinx-build with -v -v arguments">attachment 21905</a> <a href="attachment.cgi?id=21905&action=edit" title="output of sphinx-build with -v -v arguments">[details]</a></span>
output of sphinx-build with -v -v arguments

I'm trying to build the current release_80 branch of lld, but the build failed
around generating the Sphinx documentation:

-----
lld $ mkdir build; cd build
lld/build $ cmake -G Ninja .. -DLLVM_BUILD_DOCS=ON -DLLVM_ENABLE_SPHINX=ON
lld/build $ ninja docs/all
[1/1] Generating html Sphinx documentation for lld into
"/home/steven/lld-t/build/docs/html"
FAILED: docs/CMakeFiles/docs-lld-html 
cd /home/steven/lld-t/build/docs && /usr/bin/sphinx-build -b html -d
/home/steven/lld-t/build/docs/_doctrees-lld-html -q -W /home/steven/lld-t/docs
/home/steven/lld-t/build/docs/html

Theme error:
An error happened in rendering the page index.
Reason: TemplateNotFound()
ninja: build stopped: subcommand failed.
-----

I tried running sphinx-build without -q and with -v -v (output attached). It's
complaining about a missing template called "i", which strace shows it's trying
to access as well:

32385 stat("/usr/lib/python3.7/site-packages/sphinx/themes/basic/page.html",
{st_mode=S_IFREG|0644, st_size=273, ...}) = 0
32385 stat("/home/steven/lld-t/docs/_templates/layout.html",
{st_mode=S_IFREG|0644, st_size=305, ...}) = 0
32385 stat("/home/steven/lld-t/docs/llvm-theme/layout.html",
{st_mode=S_IFREG|0644, st_size=569, ...}) = 0
32385
stat("/usr/lib/python3.7/site-packages/sphinx/themes/basic/../basic/layout.html",
{st_mode=S_IFREG|0644, st_size=7811, ...}) = 0
32385 openat(AT_FDCWD, "/home/steven/lld-t/docs/_templates/i",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
32385 openat(AT_FDCWD, "/home/steven/lld-t/docs/llvm-theme/i",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
32385 openat(AT_FDCWD,
"/usr/lib/python3.7/site-packages/sphinx/themes/basic/i", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
32385 openat(AT_FDCWD, "/home/steven/lld-t/docs/llvm-theme/../i",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
32385 openat(AT_FDCWD,
"/usr/lib/python3.7/site-packages/sphinx/themes/basic/../i",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

If I run the Python 2.7 version of Sphinx, it builds without any errors. I note
that I have two different versions of Sphinx installed (1.8.5 for Python 2.7
and 2.0.1 for Pyton 3.7). Maybe a problem with Sphinx v2.0.x?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>