[llvm-dev] ninja docs-clang-html fails with tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] ninja docs-clang-html fails with tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".

Chris Lattner via llvm-dev
Hi, 

Since I've migrated to a newer linux distro I can't build docs-clang-html. 

1. get LLVM 
2. cmake -GNinja  -DLLVM_ENABLE_SPHINX=YES -DSPHINX_OUTPUT_HTML=YES -DLLVM_BUILD_DOCS=YES ~/llvm
3. ninja docs-clang-html
=======================
 [1/2] Generating html Sphinx documentation for clang into "/tmp/LLVM/tools/clang/docs/html"
FAILED: tools/clang/docs/CMakeFiles/docs-clang-html 
cd /tmp/LLVM/tools/clang/docs && /usr/bin/sphinx-build -b html -d /tmp/LLVM/tools/clang/docs/_doctrees-clang-html -q -W .../kcc/llvm/tools/clang/docs /tmp/LLVM/tools/clang/docs/html

Warning, treated as error:
.../kcc/llvm/tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".
ninja: build stopped: subcommand failed.
=======================

Apparently this happens only with the recent version of sphinx
(mine is 1.6.4, comes with Debian 4.9.65-3+deb9u2)

Does anyone have a fix? 

Thanks! 

--kcc 


_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] ninja docs-clang-html fails with tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".

Chris Lattner via llvm-dev
As a workaround, you can set SPHINX_WARNINGS_AS_ERRORS=OFF.

On Tue, May 1, 2018 at 3:54 PM Kostya Serebryany via llvm-dev <[hidden email]> wrote:
Hi, 

Since I've migrated to a newer linux distro I can't build docs-clang-html. 

1. get LLVM 
2. cmake -GNinja  -DLLVM_ENABLE_SPHINX=YES -DSPHINX_OUTPUT_HTML=YES -DLLVM_BUILD_DOCS=YES ~/llvm
3. ninja docs-clang-html
=======================
 [1/2] Generating html Sphinx documentation for clang into "/tmp/LLVM/tools/clang/docs/html"
FAILED: tools/clang/docs/CMakeFiles/docs-clang-html 
cd /tmp/LLVM/tools/clang/docs && /usr/bin/sphinx-build -b html -d /tmp/LLVM/tools/clang/docs/_doctrees-clang-html -q -W .../kcc/llvm/tools/clang/docs /tmp/LLVM/tools/clang/docs/html

Warning, treated as error:
.../kcc/llvm/tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".
ninja: build stopped: subcommand failed.
=======================

Apparently this happens only with the recent version of sphinx
(mine is 1.6.4, comes with Debian 4.9.65-3+deb9u2)

Does anyone have a fix? 

Thanks! 

--kcc 

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev