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

Kostya Serebryany via llvm-dev llvm-dev at lists.llvm.org
Tue May 1 15:54:21 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180501/48e24495/attachment-0001.html>


More information about the llvm-dev mailing list