From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Current master doesn't build on Win10 Date: Fri, 22 Oct 2021 19:20:52 +0300 Message-ID: <838ryl6nff.fsf@gnu.org> References: <86mtn1nkz6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4728"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arash Esbati Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 22 18:21:55 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdxIo-00013L-VG for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Oct 2021 18:21:54 +0200 Original-Received: from localhost ([::1]:52194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdxIn-0004AT-HW for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Oct 2021 12:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdxI3-0002u0-1u for emacs-devel@gnu.org; Fri, 22 Oct 2021 12:21:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53264) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdxI2-0000Om-Pr for emacs-devel@gnu.org; Fri, 22 Oct 2021 12:21:06 -0400 Original-Received: from [87.69.77.57] (port=4763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdxI2-00031O-9n; Fri, 22 Oct 2021 12:21:06 -0400 In-Reply-To: <86mtn1nkz6.fsf@gnu.org> (message from Arash Esbati on Fri, 22 Oct 2021 17:21:49 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277569 Archived-At: > From: Arash Esbati > Date: Fri, 22 Oct 2021 17:21:49 +0200 > > current master (commit f7a2ff3b) doesn't build with Msys2. The message > is: > > --8<---------------cut here---------------start------------->8--- > make[1]: Entering directory '/z/pathto/emacs/lib-src' > CC ntlib.o > RC emacsclient.res > CC pop.o > In file included from z:/pathto/msys64/mingw64/x86_64-w64-mingw32/include/guiddef.h:154, > from z:/pathto/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:635, > from z:/pathto/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163, > from z:/pathto/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:9, > from z:/pathto/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, > from ntlib.c:23: > ../lib/string.h:965:1: error: expected ',' or ';' before '_GL_ATTRIBUTE_MALLOC' > 965 | _GL_FUNCDECL_SYS (strdup, char *, > | ^~~~~~~~~~~~~~~~ > make[1]: *** [Makefile:418: ntlib.o] Error 1 > make[1]: Leaving directory '/z/pathto/emacs/lib-src' > --8<---------------cut here---------------end--------------->8--- > > I'm not sure this is an Emacs issue or not. GCC 11.2 landed also today > on my HD. Can others reproduce this? lib/string.h is a Gnulib header, so I suggest to report this to bug-gnulib@gnu.org. Or maybe it's some problem with MinGW64 headers (did that get updated as well recently?). In any case, I just rebuilt the relevant files, and saw no problem (I'm a happy user of GCC 9.2.0).