=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for bfs-4.1.3 [ CC ] src/bar.c [ CC ] src/alloc.c [ CC ] src/main.c [ CC ] src/bfstd.c In file included from src/bar.c:6:0: src/alloc.h:134:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:148:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:190:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:217:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:275:1: error: expected identifier or '(' before '[' token [[_malloc(arena_free, 2)]] ^ src/alloc.h:356:1: error: expected identifier or '(' before '[' token [[_malloc(varena_free, 2)]] ^ src/alloc.h:373:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:388:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/alloc.c:4:0: src/alloc.h:134:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:148:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:190:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:217:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:275:1: error: expected identifier or '(' before '[' token [[_malloc(arena_free, 2)]] ^ src/alloc.h:356:1: error: expected identifier or '(' before '[' token [[_malloc(varena_free, 2)]] ^ src/alloc.h:373:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:388:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/ctx.h:11:0, from src/main.c:52: src/alloc.h:134:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:148:1: error: expected identifier or '(' before '[' token [[_malloc(free, 1)]] ^ src/alloc.h:190:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:217:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:275:1: error: expected identifier or '(' before '[' token [[_malloc(arena_free, 2)]] ^ src/alloc.h:356:1: error: expected identifier or '(' before '[' token [[_malloc(varena_free, 2)]] ^ src/alloc.h:373:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:388:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/bar.c:11:0: src/dstring.h:45:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/dstring.h:54:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/dstring.h:65:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/dstring.h:74:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/dstring.h:85:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/dstring.h:120:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:142:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:157:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:170:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/ctx.h:13:0, from src/main.c:52: src/diag.h:34:1: error: expected identifier or '(' before '[' token [[_printf(1, 2)]] ^ src/dstring.h:185:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:54:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:198:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:144:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:211:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:150:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:224:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:159:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:239:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:168:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:254:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:175:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:267:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/alloc.c:8:0: src/diag.h:34:1: error: expected identifier or '(' before '[' token [[_printf(1, 2)]] ^ src/dstring.h:281:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:182:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:297:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:54:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:189:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:313:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:144:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:196:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:329:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/bfstd.c:8:0: src/diag.h:34:1: error: expected identifier or '(' before '[' token [[_printf(1, 2)]] ^ src/dstring.h:346:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:54:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:352:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:144:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:202:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:150:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:208:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:150:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:214:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:159:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:159:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:220:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:168:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:168:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:226:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:175:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:175:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:232:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:182:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:182:1: error: expected identifier or '(' before '[' token [[_cold]] ^ In file included from src/color.h:12:0, from src/expr.h:11, from src/ctx.h:14, from src/main.c:52: src/dstring.h:45:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/diag.h:189:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:189:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:54:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/diag.h:196:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:196:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:65:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/diag.h:202:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:74:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/diag.h:202:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:85:1: error: expected identifier or '(' before '[' token [[_malloc(dstrfree, 1)]] ^ src/diag.h:208:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:208:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:120:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:214:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:214:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:142:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:220:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:220:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:157:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:226:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:170:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:226:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:185:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/diag.h:232:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/diag.h:232:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/dstring.h:198:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:211:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:224:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:239:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:254:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/bar.c:130:1: error: expected identifier or '(' before '[' token [[_printf(2, 3)]] ^ src/dstring.h:267:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:281:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/dstring.h:297:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ In file included from src/bar.c:6:0: src/bar.c: In function 'bfs_bar_show': src/dstring.h:313:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:154:10: error: implicit declaration of function 'alloc'; did you mean 'alloca'? [-Werror=implicit-function-declaration] (type *)alloc(alignof(type), sizeof(type)) ^ src/bar.c:147:24: note: in expansion of macro 'ALLOC' struct bfs_bar *bar = ALLOC(struct bfs_bar); ^~~~~ src/alloc.c:37:7: warning: no previous declaration for 'alloc' [-Wmissing-declarations] void *alloc(size_t align, size_t size) { ^~~~~ src/dstring.h:329:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.h:154:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (type *)alloc(alignof(type), sizeof(type)) ^ src/bar.c:147:24: note: in expansion of macro 'ALLOC' struct bfs_bar *bar = ALLOC(struct bfs_bar); ^~~~~ src/dstring.h:346:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.c:52:7: warning: no previous declaration for 'zalloc' [-Wmissing-declarations] void *zalloc(size_t align, size_t size) { ^~~~~~ src/dstring.h:352:1: error: expected identifier or '(' before '[' token [[_nodiscard]] ^ src/alloc.c:71:7: warning: no previous declaration for 'xrealloc' [-Wmissing-declarations] void *xrealloc(void *ptr, size_t align, size_t old_size, size_t new_size) { ^~~~~~~~ In file included from src/expr.h:11:0, from src/ctx.h:14, from src/main.c:52: src/color.h:106:1: error: expected identifier or '(' before '[' token [[_printf(2, 3)]] ^ src/color.h:112:1: error: expected identifier or '(' before '[' token [[_printf(2, 0)]] ^ src/alloc.c:101:7: warning: no previous declaration for 'reserve' [-Wmissing-declarations] void *reserve(void *ptr, size_t align, size_t size, size_t count) { ^~~~~~~ src/bar.c: In function 'bfs_bar_update': src/alloc.c:176:1: error: expected identifier or '(' before '[' token [[_cold]] ^ src/bar.c:195:9: error: implicit declaration of function 'bfs_bar_printf'; did you mean 'bfs_bar_write'? [-Werror=implicit-function-declaration] return bfs_bar_printf(bar, ^~~~~~~~~~~~~~ bfs_bar_write src/alloc.c:212:7: warning: no previous declaration for 'arena_alloc' [-Wmissing-declarations] void *arena_alloc(struct arena *arena) { ^~~~~~~~~~~ src/alloc.c: In function 'arena_alloc': src/alloc.c:213:24: error: implicit declaration of function 'slab_alloc'; did you mean 'arena_alloc'? [-Werror=implicit-function-declaration] if (!arena->chunks && slab_alloc(arena) != 0) { ^~~~~~~~~~ arena_alloc cc1: some warnings being treated as errors src/alloc.c: At top level: src/alloc.c:295:7: warning: no previous declaration for 'varena_alloc' [-Wmissing-declarations] void *varena_alloc(struct varena *varena, size_t count) { ^~~~~~~~~~~~ src/alloc.c:312:7: warning: no previous declaration for 'varena_realloc' [-Wmissing-declarations] void *varena_realloc(struct varena *varena, void *ptr, size_t old_count, size_t new_count) { ^~~~~~~~~~~~~~ In file included from src/ctx.h:15:0, from src/main.c:52: src/trie.h:24:2: error: expected specifier-qualifier-list before '[' token [[_counted_by(length)]] ^ src/alloc.c:350:7: warning: no previous declaration for 'varena_grow' [-Wmissing-declarations] void *varena_grow(struct varena *varena, void *ptr, size_t *count) { ^~~~~~~~~~~ gmake: *** [Makefile:237: obj/src/bar.o] Error 1 gmake: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors src/main.c: In function 'main': src/main.c:140:3: error: implicit declaration of function 'bfs_warning'; did you mean 'bfs_ediag'? [-Werror=implicit-function-declaration] bfs_warning(ctx, "Failed to set locale: %s\n\n", xstrerror(locale_err)); ^~~~~~~~~~~ bfs_ediag gmake: *** [Makefile:237: obj/src/alloc.o] Error 1 cc1: some warnings being treated as errors In file included from src/bfstd.h:11:0, from src/bfstd.c:4: src/bfstd.c: In function 'xclose': gmake: *** [Makefile:237: obj/src/main.o] Error 1 src/bfs.h:77:24: error: implicit declaration of function 'BFS_VA_IF_AB__VA_OPT__'; did you mean 'BFS_VA_IF_ABC'? [-Werror=implicit-function-declaration] #define BFS_VA_IF(...) BFS_VA_IF_AB ## __VA_OPT__(C) ^ src/diag.h:88:22: note: in expansion of macro 'BFS_VA_IF' ((cond) ? (void)0 : BFS_VA_IF(__VA_ARGS__) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ src/bfs.h:77:51: error: 'C' undeclared (first use in this function) #define BFS_VA_IF(...) BFS_VA_IF_AB ## __VA_OPT__(C) ^ src/diag.h:88:22: note: in expansion of macro 'BFS_VA_IF' ((cond) ? (void)0 : BFS_VA_IF(__VA_ARGS__) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ src/bfs.h:77:51: note: each undeclared identifier is reported only once for each function it appears in #define BFS_VA_IF(...) BFS_VA_IF_AB ## __VA_OPT__(C) ^ src/diag.h:88:22: note: in expansion of macro 'BFS_VA_IF' ((cond) ? (void)0 : BFS_VA_IF(__VA_ARGS__) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ In file included from src/bfstd.c:8:0: src/diag.h:63:2: error: implicit declaration of function 'bfs_abortf'; did you mean 'bfs_abort'? [-Werror=implicit-function-declaration] bfs_abortf(BFS_DIAG_FORMAT_(format), BFS_DIAG_ARGS_(__VA_ARGS__)) ^ src/diag.h:89:4: note: in expansion of macro 'bfs_abort' (bfs_abort(__VA_ARGS__)) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ src/diag.h:23:10: error: expected expression before ')' token ((format) ? "%s: %s@%s:%d: " format "%s" : "") ^ src/diag.h:63:13: note: in expansion of macro 'BFS_DIAG_FORMAT_' bfs_abortf(BFS_DIAG_FORMAT_(format), BFS_DIAG_ARGS_(__VA_ARGS__)) ^~~~~~~~~~~~~~~~ src/diag.h:89:4: note: in expansion of macro 'bfs_abort' (bfs_abort(__VA_ARGS__)) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ src/diag.h:29:60: error: implicit declaration of function '__VA_OPT__'; did you mean '__CHAR_BIT__'? [-Werror=implicit-function-declaration] xgetprogname(), __func__, __FILE__, __LINE__, __VA_ARGS__ __VA_OPT__(,) "\n" ^ src/diag.h:63:39: note: in expansion of macro 'BFS_DIAG_ARGS_' bfs_abortf(BFS_DIAG_FORMAT_(format), BFS_DIAG_ARGS_(__VA_ARGS__)) ^~~~~~~~~~~~~~ src/diag.h:89:4: note: in expansion of macro 'bfs_abort' (bfs_abort(__VA_ARGS__)) \ ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ src/diag.h:29:60: error: expected ')' before '__VA_OPT__' xgetprogname(), __func__, __FILE__, __LINE__, __VA_ARGS__ __VA_OPT__(,) "\n" ^ src/diag.h:63:39: note: in expansion of macro 'BFS_DIAG_ARGS_' bfs_abortf(BFS_DIAG_FORMAT_(format), BFS_DIAG_ARGS_(__VA_ARGS__)) ^~~~~~~~~~~~~~ src/diag.h:90:4: note: in expansion of macro 'bfs_abort' (bfs_abort("Assertion failed: `%s`", #cond))) ^~~~~~~~~ src/bfstd.c:776:3: note: in expansion of macro 'bfs_verify' bfs_verify(errno != EBADF); ^~~~~~~~~~ cc1: some warnings being treated as errors gmake: *** [Makefile:237: obj/src/bfstd.o] Error 1 *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/sysutils/bfs *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/sysutils/bfs