From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: [w32] Build failure on master (pthread_sigmask.h) Date: Thu, 30 May 2019 14:04:26 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000036c073058a1a8bee" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249541"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 30 15:05:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWKka-0012d0-BL for ged-emacs-devel@m.gmane.org; Thu, 30 May 2019 15:05:44 +0200 Original-Received: from localhost ([127.0.0.1]:53830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWKkT-0006c1-02 for ged-emacs-devel@m.gmane.org; Thu, 30 May 2019 09:05:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWKjn-0006bt-NV for emacs-devel@gnu.org; Thu, 30 May 2019 09:04:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWKjm-0007OS-MS for emacs-devel@gnu.org; Thu, 30 May 2019 09:04:55 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:35875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWKjm-0007Nh-HF for emacs-devel@gnu.org; Thu, 30 May 2019 09:04:54 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id y124so4875788oiy.3 for ; Thu, 30 May 2019 06:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=e7yBvrJn1LTeAduhw/4cKY+D3p8lrzXkJ2FSA0RCjkg=; b=aP1R+ci+5VwuwYs4z2N9sCf0Y9KJQSziex2a8/oKDoPLEdOdH+CJvVyxS0B4e/Yj73 umcVz4RlwqKu8NY0PTw8oRLJIgKEJ0gCFkhTmxpZVKvM5mztk4rz3ww+pML5/l0uGqv0 mUqpy26dTyTlYmZqrnzcX77R1WeJQ07mgrSXZTraNygVf18T9f4DrfmRDxUmrsMSqhyR HMT4NZCG7yXNqmVjKUHizkdADgvstSLuFSosbU1EGPuO/b7v6Z/7jpBflx+oCcKOauBO hUmVNKPwKppoSw55eLu+kBS1Fq/taL1mMBnj2eB8KYvgNTkLA0Jig9tpPxdSfGZAQwA0 zZxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=e7yBvrJn1LTeAduhw/4cKY+D3p8lrzXkJ2FSA0RCjkg=; b=Z+Epr1tpKOFZCTemaH53dLqbVQHzHWn5Gu4dp0nvVFS1flinCA7ud74uW/VU8BtmAF 4iryy+Z6FSM1MKzRq8rCFyokHd8h8rr9ydKkWZnU9Y6xys7u1moyIUN9sK4hP/cKDuIQ IS7JwD4ABqrZceBmKgcWdc7Y/LnLvARfv3t+4gEV/fp1hE8CEUHV4POsVVGDNLXLvB53 QkYgYvmNvPZ/NTlyfcVStAxXfJaz0xgPP4nn/ooiHwjbk0MEUe6zCOhfI4rwmH7SmbZ8 1dPr4jVZdpVwjcFPRhn4fSES9PnTYMNBAoUjN8ZyI+BHmO+uFTKVCjPSUDFb+cmMKfs9 LCEg== X-Gm-Message-State: APjAAAWTYrrAeTk8/q2ebmF5T8+eL1tR5ecKg/vmVWyQIXccyPS0eZbc gArakcosLj/l4C4UyYWBkpuY22dfXod/3aY1j6yzTSf/ X-Google-Smtp-Source: APXvYqxShkqchFKxdVqjyZ/i5U98JGFUzymVvn3ybDCPYMSKaS0MHSt+FkXzqf+V+5skiDzuO8xQeQSH8OvIrFBO4Tg= X-Received: by 2002:aca:3906:: with SMTP id g6mr2236212oia.106.1559221492955; Thu, 30 May 2019 06:04:52 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237168 Archived-At: --00000000000036c073058a1a8bee Content-Type: text/plain; charset="UTF-8" Emacs master fails to build in MinGW-W64 (MSYS2). The cause seems to be that since the configuration changes in commit "Update from Gnulib" of Wed May 29 16:33:51 2019 -0700, we now include pthread_signal.h (< https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-libraries/winpthreads/include/pthread_signal.h>) which does this: #define pthread_sigmask(H, S1, S2) 0 The result: gcc -c -mtune=generic -DUSE_CRT_DLL=1 -I /c/projects/emacs/nt/inc -mtune=generic -MMD -MF deps/pthread_sigmask.d -MP -fno-common -O2 -I. -I../src -I. -I./../src pthread_sigmask.c In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/signal.h:10, from pthread_sigmask.c:20: pthread_sigmask.c:34:1: error: expected identifier or '(' before numeric constant 34 | pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask) | ^~~~~~~~~~~~~~~ --00000000000036c073058a1a8bee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs master fails to build in MinGW-W64 (MSYS2).
=

The cause seems to be that since the configuratio= n changes in commit "Update from Gnulib" of Wed May 29 16:33:51 2= 019 -0700, we now include pthread_signal.h (<https://sourceforge.net/p/mingw-w64/mingw-w64/c= i/master/tree/mingw-w64-libraries/winpthreads/include/pthread_signal.h&= gt;) which does this:

#define pthread_sigmask(H, S= 1, S2) 0

The result:

gcc =C2= =A0-c -mtune=3Dgeneric =C2=A0 -DUSE_CRT_DLL=3D1 -I /c/projects/emacs/nt/inc= -mtune=3Dgeneric =C2=A0-MMD -MF deps/pthread_sigmask.d -MP -fno-common -O2= -I. -I../src -I. -I./../src =C2=A0pthread_sigmask.c
In file included fr= om C:/msys64/mingw64/x86_64-w64-mingw32/include/signal.h:10,
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from pthread_sigmask.c:= 20:
pthread_sigmask.c:34:1: error: expected identifier or '(' be= fore numeric constant
=C2=A0 =C2=A034 | pthread_sigmask (int how, const = sigset_t *new_mask, sigset_t *old_mask)
=C2=A0 =C2=A0 =C2=A0 | ^~~~= ~~~~~~~~~~~

--00000000000036c073058a1a8bee--