Hi there!

I tried to build ccache v3.2.4 and current git master with a MinGW
cross compiler and my MinGW/MSYS installation. I get the following
compiler errors.

ccache v3.2.3 works without any problems here. Is it possible to fix
this to get a working MinGW build again?

Best regards
   André




ccache.c:242:8: error: unknown type name 'sigset_t'
 static sigset_t fatal_signal_set;
        ^
ccache.c: In function 'block_signals':
ccache.c:326:2: error: implicit declaration of function 'sigprocmask'
[-Werror=implicit-function-declaration]
  sigprocmask(SIG_BLOCK, &fatal_signal_set, NULL);
  ^
ccache.c:326:14: error: 'SIG_BLOCK' undeclared (first use in this function)
  sigprocmask(SIG_BLOCK, &fatal_signal_set, NULL);
              ^
ccache.c:326:14: note: each undeclared identifier is reported only
once for each function it appears in
ccache.c: In function 'unblock_signals':
ccache.c:332:2: error: unknown type name 'sigset_t'
  sigset_t empty;
  ^
ccache.c:333:2: error: implicit declaration of function 'sigemptyset'
[-Werror=implicit-function-declaration]
  sigemptyset(&empty);
  ^
ccache.c:334:14: error: 'SIG_SETMASK' undeclared (first use in this function)
  sigprocmask(SIG_SETMASK, &empty, NULL);
              ^
ccache.c: In function 'signal_handler':
ccache.c:382:9: error: implicit declaration of function 'waitpid'
[-Werror=implicit-function-declaration]
      && waitpid(compiler_pid, NULL, WNOHANG) == 0) {
         ^
ccache.c:382:37: error: 'WNOHANG' undeclared (first use in this function)
      && waitpid(compiler_pid, NULL, WNOHANG) == 0) {
                                     ^
ccache.c:383:3: error: implicit declaration of function 'kill'
[-Werror=implicit-function-declaration]
   kill(compiler_pid, signum);
   ^
ccache.c: In function 'register_signal_handler':
ccache.c:401:19: error: storage size of 'act' isn't known
  struct sigaction act;
                   ^
ccache.c:405:17: error: 'SA_RESTART' undeclared (first use in this function)
  act.sa_flags = SA_RESTART;
                 ^
ccache.c:406:2: error: implicit declaration of function 'sigaction'
[-Werror=implicit-function-declaration]
  sigaction(signum, &act, NULL);
  ^
ccache.c:401:19: error: unused variable 'act' [-Werror=unused-variable]
  struct sigaction act;
                   ^
ccache.c: In function 'set_up_signal_handlers':
ccache.c:413:2: error: implicit declaration of function 'sigaddset'
[-Werror=implicit-function-declaration]
  sigaddset(&fatal_signal_set, SIGINT);
  ^
ccache.c: In function 'to_cache':
ccache.c:966:74: error: macro "execute" passed 4 arguments, but takes just 3
  status = execute(args->argv, tmp_stdout_fd, tmp_stderr_fd, &compiler_pid);
                                                                          ^
ccache.c:966:9: error: assignment makes integer from pointer without a
cast [-Werror=int-conversion]
  status = execute(args->argv, tmp_stdout_fd, tmp_stderr_fd, &compiler_pid);
         ^
ccache.c:913:29: error: variable 'tmp_stderr_fd' set but not used
[-Werror=unused-but-set-variable]
  int status, tmp_stdout_fd, tmp_stderr_fd;
                             ^
ccache.c:913:14: error: variable 'tmp_stdout_fd' set but not used
[-Werror=unused-but-set-variable]
  int status, tmp_stdout_fd, tmp_stderr_fd;
              ^
ccache.c: In function 'get_object_name_from_cpp':
ccache.c:1229:77: error: macro "execute" passed 4 arguments, but takes just 3
   status = execute(args->argv, path_stdout_fd, path_stderr_fd, &compiler_pid);
                                                                             ^
ccache.c:1229:10: error: assignment makes integer from pointer without
a cast [-Werror=int-conversion]
   status = execute(args->argv, path_stdout_fd, path_stderr_fd, &compiler_pid);
          ^
ccache.c:1221:7: error: variable 'path_stdout_fd' set but not used
[-Werror=unused-but-set-variable]
   int path_stdout_fd;
       ^
ccache.c:1192:14: error: variable 'path_stderr_fd' set but not used
[-Werror=unused-but-set-variable]
  int status, path_stderr_fd;
              ^
cc1: all warnings being treated as errors
Makefile:110: recipe for target 'ccache.o' failed
make: *** [ccache.o] Error 1

_______________________________________________
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache

Reply via email to