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
./compile buffer_1.c
./compile buffer_2.c
./compile buffer_get.c
./compile buffer_put.c
buffer_put.c: In function 'buffer_putalign':
buffer_put.c:40:29: warning: passing argument 3 of 'byte_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
40 | byte_copy(s->x + s->p,n,buf); s->p += n; buf += n; len -= n;
| ^~~
In file included from buffer_put.c:5:
byte.h:8:80: note: expected 'char *' but argument is of type 'const char *'
8 | extern void byte_copy(register char* to,register unsigned int n,register char* from);
| ~~~~~~~~~~~~~~~^~~~
buffer_put.c:44:29: warning: passing argument 3 of 'byte_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
44 | byte_copy(s->x + s->p,len,buf);
| ^~~
byte.h:8:80: note: expected 'char *' but argument is of type 'const char *'
8 | extern void byte_copy(register char* to,register unsigned int n,register char* from);
| ~~~~~~~~~~~~~~~^~~~
buffer_put.c: In function 'buffer_put':
buffer_put.c:66:29: warning: passing argument 3 of 'byte_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
66 | byte_copy(s->x + s->p,len,buf);
| ^~~
byte.h:8:80: note: expected 'char *' but argument is of type 'const char *'
8 | extern void byte_copy(register char* to,register unsigned int n,register char* from);
| ~~~~~~~~~~~~~~~^~~~
./compile buffer_read.c
./compile buffer_write.c
./compile coe.c
./compile env.c
./compile error.c
./compile error_str.c
./compile fd_copy.c
./compile fd_move.c
./choose cl trymkffo hasmkffo.h1 hasmkffo.h2 > hasmkffo.h
./compile fifo.c
./choose cl tryflock hasflock.h1 hasflock.h2 > hasflock.h
./compile lock_ex.c
./compile lock_exnb.c
./compile ndelay_off.c
./compile ndelay_on.c
./compile open_append.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./compile openreadclose.c
./compile pathexec_env.c
In file included from pathexec_env.c:6:
pathexec_env.c: In function 'pathexec':
pathexec_env.c:55:42: warning: passing argument 3 of 'byte_diff' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
55 | if (byte_equal(plus.s + j,split,e[t]))
byte.h:13:48: note: in definition of macro 'byte_equal'
13 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
| ^
byte.h:10:78: note: expected 'char *' but argument is of type 'const char *'
10 | extern int byte_diff(register char* s,register unsigned int n,register char* t);
| ~~~~~~~~~~~~~~~^
pathexec_env.c:68:14: error: passing argument 1 of 'alloc_free' from incompatible pointer type [-Wincompatible-pointer-types]
68 | alloc_free(e);
| ^
| |
| const char **
In file included from pathexec_env.c:4:
alloc.h:7:30: note: expected 'char *' but argument is of type 'const char **'
7 | extern void alloc_free(char *x);
| ~~~~~~^
make: *** [Makefile:240: pathexec_env.o] Error 1
WARNING: TOPDIR/tmp/work/core2-64-poky-linux/daemontools/0.76/temp/run.do_compile.948929:140 exit 2 from './package/compile'
WARNING: Backtrace (BB generated script):
#1: do_compile, TOPDIR/tmp/work/core2-64-poky-linux/daemontools/0.76/temp/run.do_compile.948929, line 140
#2: main, TOPDIR/tmp/work/core2-64-poky-linux/daemontools/0.76/temp/run.do_compile.948929, line 144