Re: devel/llvm13 build: "ninja: build stopped: subcommand failed"

From: Martin_Waschb├╝sch <martin_at_waschbuesch.de>
Date: Fri, 12 Aug 2022 20:33:24 UTC

Am 12.08.22 um 22:12 schrieb David Wolfskill:
> This was using poudriere, on a real amd64 machine with:
> Aug 12 04:13:35 freebeast kernel: real memory  = 206152138752 (196602 MB)
> Aug 12 04:13:35 freebeast kernel: avail memory = 200736665600 (191437 MB)
> 
> in both:
> 
> FreeBSD 12.3-STABLE #89 stable/12-n235538-4291bca854b: Fri Aug 12 03:33:24 PDT 2022     root@freebeast.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/GENERIC  amd64 1203507 1203507
> 
> and:
> 
> FreeBSD 13.1-STABLE #135 stable/13-n252108-df38c129b0c: Fri Aug 12 05:29:37 PDT 2022     root@freebeast.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1301506 1301506
> 
> For stable/12, the context for the ninja whine was:
> ...
> [ 72% 5997/8307] /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/lib/Semantics -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Semantics -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/include -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/clang/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include  -fno-exceptions -std=c++17 -MD -MT tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o -c /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Semantics/resolve-names.cpp
> ninja: build stopped: subcommand failed.
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/devel/llvm13
> 
> 
> For stable/13, it was:
> [ 72% 5997/8307] /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/lib/Frontend -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Frontend -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/include -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/clang/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-unused-command-line-argument -Wstring-conversion
> stem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include  -fno-exceptions -std=c++17 -MD -MT tools/flang/lib/Frontend/CMakeFiles/obj.flangFrontend.dir/FrontendActions.cpp.o -MF tools/flang/lib/Frontend/CMakeFiles/obj.flangFrontend.dir/FrontendActions.cpp.o.d -o tools/flang/lib/Frontend/CMakeFiles/obj.flangFrontend.dir/FrontendActions.cpp.o -c /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Frontend/FrontendActions.cpp
> [ 72% 5997/8307] /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/lib/Semantics -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Semantics -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/tools/flang/include -I/wrkdirs/usr/ports/devel/llvm13/work/.build/include -I/wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/mlir/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/.build/tools/clang/include -isystem /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -isystem /usr/local/include  -fno-exceptions -std=c++17 -MD -MT tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/obj.FortranSemantics.dir/resolve-names.cpp.o -c /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/flang/lib/Semantics/resolve-names.cpp
> ninja: build stopped: subcommand failed.
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> 
> 
> I was out-of-town (and largely without Internet access) from 22 July to
> 05 August.  Prior to that, I don't recall issues building llvm in
> poudriere on that machine -- nor do I encounter errors building it with
> portmaster on my laptops (it just takes forever and a day!).
> 
> I only use llvm ports as dependencies of other ports, so I haven't
> attempted to tweak the port configuration at all.
> 
> As things currently stand, the llvm13 build failure is causing poudriere
> to "skip" building 42 ports (in each of stable/12 & stable/13) -- one of
> which is www/chromium.
> 
> What sort of evasive action might be useful?
> 
> Thanks!
> 
> Peace,
> david

I have the same on my build box trying to compile postgresql13-server 
with the llvm option (pulls in llvm13) and the actual error causing this 
(at least on my system) seems to be:

Extension error (sphinx_markdown_tables):
Handler <function process_tables at 0x876ea2b80> for event 'source-read' 
threw an exception (exception: __init__() takes 2 positional arguments 
but 3 were given)


Said error message is not the last thing in the log, however, so it is 
easy to overlook.

Best,

Martin