+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/lpcnetfreedv-0.2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/lpcnetfreedv-0.2/work.log
===> Building for lpcnetfreedv-0.2
[  2%] Building C object src/CMakeFiles/quant2c.dir/quant2c.c.o
[  4%] Building C object src/CMakeFiles/tcodec2_pitch.dir/tcodec2_pitch.c.o
[  6%] Building C object src/CMakeFiles/weight.dir/weight.c.o
[  8%] Building C object src/CMakeFiles/lpcnetfreedv.dir/freq.c.o
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/freq.c: In function 'check_init':
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/freq.c:132:36: error: 'M_PI' undeclared (first use in this function)
  132 |     common.half_window[i] = sin(.5*M_PI*sin(.5*M_PI*(i+.5)/OVERLAP_SIZE) * sin(.5*M_PI*(i+.5)/OVERLAP_SIZE));
      |                                    ^~~~
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/freq.c:132:36: note: each undeclared identifier is reported only once for each function it appears in
--- src/CMakeFiles/lpcnetfreedv.dir/freq.c.o ---
*** [src/CMakeFiles/lpcnetfreedv.dir/freq.c.o] Error code 1

bmake[2]: stopped making "src/CMakeFiles/lpcnetfreedv.dir/build" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
bmake[2]: 1 error

bmake[2]: stopped making "src/CMakeFiles/lpcnetfreedv.dir/build" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
--- src/CMakeFiles/lpcnetfreedv.dir/all ---
*** [src/CMakeFiles/lpcnetfreedv.dir/all] Error code 2

bmake[1]: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
[ 10%] Linking C executable quant2c
[ 12%] Building C object src/CMakeFiles/tcodec2_pitch.dir/codec2_pitch.c.o
[ 14%] Linking C executable weight
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/codec2_pitch.c: In function 'codec2_pitch_est':
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/codec2_pitch.c:102:20: error: 'M_PI' undeclared (first use in this function)
  102 |     model.Wo = 2.0*M_PI/pitch_samples;
      |                    ^~~~
/home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/src/codec2_pitch.c:102:20: note: each undeclared identifier is reported only once for each function it appears in
--- src/CMakeFiles/tcodec2_pitch.dir/codec2_pitch.c.o ---
*** [src/CMakeFiles/tcodec2_pitch.dir/codec2_pitch.c.o] Error code 1

bmake[2]: stopped making "src/CMakeFiles/tcodec2_pitch.dir/build" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
bmake[2]: 1 error

bmake[2]: stopped making "src/CMakeFiles/tcodec2_pitch.dir/build" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
--- src/CMakeFiles/tcodec2_pitch.dir/all ---
*** [src/CMakeFiles/tcodec2_pitch.dir/all] Error code 2

bmake[1]: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
--- src/CMakeFiles/quant2c.dir/all ---
*** [src/CMakeFiles/quant2c.dir/all] Error code 6

bmake[1]: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
--- src/CMakeFiles/weight.dir/all ---
*** [src/CMakeFiles/weight.dir/all] Error code 6

bmake[1]: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
bmake[1]: 4 errors

bmake[1]: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
*** [all] Error code 2

bmake: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/ham/lpcnetfreedv/work/LPCNet-0.2/cmake-pkgsrc-build
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/lpcnetfreedv
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/lpcnetfreedv