Build of sbcl-1.4.0 fails under Cygwin on Windows 10

Bug #1720642 reported by Paul F. Dietz on 2017-10-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

Attempting to build sbcl-1.4.0 under Cygwin64 on a Windows10 machine, I get these C compile errors. I'm not clear if these are expected errors at this point, but I didn't see a relevant bug here.

//entering make-target-1.sh
//building runtime system and symbol table file
make: Entering directory '/home/paulf/sbcl-1.4.0-source/src/runtime'
rm -f *.[do] sbcl.exe sbcl.nm sbcl.h core *.tmp
make: Leaving directory '/home/paulf/sbcl-1.4.0-source/src/runtime'
make: Entering directory '/home/paulf/sbcl-1.4.0-source/src/runtime'
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/constants.h"' >>sbcl.h
gcc -g -W -Wall -Wno-unused-function -fno-omit-frame-pointer -O5 -m64 -DWINVER=0x0501 -D__W32API_USE_DLLIMPORT__ -fno-pie -I. -DSBCL_PREFIX=\"'/home/paulf/sbcl-1.4.0'\" -c -o alloc.o alloc.c
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:9:13: error: conflicting types for 'sigset_t'
 typedef int sigset_t;
             ^~~~~~~~
In file included from /usr/include/sys/types.h:68:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/select.h:31:20: note: previous declaration of 'sigset_t' was here
 typedef __sigset_t sigset_t;
                    ^~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:30:0: warning: "SIGPIPE" redefined
 #define SIGPIPE 5

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:380:0: note: this is the location of the previous definition
 #define SIGPIPE 13 /* write on a pipe with no one to read it */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:31:0: warning: "SIGALRM" redefined
 #define SIGALRM 6

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:381:0: note: this is the location of the previous definition
 #define SIGALRM 14 /* alarm clock */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:32:0: warning: "SIGURG" redefined
 #define SIGURG 7

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:383:0: note: this is the location of the previous definition
 #define SIGURG 16 /* urgent condition on IO channel */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:34:0: warning: "SIGTSTP" redefined
 #define SIGTSTP 9

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:385:0: note: this is the location of the previous definition
 #define SIGTSTP 18 /* stop signal from tty */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:35:0: warning: "SIGCHLD" redefined
 #define SIGCHLD 10

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:387:0: note: this is the location of the previous definition
 #define SIGCHLD 20 /* to parent on child stop or exit */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:37:0: warning: "SIGIO" redefined
 #define SIGIO 12

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:391:0: note: this is the location of the previous definition
 #define SIGIO 23 /* input/output possible signal */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:38:0: warning: "SIGXCPU" redefined
 #define SIGXCPU 13

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:393:0: note: this is the location of the previous definition
 #define SIGXCPU 24 /* exceeded CPU time limit */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:39:0: warning: "SIGXFSZ" redefined
 #define SIGXFSZ 14

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:394:0: note: this is the location of the previous definition
 #define SIGXFSZ 25 /* exceeded file size limit */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:41:0: warning: "SIGVTALRM" redefined
 #define SIGVTALRM 16

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:395:0: note: this is the location of the previous definition
 #define SIGVTALRM 26 /* virtual time alarm */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:42:0: warning: "SIGPROF" redefined
 #define SIGPROF 17

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:396:0: note: this is the location of the previous definition
 #define SIGPROF 27 /* profiling time alarm */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:43:0: warning: "SIGWINCH" redefined
 #define SIGWINCH 18

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:397:0: note: this is the location of the previous definition
 #define SIGWINCH 28 /* window changed */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:45:0: warning: "SIGABRT" redefined
 #define SIGABRT 22 /* Abnormal termination (abort) */

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:372:0: note: this is the location of the previous definition
 #define SIGABRT 6 /* used by abort */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:47:0: warning: "SIGRTMIN" redefined
 #define SIGRTMIN 23

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:410:0: note: this is the location of the previous definition
 #define SIGRTMIN 32

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:62:32: error: conflicting types for 'pthread_t'
 typedef struct pthread_thread* pthread_t;
                                ^~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:15:45: note: previous declaration of 'pthread_t' was here
 typedef struct __pthread_t {char __dummy;} *pthread_t;
                                             ^~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:66:3: error: conflicting types for 'pthread_attr_t'
 } pthread_attr_t;
   ^~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:19:50: note: previous declaration of 'pthread_attr_t' was here
 typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
                                                  ^~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:82:5: error: conflicting types for 'pthread_kill'
 int pthread_kill(pthread_t thread, int signum);
     ^~~~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:228:5: note: previous declaration of 'pthread_kill' was here
 int _EXFUN(pthread_kill, (pthread_t thread, int sig));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:90:15: error: conflicting types for 'pthread_key_t'
 typedef DWORD pthread_key_t;
               ^~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:18:49: note: previous declaration of 'pthread_key_t' was here
 typedef struct __pthread_key_t {char __dummy;} *pthread_key_t;
                                                 ^~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:95:0: warning: "SIG_SETMASK" redefined
 #define SIG_SETMASK 3

