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

Vlad Tsyrklevich via llvm-dev llvm-dev at lists.llvm.org
Tue May 1 17:07:36 PDT 2018


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 <
llvm-dev at lists.llvm.org> 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
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180502/0a0f2019/attachment.html>


More information about the llvm-dev mailing list