+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=312 WRKLOG=/tmp/bulklog/clang-18.1.8nb3/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=312 WRKLOG=/tmp/bulklog/clang-18.1.8nb3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: USE_CMAKE is deprecated; use devel/cmake/build.mk instead.
=> Checksum BLAKE2s OK for clang-18.1.8.src.tar.xz
=> Checksum SHA512 OK for clang-18.1.8.src.tar.xz
=> Checksum BLAKE2s OK for cmake-18.1.8.src.tar.xz
=> Checksum SHA512 OK for cmake-18.1.8.src.tar.xz
=> Checksum BLAKE2s OK for runtimes-18.1.8.src.tar.xz
=> Checksum SHA512 OK for runtimes-18.1.8.src.tar.xz
===> Installing dependencies for clang-18.1.8nb3
==========================================================================
The supported build options for clang are:

	tests z3

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.clang (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
clang-18.1.8nb3.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 312

Based on these variables, the following variables have been set:

        * PYPACKAGE = python312

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=3.18: found cmake-3.31.1
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency llvm-18.1.8{,nb*}: found llvm-18.1.8nb3
=> Full dependency llvm>=18.0.0: found llvm-18.1.8nb3
=> Full dependency perl>=5.0: found perl-5.40.0nb1
=> Full dependency libxml2>=2.12.9nb3: found libxml2-2.12.9nb3
=> Full dependency python312>=3.12: found python312-3.12.7nb3
=> Full dependency zlib>=1.2.3: found zlib-1.3.1
=> Full dependency xz>=5.0.0: found xz-5.6.3
=> Full dependency zstd>=1.3.6: found zstd-1.5.6
===> Overriding tools for clang-18.1.8nb3
===> Extracting for clang-18.1.8nb3
/bin/ln -f -s /home/pbulk/build/lang/clang/work/cmake-18.1.8.src /home/pbulk/build/lang/clang/work/cmake
/bin/ln -f -s /home/pbulk/build/lang/clang/work/runtimes-18.1.8.src /home/pbulk/build/lang/clang/work/runtimes
/bin/mkdir -p /home/pbulk/build/lang/clang/work/clang-18.1.8.src/build
===> Patching for clang-18.1.8nb3
=> Applying pkgsrc patches for clang-18.1.8nb3
=> Verifying /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Basic_Targets_OSTargets.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Basic_Targets_OSTargets.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_Basic_Targets_OSTargets.h,v 1.10 2024/07/07 14:00:21 wiz Exp $
|
|Add __illumos__ if the bootstrap compiler also defines it.
|Sync SunOS default defines with what GCC uses.
|
|--- lib/Basic/Targets/OSTargets.h.orig	2023-11-28 08:52:28.000000000 +0000
|+++ lib/Basic/Targets/OSTargets.h
--------------------------
Patching file lib/Basic/Targets/OSTargets.h using Plan A...
Hunk #1 succeeded at 590 (offset -49 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Driver_ToolChain.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Driver_ToolChain.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_Driver_ToolChain.cpp,v 1.5 2024/07/07 14:00:21 wiz Exp $
|
|[LLD] Add NetBSD support as a new flavor of LLD (nb.lld)
|https://reviews.llvm.org/D70048
|Add -R for library paths on SunOS.
|
|--- lib/Driver/ToolChain.cpp.orig	2023-11-28 08:52:28.000000000 +0000
|+++ lib/Driver/ToolChain.cpp
--------------------------
Patching file lib/Driver/ToolChain.cpp using Plan A...
Hunk #1 succeeded at 883 (offset 46 lines).
Hunk #2 succeeded at 1261 (offset 46 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Driver_ToolChains_Gnu.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Driver_ToolChains_Gnu.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_Driver_ToolChains_Gnu.cpp,v 1.4 2024/07/07 14:00:21 wiz Exp $
|
|On SunOS always use the GCC that was used to build clang.
|
|--- lib/Driver/ToolChains/Gnu.cpp.orig	2024-06-15 17:21:32.000000000 +0000
|+++ lib/Driver/ToolChains/Gnu.cpp
--------------------------
Patching file lib/Driver/ToolChains/Gnu.cpp using Plan A...
Hunk #1 succeeded at 2382.
done
=> Verifying /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_Interpreter_IncrementalParser.cpp,v 1.1 2022/12/27 10:49:42 he Exp $
|
|NetBSD doesn't have ENOTRECOVERABLE, so doesn't have
|std::errc::state_not_recoverable either.  Use
|std::errc::operation_not_supported instead.
|
|--- lib/Interpreter/IncrementalParser.cpp.orig	2022-11-16 06:28:29.000000000 +0000
|+++ lib/Interpreter/IncrementalParser.cpp
--------------------------
Patching file lib/Interpreter/IncrementalParser.cpp using Plan A...
Hunk #1 succeeded at 126 (offset 73 lines).
done
===> Creating toolchain wrappers for clang-18.1.8nb3
===> Configuring for clang-18.1.8nb3
=> Replacing python interpreter in bindings/python/examples/cindex/cindex-dump.py bindings/python/examples/cindex/cindex-includes.py docs/tools/dump_ast_matchers.py docs/tools/dump_format_style.py docs/tools/generate_formatted_state.py lib/Tooling/DumpTool/generate_cxx_src_locs.py test/AST/gen_ast_dump_json_test.py test/Analysis/check-analyzer-fixit.py tools/clang-format/clang-format-diff.py tools/clang-format/git-clang-format tools/scan-build-py/bin/analyze-build tools/scan-build-py/bin/intercept-build tools/scan-build-py/bin/scan-build tools/scan-build-py/libexec/analyze-c++ tools/scan-build-py/libexec/analyze-cc tools/scan-build-py/libexec/intercept-c++ tools/scan-build-py/libexec/intercept-cc tools/scan-build/bin/set-xcode-analyzer tools/scan-view/bin/scan-view tools/scan-view/share/Reporter.py tools/scan-view/share/startfile.py utils/ABITest/ABITestGen.py utils/CIndex/completion_logger_server.py utils/CaptureCmd utils/CmpDriver utils/FindSpecRefs utils/FuzzTest utils/TestUtils/deep-stack.py utils/analyzer/CmpRuns.py utils/analyzer/SATest.py utils/analyzer/SATestAdd.py utils/analyzer/SATestBuild.py utils/analyzer/SATestUpdateDiffs.py utils/analyzer/SumTimerInfo.py utils/analyzer/exploded-graph-rewriter.py utils/check_cfc/check_cfc.py utils/check_cfc/obj_diff.py utils/check_cfc/test_check_cfc.py utils/clangdiag.py utils/convert_arm_neon.py utils/creduce-clang-crash.py utils/hmaptool/hmaptool utils/modfuzz.py utils/module-deps-to-rsp.py utils/token-delta.py www/builtins.py www/make_cxx_dr_status.
=> Replacing Perl interpreter in tools/scan-build/bin/scan-build tools/scan-build/libexec/c++-analyzer tools/scan-build/libexec/ccc-analyzer utils/TestUtils/pch-test.pl utils/analyzer/reducer.pl utils/analyzer/update_plist_test.pl.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
CMake Deprecation Warning at /home/pbulk/build/lang/clang/work/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


CMake Deprecation Warning at /home/pbulk/build/lang/clang/work/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/lang/clang/work/.cwrapper/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/pbulk/build/lang/clang/work/.cwrapper/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/pkg/lib/libz.so (found version "1.3.1")
-- Found zstd: /usr/pkg/lib/libzstd.so
-- Found LibXml2: /usr/pkg/lib/libxml2.so (found version "2.12.9")
-- Linker detection: GNU ld
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS
-- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS - Success
-- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS
-- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Success
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Failed
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Failed
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Found Python3: /usr/pkg/bin/python3.12 (found version "3.12.7") found components: Interpreter
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Clang version: 18.1.8
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
-- Found Git: /bin/git (found version "2.43.5")
CMake Warning (dev) at lib/Tooling/CMakeLists.txt:58 (add_custom_command):
  COMMENT requires exactly one argument, but multiple values or COMMENT
  keywords have been given.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/Tooling/CMakeLists.txt:79 (add_custom_command):
  COMMENT requires exactly one argument, but multiple values or COMMENT
  keywords have been given.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done (16.4s)
-- Generating done (2.2s)
CMake Warning:
  Manually-specified variables were not used by the project:

    PYTHON_EXECUTABLE
    PYTHON_INCLUDE_DIR
    PYTHON_INCLUDE_PATH
    Python3_INCLUDE_DIR
    Python_EXECUTABLE
    Python_INCLUDE_DIR


-- Build files have been written to: /home/pbulk/build/lang/clang/work/clang-18.1.8.src/build
=> Rewrite cmake Dependencies files