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

From: Brooks Davis <brooks_at_freebsd.org>
Date: Fri, 12 Aug 2022 21:08:42 UTC
An ill-advised update was made to textproc/py-sphinx-markdown-tables which
broke llvm13 and later.  Hopefully it will be reverted soon.

-- Brooks

On Fri, Aug 12, 2022 at 01:12:58PM -0700, David Wolfskill wrote:
> 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/p
> 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-n
> 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
> -- 
> David H. Wolfskill                              david@catwhisker.org
> See "Truth Social"?  Read it as "Pravda" -- and adjust expectations accordingly.
> 
> See https://www.catwhisker.org/~david/publickey.gpg for my public key.