<div dir="ltr"><br><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to build swift-3.1-branch from github (<a href="https://github.com/apple/swift" target="_blank">https://github.com/apple/<wbr>swift</a>) on my new Macbook Pro with OS Sierra v10.12.6. I get the following error during doc generation using the command "sudo ./swift/utils/build-toolchain local-swift":</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">"""</div><div style="font-size:12.8px"><div>[4193/4193] cd .../swift/docs && /usr/local/bin/sphinx-build -D latex_paper_size=letter -d .../build/buildbot_osx/swift-<wbr>macosx-x86_64/doctrees -b html . .../build/buildbot_osx/swift-<wbr>macosx-x86_64/docs/html</div><div>FAILED: docs/CMakeFiles/docs_html</div><div>cd .../swift/docs && /usr/local/bin/sphinx-build -D latex_paper_size=letter -d .../build/buildbot_osx/swift-<wbr>macosx-x86_64/doctrees -b html . .../build/buildbot_osx/swift-<wbr>macosx-x86_64/docs/html</div><div>Running Sphinx v1.6.3</div><div>WARNING: unknown config value 'latex_paper_size' in override, ignoring</div></div><div style="font-size:12.8px">....</div><div style="font-size:12.8px"><div>generating indices... genindex</div><div>writing additional pages... LangRef</div><div>Exception occurred:</div><div> File "/usr/local/lib/python2.7/<wbr>site-packages/Sphinx-1.6.3-<wbr>py2.7.egg/sphinx/jinja2glue.<wbr>py", line 200, in get_source</div><div> raise TemplateNotFound(template)</div><div>TemplateNotFound: archive/LangRef.html</div><div>The full traceback has been saved in /tmp/sphinx-err-tlnjJ9.log, if you want to report the issue to the developers.</div><div>Please also report this if it was a user error, so that a better error message can be provided next time.</div><div>A bug report can be filed in the tracker at <<a href="https://github.com/sphinx-doc/sphinx/issues" target="_blank">https://github.com/sphinx-<wbr>doc/sphinx/issues</a>>. Thanks!</div><div>ninja: build stopped: subcommand failed.</div><div>./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</div><div>./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</div><div>"""</div><div><br></div><div><span style="font-size:12.8px">With -W option enabled, the error was : "WARNING: unknown config value 'latex_paper_size' in override, ignoring". I do see that this variable is set in CMakeLists.txt. I get the above error with -W enabled.</span></div><div><span style="font-size:12.8px">I have Sphinx 1.6.3 installed on my machine and Cmake 3.9.0</span></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It seems like incompatible sphinx version? Has anyone seen this error with latest code?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">--Raj</div></div>