+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/R-nloptr-2.0.3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/R-nloptr-2.0.3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Installing for R-nloptr-2.0.3
=> Generating pre-install file lists
=> Creating installation directories
* installing *source* package 'nloptr' ...
file 'configure' has the wrong MD5 checksum
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ -std=gnu++17 accepts -g... yes
checking for g++ -std=gnu++17 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -std=gnu++17 -E
checking whether the compiler supports GNU C++... (cached) yes
checking whether g++ -std=gnu++17 accepts -g... (cached) yes
checking for g++ -std=gnu++17 option to enable C++11 features... (cached) none needed
checking for pkg-config... /home/pbulk/build/math/R-nloptr/work/.tools/bin/pkg-config
checking if pkg-config knows NLopt... yes
checking for pkg-config checking NLopt version... >= 2.7.0
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: 'gcc (GCC) 13.3.0'
using C++ compiler: 'g++ (GCC) 13.3.0'
using C++11
gcc -I"/opt/pkg/lib/R/include" -DNDEBUG -I../inst/include -I/opt/pkg/include -I'/opt/pkg/lib/R/library/testthat/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c init_nloptr.c -o init_nloptr.o
gcc -I"/opt/pkg/lib/R/include" -DNDEBUG -I../inst/include -I/opt/pkg/include -I'/opt/pkg/lib/R/library/testthat/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c nloptr.c -o nloptr.o
g++ -std=gnu++11 -I"/opt/pkg/lib/R/include" -DNDEBUG -I../inst/include -I/opt/pkg/include -I'/opt/pkg/lib/R/library/testthat/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses   -c test-C-API.cpp -o test-C-API.o
test-C-API.cpp: In function 'double myfunc(unsigned int, const double*, double*, void*)':
test-C-API.cpp:34:21: error: 'sqrt' was not declared in this scope
   34 |     grad[1] = 0.5 / sqrt(x[1]);
      |                     ^~~~
test-C-API.cpp:36:10: error: 'sqrt' was not declared in this scope
   36 |   return sqrt(x[1]);
      |          ^~~~
test-C-API.cpp: In function 'std::vector<double> solve_example()':
test-C-API.cpp:52:21: error: 'HUGE_VAL' was not declared in this scope
   52 |   double lb[2] = { -HUGE_VAL, 0 }; // lower bounds
      |                     ^~~~~~~~
In file included from /home/pbulk/build/math/R-nloptr/work/.buildlink/lib/R/library/testthat/include/testthat.h:1,
                 from test-C-API.cpp:12:
test-C-API.cpp: In function 'void testthat_disabled_test_81()':
test-C-API.cpp:107:17: error: 'abs' was not declared in this scope
  107 |     expect_true(abs(res[0] - 1./ 3) < 1.0e-4);
      |                 ^~~
/home/pbulk/build/math/R-nloptr/work/.buildlink/lib/R/library/testthat/include/testthat/testthat.h:191:49: note: in definition of macro 'expect_true'
  191 | # define expect_true(__X__)             (void) (__X__)
      |                                                 ^~~~~
*** Error code 1

Stop.
make: stopped in /home/pbulk/build/math/R-nloptr/work/nloptr/src
ERROR: compilation failed for package 'nloptr'
* removing '/home/pbulk/build/math/R-nloptr/work/.destdir/opt/pkg/lib/R/library/nloptr'
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/math/R-nloptr
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/math/R-nloptr