[ 48%] Building C object lib/CMakeFiles/chiaki-lib.dir/src/stoppipe.c.o
/app/lib/src/stoppipe.c: In function 'chiaki_stop_pipe_select_single':
/app/lib/src/stoppipe.c:104:2: error: unknown type name 'fd_set'; did you mean 'false'?
fd_set fds;
^~~~~~
false
/app/lib/src/stoppipe.c:105:2: warning: implicit declaration of function 'FD_ZERO' [-Wimplicit-function-declaration]
FD_ZERO(&fds);
^~~~~~~
/app/lib/src/stoppipe.c:106:2: warning: implicit declaration of function 'FD_SET'; did you mean 'L_SET'? [-Wimplicit-function-declaration]
FD_SET(stop_pipe->fds[0], &fds);
^~~~~~
L_SET
/app/lib/src/stoppipe.c:117:17: error: storage size of 'timeout_s' isn't known
struct timeval timeout_s;
^~~~~~~~~
/app/lib/src/stoppipe.c:126:10: warning: implicit declaration of function 'select'; did you mean 'execl'? [-Wimplicit-function-declaration]
int r = select(nfds, &fds, NULL, NULL, timeout);
^~~~~~
execl
/app/lib/src/stoppipe.c:130:5: warning: implicit declaration of function 'FD_ISSET'; did you mean 'AF_INET'? [-Wimplicit-function-declaration]
if(FD_ISSET(stop_pipe->fds[0], &fds))
^~~~~~~~
AF_INET
make[2]: *** [lib/CMakeFiles/chiaki-lib.dir/build.make:336: lib/CMakeFiles/chiaki-lib.dir/src/stoppipe.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:275: lib/CMakeFiles/chiaki-lib.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
The command '/bin/sh -c mkdir build && cd build && cmake .. && make' returned a non-zero code: 2
shell returned 2