[Bug 49351] New: Regression (12.0) building lldb docs fails unless lldb is already installed

Bug ID 49351
Summary Regression (12.0) building lldb docs fails unless lldb is already installed
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter bero@lindev.ch
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Trying to build lldb with documentation/sphinx enabled fails unless lldb is
already installed.

Disabling docs in the initial build (and then repeating the build with docs
enabled once lldb is installed) "fixes" the problem.

FAILED: tools/lldb/docs/CMakeFiles/docs-lldb-man 
cd /builddir/build/BUILD/llvm-project-release-12.x/build/tools/lldb/docs &&
/usr/bin/cmake -E env /usr/bin/sphinx-build -b man -d
/builddir/build/BUILD/llvm-project-release-12.x/build/tools/lldb/docs/_doctrees-lldb-man
-q -t builder-man /builddir/build/BUILD/llvm-project-release-12.x/lldb/docs
/builddir/build/BUILD/llvm-project-release-12.x/build/tools/lldb/docs/man
Extension error:
Handler <function process_automodsumm_generation at 0xffffb50065e0> for event
'builder-inited' threw an exception (exception: No module named 'lldb')

Raphael Isemann changed bug 49351

What | Removed | Added |

Comment # 1 on bug 49351 from Raphael Isemann

The man page generation seems to lack the code that creates the mock lldb
module (which is currently only used for the HTML doc). That's on me.