+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/b-em-20230915/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/b-em-20230915/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for b-em-20230915 Making all in src gmake[1]: Entering directory '/home/pbulk/build/emulators/b-em/work/b-em-464bb82239e31862e87b39b257d63086861b99e5/src' CC b_em-6502.o CC b_em-6502debug.o In file included from 6502.c:4: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from 6502.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ In file included from 6502debug.c:3: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from 6502debug.c:3: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ 6502.c: In function 'm6502_loadstate': 6502.c:5906:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(bytes, sizeof(bytes), 1, f); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC b_em-6502tube.o In file included from 6502tube.c:6: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from 6502tube.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-65816.o In file included from 65816.c:6: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from 65816.c:5: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-6809tube.o In file included from 6809tube.c:1: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from 6809tube.c:1: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-z80.o In file included from z80.c:8: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from z80.c:6: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-z80dis.o CC b_em-acia.o In file included from acia.c:5: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from acia.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ acia.c: In function 'acia_loadstate': acia.c:128:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(bytes, sizeof(bytes), 1, f); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC b_em-adc.o In file included from adc.c:4: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from adc.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ adc.c: In function 'adc_loadstate': adc.c:75:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(bytes, sizeof(bytes), 1, f); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC b_em-arm.o In file included from arm.c:7: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from arm.c:5: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-cmos.o In file included from cmos.c:15: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from cmos.c:14: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-compact_joystick.o In file included from compact_joystick.c:1: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from compact_joystick.c:1: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-compactcmos.o In file included from compactcmos.c:4: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from compactcmos.c:3: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-compat_wrappers.o In file included from compat_wrappers.h:9, from compat_wrappers.c:6: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from compat_wrappers.h:9, from compat_wrappers.c:6: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-config.o CC b_em-copro-pdp11.o In file included from config.c:4: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from config.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ In file included from copro-pdp11.c:6: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from b-em.h:9, from copro-pdp11.c:6: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-csw.o CC b_em-ddnoise.o In file included from csw.c:6: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from csw.c:3: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ In file included from ddnoise.c:5: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from ddnoise.c:4: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ CC b_em-debugger.o CXX debugger_symbols.o In file included from debugger.c:12: b-em.h:46: warning: "fwrite_unlocked" redefined #define fwrite_unlocked fwrite In file included from /usr/include/stdio.h:870, from debugger.c:6: /usr/include/bits/stdio.h:171: note: this is the location of the previous definition # define fwrite_unlocked(ptr, size, n, stream) \ In file included from /usr/include/c++/8/ext/string_conversions.h:41, from /usr/include/c++/8/bits/basic_string.h:6404, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from debugger_symbols.h:28, from debugger_symbols.cpp:4: /usr/include/c++/8/cstdlib:151:11: error: '::malloc' has not been declared using ::malloc; ^~~~~~ In file included from debugger_symbols.cpp:4: debugger_symbols.h: In constructor 'symbol_entry::symbol_entry(const char*, uint32_t)': debugger_symbols.h:48:30: error: 'malloc' was not declared in this scope symbol = (char *)malloc(strlen(_symbol) + 1); ^~~~~~ debugger_symbols.h:48:30: note: 'malloc' is defined in header ''; did you forget to '#include '? debugger_symbols.h:29:1: +#include #include debugger_symbols.h:48:30: symbol = (char *)malloc(strlen(_symbol) + 1); ^~~~~~ In file included from cpu_debug.h:6, from debugger_symbols.cpp:6: /usr/include/c++/8/stdlib.h: At global scope: /usr/include/c++/8/stdlib.h:65:12: error: 'std::malloc' has not been declared using std::malloc; ^~~~~~ debugger_symbols.cpp: In function 'bool symbol_find_by_name(symbol_table*, const char*, uint32_t*, const char**)': debugger_symbols.cpp:143:23: error: 'malloc' was not declared in this scope char *n = (char *)malloc(i + 1); ^~~~~~ debugger_symbols.cpp:143:23: note: 'malloc' is defined in header ''; did you forget to '#include '? debugger_symbols.cpp:7:1: +#include debugger_symbols.cpp:143:23: char *n = (char *)malloc(i + 1); ^~~~~~ gmake[1]: *** [Makefile:2390: debugger_symbols.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory '/home/pbulk/build/emulators/b-em/work/b-em-464bb82239e31862e87b39b257d63086861b99e5/src' gmake: *** [Makefile:425: all-recursive] Error 1 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/emulators/b-em *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/emulators/b-em