It looks like a bmake issue. cwrappers/files/bin/Makefile:.include <bsd.prog.mk> and looking in bsd.prog.mk: .include <bsd.sys.mk> ... which makes it build with -Wall -Werror! using NOGCCERROR=1 NOCLANGERROR=1 seems to do the trick, but bmake should probably not do that.