In file included from /usr/include/signal.h:6:0,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:160:0: note: this is the location of the previous definition
 #define SIG_SETMASK 0 /* set mask with sigprocmask() */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:126:34: error: conflicting types for 'pthread_mutex_t'
 } __attribute__((aligned(128))) *pthread_mutex_t;
                                  ^~~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:16:51: note: previous declaration of 'pthread_mutex_t' was here
 typedef struct __pthread_mutex_t {char __dummy;} *pthread_mutex_t;
                                                   ^~~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:128:13: error: conflicting types for 'pthread_mutexattr_t'
 typedef int pthread_mutexattr_t;
             ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:20:55: note: previous declaration of 'pthread_mutexattr_t' was here
 typedef struct __pthread_mutexattr_t {char __dummy;} *pthread_mutexattr_t;
                                                       ^~~~~~~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:162:3: error: conflicting types for 'pthread_cond_t'
 } pthread_cond_t;
   ^~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:22:50: note: previous declaration of 'pthread_cond_t' was here
 typedef struct __pthread_cond_t {char __dummy;} *pthread_cond_t;
                                                  ^~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:168:3: error: conflicting types for 'pthread_condattr_t'
 } pthread_condattr_t;
   ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:21:54: note: previous declaration of 'pthread_condattr_t' was here
 typedef struct __pthread_condattr_t {char __dummy;} *pthread_condattr_t;
                                                      ^~~~~~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:171:16: error: redefinition of 'struct timespec'
 typedef struct timespec {
                ^~~~~~~~
In file included from /usr/include/sys/timespec.h:38:0,
                 from /usr/include/sys/select.h:27,
                 from /usr/include/sys/types.h:68,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_timespec.h:45:8: note: originally defined here
 struct timespec {
        ^~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:281:13: error: conflicting types for 'pthread_once_t'
 typedef int pthread_once_t;
             ^~~~~~~~~~~~~~
In file included from /usr/include/sys/types.h:239:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/_pthreadtypes.h:32:1: note: previous declaration of 'pthread_once_t' was here
 pthread_once_t;
 ^~~~~~~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:292:3: error: conflicting types for 'siginfo_t'
 } siginfo_t;
   ^~~~~~~~~
In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:254:3: note: previous declaration of 'siginfo_t' was here
 } siginfo_t;
   ^~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:294:0: warning: "SA_SIGINFO" redefined
 #define SA_SIGINFO (1u<<1)

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:339:0: note: this is the location of the previous definition
 #define SA_SIGINFO 2 /* Invoke the signal catching function

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:295:0: warning: "SA_NODEFER" redefined
 #define SA_NODEFER (1u<<2)

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:346:0: note: this is the location of the previous definition
 #define SA_NODEFER 0x40000000 /* Don't automatically block the signal

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:296:0: warning: "SA_RESTART" redefined
 #define SA_RESTART (1u<<3)

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:342:0: note: this is the location of the previous definition
 #define SA_RESTART 0x10000000 /* Restart syscall on signal return */

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:297:0: warning: "SA_ONSTACK" redefined
 #define SA_ONSTACK (1u<<4)

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:343:0: note: this is the location of the previous definition
 #define SA_ONSTACK 0x20000000 /* Call signal handler on alternate

