+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/wabt-1.0.31/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/wabt-1.0.31/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for wabt-1.0.31.tar.gz
=> Checksum SHA512 OK for wabt-1.0.31.tar.gz
===> Installing dependencies for wabt-1.0.31
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.25.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
===> Overriding tools for wabt-1.0.31
===> Extracting for wabt-1.0.31
/bin/mkdir -p /home/pbulk/build/devel/wabt/work/build
===> Patching for wabt-1.0.31
=> Applying pkgsrc patches for wabt-1.0.31
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/wabt/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/devel/wabt/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.2 2022/10/05 08:32:33 fcambus Exp $
|
|Do not disable extensions, needs gnu++17 for alloca(3).
|
|--- CMakeLists.txt.orig	2022-09-30 21:24:30.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 146.
done
===> Creating toolchain wrappers for wabt-1.0.31
===> Configuring for wabt-1.0.31
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> 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/wabt/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/wabt/work/.cwrapper/bin/c++
-- Check for working CXX compiler: /home/pbulk/build/devel/wabt/work/.cwrapper/bin/c++ - broken
CMake Error at /usr/pkg/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
  The C++ compiler

    "/home/pbulk/build/devel/wabt/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/wabt/work/build/CMakeFiles/CMakeScratch/TryCompile-qYYdJC
    
    Run Build Command(s):/bin/gmake -f Makefile cmTC_92ddc/fast && make  -f CMakeFiles/cmTC_92ddc.dir/build.make CMakeFiles/cmTC_92ddc.dir/build
    Building CXX object CMakeFiles/cmTC_92ddc.dir/testCXXCompiler.cxx.o
    /home/pbulk/build/devel/wabt/work/.cwrapper/bin/c++   -pipe -O2 -D_FORTIFY_SOURCE=2 -o CMakeFiles/cmTC_92ddc.dir/testCXXCompiler.cxx.o -c /home/pbulk/build/devel/wabt/work/build/CMakeFiles/CMakeScratch/TryCompile-qYYdJC/testCXXCompiler.cxx
    g++: error: unrecognized command line option '-std=gnu++17'
    *** Error code 1
    
    Stop.
    make[1]: stopped in /home/pbulk/build/devel/wabt/work/build/CMakeFiles/CMakeScratch/TryCompile-qYYdJC
    gmake: *** [cmTC_92ddc/fast] Error 1
    
    

  

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


-- Configuring incomplete, errors occurred!
See also "/home/pbulk/build/devel/wabt/work/build/CMakeFiles/CMakeOutput.log".
See also "/home/pbulk/build/devel/wabt/work/build/CMakeFiles/CMakeError.log".
*** Error code 1

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

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