Created attachment 190410 [details] build log kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/main.c kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/alias.c kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/cd.c In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/alias.c:43:0: /usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(1, 2); ^~~~~~~~~~~~~ /usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(2, 3); ^~~~~~~~~~~~~ In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/cd.c:44:0: /usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(1, 2); ^~~~~~~~~~~~~ /usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(2, 3); ^~~~~~~~~~~~~ kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/error.c In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/shtypes.h:34:0, from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/shell.h:94, from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/main.c:53: /usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(1, 2); ^~~~~~~~~~~~~ /usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(2, 3); ^~~~~~~~~~~~~ In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/error.c:47:0: /usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(1, 2); ^~~~~~~~~~~~~ /usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2' __alloc_size2(2, 3); ^~~~~~~~~~~~~ kmk: *** [/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kash/alias.o] Error 1 $ uname -rpKU 11.1-STABLE amd64 1101509 1101509 $ svn info --show-item revision /usr/src 329004 r328973 seems to be the culprit, full build log attached.
For what it is worth, I ran into this same problem. In poudreiere, I ended up having to clear all cached packages/repos and clear my ccache before this kBuild and texlive-base would build again.
Try add to the Makefile: USE_CXXSTD= c++98
I'm going to close this as it builds fine now with base r330383.