In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:299:8: error: redefinition of 'struct sigaction'
 struct sigaction {
        ^~~~~~~~~
In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:324:8: note: originally defined here
 struct sigaction
        ^~~~~~~~~
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:305:5: error: conflicting types for 'sigaction'
 int sigaction(int signum, const struct sigaction* act, struct sigaction* oldact);
     ^~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:185:5: note: previous declaration of 'sigaction' was here
 int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:307:5: error: conflicting types for 'sigpending'
 int sigpending(sigset_t *set);
     ^~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:191:5: note: previous declaration of 'sigpending' was here
 int _EXFUN(sigpending, (sigset_t *));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:330:5: error: conflicting types for 'sigemptyset'
 int sigemptyset(sigset_t *set);
     ^~~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:190:5: note: previous declaration of 'sigemptyset' was here
 int _EXFUN(sigemptyset, (sigset_t *));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:331:5: error: conflicting types for 'sigfillset'
 int sigfillset(sigset_t *set);
     ^~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:189:5: note: previous declaration of 'sigfillset' was here
 int _EXFUN(sigfillset, (sigset_t *));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:332:5: error: conflicting types for 'sigaddset'
 int sigaddset(sigset_t *set, int signum);
     ^~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:186:5: note: previous declaration of 'sigaddset' was here
 int _EXFUN(sigaddset, (sigset_t *, const int));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:333:5: error: conflicting types for 'sigdelset'
 int sigdelset(sigset_t *set, int signum);
     ^~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:187:5: note: previous declaration of 'sigdelset' was here
 int _EXFUN(sigdelset, (sigset_t *, const int));
     ^
In file included from runtime.h:19:0,
                 from alloc.h:16,
                 from alloc.c:18:
pthreads_win32.h:334:5: error: conflicting types for 'sigismember'
 int sigismember(const sigset_t *set, int signum);
     ^~~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/signal.h:188:5: note: previous declaration of 'sigismember' was here
 int _EXFUN(sigismember, (const sigset_t *, int));
     ^
In file included from /usr/include/w32api/winsock2.h:56:0,
                 from win32-os.h:16,
                 from target-os.h:1,
                 from os.h:63,
                 from runtime-options.h:15,
                 from globals.h:19,
                 from thread.h:8,
                 from gc-internal.h:32,
                 from alloc.h:17,
                 from alloc.c:18:
/usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
 #warning "fd_set and associated macros have been defined in sys/types. \
  ^~~~~~~
In file included from win32-os.h:16:0,
                 from target-os.h:1,
                 from os.h:63,
                 from runtime-options.h:15,
                 from globals.h:19,
                 from thread.h:8,
                 from gc-internal.h:32,
                 from alloc.h:17,
                 from alloc.c:18:
/usr/include/w32api/winsock2.h:995:34: error: conflicting types for 'select'
   WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
                                  ^~~~~~
In file included from /usr/include/sys/types.h:68:0,
                 from /usr/include/time.h:28,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/select.h:73:5: note: previous declaration of 'select' was here
 int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
     ^~~~~~
In file included from win32-os.h:16:0,
                 from target-os.h:1,
                 from os.h:63,
                 from runtime-options.h:15,
                 from globals.h:19,
                 from thread.h:8,
                 from gc-internal.h:32,
                 from alloc.h:17,
                 from alloc.c:18:
/usr/include/w32api/winsock2.h:1004:34: error: conflicting types for 'gethostname'
   WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
                                  ^~~~~~~~~~~
In file included from /usr/include/time.h:10:0,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/sys/unistd.h:280:6: note: previous declaration of 'gethostname' was here
  int _EXFUN(gethostname, (char *__name, size_t __len));
      ^
In file included from gc-internal.h:32:0,
                 from alloc.h:17,
                 from alloc.c:18:
thread.h:249:0: warning: "SIGSTKSZ" redefined
 #define SIGSTKSZ 1024

In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from pthreads_win32.h:4,
                 from runtime.h:19,
                 from alloc.h:16,
                 from alloc.c:18:
/usr/include/cygwin/signal.h:363:0: note: this is the location of the previous definition
 #define SIGSTKSZ 32768

In file included from gc-internal.h:32:0,
                 from alloc.h:17,
                 from alloc.c:18:
thread.h: In function 'lisp_thread_p':
thread.h:312:47: warning: unused parameter 'context' [-Wunused-parameter]
 inline static int lisp_thread_p(os_context_t *context) {
                                               ^~~~~~~
In file included from alloc.h:17:0,
                 from alloc.c:18:
gc-internal.h: In function 'function_layout':
gc-internal.h:281:48: warning: unused parameter 'fun_ptr' [-Wunused-parameter]
 static inline lispobj function_layout(lispobj* fun_ptr) { // native ptr
                                                ^~~~~~~
gc-internal.h: In function 'set_function_layout':
gc-internal.h:284:49: warning: unused parameter 'fun_ptr' [-Wunused-parameter]
 static inline void set_function_layout(lispobj* fun_ptr, lispobj layout) {
                                                 ^~~~~~~
gc-internal.h:284:66: warning: unused parameter 'layout' [-Wunused-parameter]
 static inline void set_function_layout(lispobj* fun_ptr, lispobj layout) {
                                                                  ^~~~~~
In file included from alloc.h:17:0,
                 from alloc.c:18:
gc-internal.h: In function 'immobile_filler_p':
gc-internal.h:313:50: warning: unused parameter 'obj' [-Wunused-parameter]
 static inline boolean immobile_filler_p(lispobj* obj) { return 0; }
                                                  ^~~
make: *** [<builtin>: alloc.o] Error 1
make: Leaving directory '/home/paulf/sbcl-1.4.0-source/src/runtime'

real 0m55.855s
user 0m37.384s
sys 0m12.501s

Stas Boukarev (stassats) wrote :

Cygwin is not really supporter anymore, try Msys2.

Changed in sbcl:
status: New → Won't Fix
Paul F. Dietz (paul-f-dietz) wrote :

Ok, thanks.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers