+ 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=311 WRKLOG=/tmp/bulklog/binaryen-116/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=311 WRKLOG=/tmp/bulklog/binaryen-116/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for binaryen-116.tar.gz
=> Checksum SHA512 OK for binaryen-116.tar.gz
===> Installing dependencies for binaryen-116
==========================================================================
The supported build options for binaryen are:

	tests

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

	PKG_OPTIONS.binaryen (not defined)

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

        * PYTHON_VERSION_DEFAULT = 311

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

        * PYPACKAGE = python311

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 cmake>=0: found cmake-3.29.6
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency python311>=3.11.0: found python311-3.11.9nb1
===> Overriding tools for binaryen-116
===> Extracting for binaryen-116
===> Patching for binaryen-116
=> Applying pkgsrc patches for binaryen-116
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/binaryen/patches/patch-third__party_CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/binaryen/patches/patch-third__party_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-third__party_CMakeLists.txt,v 1.2 2022/05/04 19:09:23 fcambus Exp $
|
|Don't attempt to build a local copy of GoogleTest.
|
|--- third_party/CMakeLists.txt.orig	2022-05-04 17:59:47.117855128 +0000
|+++ third_party/CMakeLists.txt
--------------------------
Patching file third_party/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 1.
done
===> Creating toolchain wrappers for binaryen-116
===> Configuring for binaryen-116
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/devel/binaryen/work/.cwrapper/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /home/pbulk/build/devel/binaryen/work/.cwrapper/bin/c++
-- Check for working CXX compiler: /home/pbulk/build/devel/binaryen/work/.cwrapper/bin/c++ - broken
CMake Error at /usr/pkg/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "/home/pbulk/build/devel/binaryen/work/.cwrapper/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/pbulk/build/devel/binaryen/work/binaryen-version_116/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-FWvKmP'
    
    Run Build Command(s): /usr/pkg/bin/cmake -E env VERBOSE=1 /bin/gmake -f Makefile cmTC_bd0df/fast
    make  -f CMakeFiles/cmTC_bd0df.dir/build.make CMakeFiles/cmTC_bd0df.dir/build
    Building CXX object CMakeFiles/cmTC_bd0df.dir/testCXXCompiler.cxx.o
    /home/pbulk/build/devel/binaryen/work/.cwrapper/bin/c++   -pipe -O2 -I/usr/include -I/usr/pkg/include/python3.11 -o CMakeFiles/cmTC_bd0df.dir/testCXXCompiler.cxx.o -c /home/pbulk/build/devel/binaryen/work/binaryen-version_116/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-FWvKmP/testCXXCompiler.cxx
    g++: error: unrecognized command line option '-std=c++17'
    *** Error code 1
    
    Stop.
    make[1]: stopped in /home/pbulk/build/devel/binaryen/work/binaryen-version_116/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-FWvKmP
    gmake: *** [cmTC_bd0df/fast] Error 1
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/binaryen
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/binaryen