Re: Problems building llvm13 and llvm15?

From: Stephen Roznowski <>
Date: Thu, 05 Jan 2023 16:34:44 UTC
  On 1/4/23 18:14, Brooks Davis wrote:

 On Wed, Jan 04, 2023 at 01:10:36AM +0000, Stephen Roznowski wrote:
Are others having problems building both llvm13 and llvm15?
I get errors when trying to rebuild llvm13-13.0.1_3 and upgrading llvm15-15.0.6 to llvm15-15.0.6_1 on 13.1-STABLE.

 What errors?  Do you have any out of swap errors in your logs?

No swap errors. Just rebuilt with "portmaster -d -m MAKE_JOBS_UNSAFE=yes llvm15" and got the following error:

[ 47% 4222/8826] cd /usr/ports/devel/llvm15/work/.build/tools/clang/docs && /usr/local/bin/cmake -E make_directory /usr/ports/devel/llvm15/work/.build/tools/clang/docs/man && /usr/local/bin/cmake -E env /usr/local/bin/sphinx-build-3.9 -b man -d /usr/ports/devel/llvm15/work/.build/tools/clang/docs/_doctrees-clang-man -q -t builder-man -D version=15 -D release=15.0.6 /usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/clang/docs /usr/ports/devel/llvm15/work/.build/tools/clang/docs/man
FAILED: tools/clang/docs/CMakeFiles/docs-clang-man /usr/ports/devel/llvm15/work/.build/tools/clang/docs/CMakeFiles/docs-clang-man 
cd /usr/ports/devel/llvm15/work/.build/tools/clang/docs && /usr/local/bin/cmake -E make_directory /usr/ports/devel/llvm15/work/.build/tools/clang/docs/man && /usr/local/bin/cmake -E env /usr/local/bin/sphinx-build-3.9 -b man -d /usr/ports/devel/llvm15/work/.build/tools/clang/docs/_doctrees-clang-man -q -t builder-man -D version=15 -D release=15.0.6 /usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/clang/docs /usr/ports/devel/llvm15/work/.build/tools/clang/docs/man

Exception occurred:
  File "/usr/local/lib/python3.9/site-packages/recommonmark/", line 9, in <module>
    from commonmark import Parser
ModuleNotFoundError: No module named 'commonmark'
The full traceback has been saved in /tmp/sphinx-err-t7yo16nq.log, if you want to report the issue to the developers.

Sphinx-err ends with: ModuleNotFoundError: No module named 'commonmark'

I only have py-39-recommonmark-0.5.0_2 installed, and portmaster doesn't build any other "commonmark" ports.

What does your system/vm config look like?  The default configuration
builds FLANG which unfortunately requires quite a lot of ram.
Not building with FLANG support.

I guess that I'll try building it without DOC support.