<div dir="ltr">Hi,<div><br></div><div>I am trying to build swift-3.1-branch from github (<a href="https://github.com/apple/swift">https://github.com/apple/swift</a>) on my new Macbook pro with Sierra v10.12.6. I get the following error during doc generation which I use the command sudo ./swift/utils/build-toolchain local-swift:</div><div><br></div><div>&quot;&quot;&quot;</div><div><div>[4193/4193] cd .../swift/docs &amp;&amp; /usr/local/bin/sphinx-build -D latex_paper_size=letter -d .../build/buildbot_osx/swift-macosx-x86_64/doctrees -b html . .../build/buildbot_osx/swift-macosx-x86_64/docs/html</div><div>FAILED: docs/CMakeFiles/docs_html</div><div>cd .../swift/docs &amp;&amp; /usr/local/bin/sphinx-build -D latex_paper_size=letter -d .../build/buildbot_osx/swift-macosx-x86_64/doctrees -b html . .../build/buildbot_osx/swift-macosx-x86_64/docs/html</div><div>Running Sphinx v1.6.3</div><div>WARNING: unknown config value &#39;latex_paper_size&#39; in override, ignoring</div></div><div>....</div><div><div>generating indices... genindex</div><div>writing additional pages... LangRef</div><div>Exception occurred:</div><div>  File &quot;/usr/local/lib/python2.7/site-packages/Sphinx-1.6.3-py2.7.egg/sphinx/jinja2glue.py&quot;, 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 &lt;<a href="https://github.com/sphinx-doc/sphinx/issues">https://github.com/sphinx-doc/sphinx/issues</a>&gt;. 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>&quot;&quot;&quot;&quot;</div></div><div><br></div><div>Earlier I was getting an error with -W option to sphinx which I disabled in the CMakeLists.txt file, but then get stuck with the above error. With -W option enabled, the error was : &quot;WARNING: unknown config value &#39;latex_paper_size&#39; in override, ignoring&quot;. I do see that this variable is set in CMakeLists.txt. </div><div><br></div><div>It seems like incompatible sphinx version? Has anyone seen this error?</div><div><br></div><div>--Raj</div></div>