DEBUG: Executing shell function do_compile
Linking ./src/* into ./compile...
Compiling everything in ./compile...
sh find-systype.sh > systype
rm -f compile
sh print-cc.sh > compile
chmod 555 compile
./compile byte_chr.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_diff.c
./compile byte_rchr.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
rm -f makelib
sh print-ar.sh > makelib
chmod 555 makelib
./compile scan_ulong.c
./compile str_chr.c
./compile str_diff.c
./compile str_len.c
./compile str_start.c
./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o \
byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o str_chr.o \
str_diff.o str_len.o str_start.o
rm -f choose
cat warn-auto.sh choose.sh \
| sed s}HOME}"`head -1 home`"}g \
> choose
chmod 555 choose
./choose c trydrent direntry.h1 direntry.h2 > direntry.h
./compile envdir.c
rm -f load
sh print-ld.sh > load
chmod 555 load
./compile alloc.c
./compile alloc_re.c
./compile buffer.c
./compile buffer_0.c
buffer_0.c: In function 'buffer_0_read':
buffer_0.c:5:5: warning: old-style function definition [-Wold-style-definition]
5 | int buffer_0_read(fd,buf,len) int fd; char *buf; int len;
| ^~~~~~~~~~~~~
./compile buffer_1.c
In file included from buffer_1.c:3:
buffer.h:14:61: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(int, const char *, unsigned int)' [-Wincompatible-pointer-types]
14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
| ^
buffer_1.c:6:20: note: in expansion of macro 'BUFFER_INIT'
6 | static buffer it = BUFFER_INIT(buffer_unixwrite,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
buffer.h:14:61: note: (near initialization for 'it.op')
14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
| ^
buffer_1.c:6:20: note: in expansion of macro 'BUFFER_INIT'
6 | static buffer it = BUFFER_INIT(buffer_unixwrite,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
buffer.h:53:12: note: 'buffer_unixwrite' declared here
53 | extern int buffer_unixwrite(int,const char *,unsigned int);
| ^~~~~~~~~~~~~~~~
make: *** [Makefile:40: buffer_1.o] Error 1
WARNING: exit code 2 from a shell command.