Kostya Serebryany via llvm-dev
2018-May-01 22:54 UTC
[llvm-dev] ninja docs-clang-html fails with tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".
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>
Vlad Tsyrklevich via llvm-dev
2018-May-02 00:07 UTC
[llvm-dev] ninja docs-clang-html fails with tools/clang/docs/ClangCommandLineReference.rst:22:Duplicate explicit target name: "cmdoption-clang--prefix".
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>