[swift-dev] Swift 3.1 build error on MacOS Sierra v10.12.6

Raj Barik rkbarik at gmail.com
Tue Aug 8 10:02:30 CDT 2017


I am trying to build swift-3.1-branch from github (
https://github.com/apple/swift) 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:

[4193/4193] cd .../swift/docs && /usr/local/bin/sphinx-build -D
latex_paper_size=letter -d
.../build/buildbot_osx/swift-macosx-x86_64/doctrees -b html .
FAILED: docs/CMakeFiles/docs_html
cd .../swift/docs && /usr/local/bin/sphinx-build -D latex_paper_size=letter
-d .../build/buildbot_osx/swift-macosx-x86_64/doctrees -b html .
Running Sphinx v1.6.3
WARNING: unknown config value 'latex_paper_size' in override, ignoring
generating indices... genindex
writing additional pages... LangRef
Exception occurred:
line 200, in get_source
    raise TemplateNotFound(template)
TemplateNotFound: archive/LangRef.html
The full traceback has been saved in /tmp/sphinx-err-tlnjJ9.log, if you
want to report the issue to the developers.
Please also report this if it was a user error, so that a better error
message can be provided next time.
A bug report can be filed in the tracker at <
https://github.com/sphinx-doc/sphinx/issues>. Thanks!
ninja: build stopped: subcommand failed.
./utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
./utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting

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 : "WARNING: unknown config value
'latex_paper_size' in override, ignoring". I do see that this variable is
set in CMakeLists.txt.

It seems like incompatible sphinx version? Has anyone seen this error?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170808/9e247028/attachment.html>

More information about the swift-dev mailing list