From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "H. Dieter Wilhelm" Newsgroups: gmane.emacs.devel Subject: Re: Current master doesn't build on Win10 (nor does emacs-28) Date: Sun, 24 Oct 2021 19:56:26 +0200 Message-ID: References: <86mtn1nkz6.fsf@gnu.org> <838ryl6nff.fsf@gnu.org> <86o87glimf.fsf@gmail.com> <86ee8bef2f.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (windows-nt) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 24 19:58:56 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 1mehlm-00066R-Oo for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Oct 2021 19:58:54 +0200 Original-Received: from localhost ([::1]:43132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mehll-00050A-OE for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Oct 2021 13:58:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mehjV-00029L-Vn for emacs-devel@gnu.org; Sun, 24 Oct 2021 13:56:34 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:34885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mehjT-0005Nd-Q0 for emacs-devel@gnu.org; Sun, 24 Oct 2021 13:56:33 -0400 Original-Received: from VSL7V7PW ([92.116.135.84]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MlNgz-1n5oUI28NB-00lo08; Sun, 24 Oct 2021 19:56:27 +0200 In-Reply-To: <86ee8bef2f.fsf_-_@gmail.com> (Andy Moreton's message of "Sat, 23 Oct 2021 20:06:32 +0100") X-Provags-ID: V03:K1:hllf/BWneiMxO0veyXf+eQYhNx62J0BhDWeY39FC6Q4Ubqe6lUQ LS+30bMAGC2o5DDrT6IcKu0SWPBoT87tIx1cxOC2eojyKgFZrLCIk/3PMbMC/jtK8tV+W5F rOHKehy0POrPYNfByfV+2mz5EC15sJ0OvKPUlMIS6spxyr29XSJo5/sihvSTY44Hl3KwyH5 mEs53mxlJdilv9tNrW8Lw== X-UI-Out-Filterresults: notjunk:1;V03:K0:51T67/8Gsas=:Egu5r8SwSiwjN0pfwzXlV+ Jqyoa/oNVdFH6G3Xx5mmlVOZDhZXjil2xiUbob3mTcjLzRaSFtMgPix+DaB4/msGZ+6u98Byg tanEoDbjmszbXPC30+tCOtyapmTBRHhs7iDcRrvB8JkNQM1ehPKL4/qX+t3Y3p6goZLJkjDPE KjGUaKDplZu2HgZjKehHwqAusQ1ZySWjsdagjYrHsn+Pifvw19o7gD65L3p1LhGguaaLY551S BvjZyOPK3lj2/VL2BbetaWWYbiNlcwmt8BtAcfyGn0lz+gtXDL3OBjYeDYtq2fNSPx2uc0TBV 6oxMmTfHolT2z57YcRWHBDYJ0OKXpV6aQsyVew1Cb55lN+bttW0y2T3/+NB9IF5fcfbcb/wps 7SQUHsgSxjT7eLk5ncLWcEbbbm1h1uPcuxbCJu0TCWXMIHxcyWpXwnEiHRR/A4CO4LUJp94r5 bE07ykx0eToFeygkaJQ+9BRlyNJIUZikntTYkLF7EBg1R1fu7CrnevmxV7e3VW8oL9GnnDHUs RS5zQJVNLOYDW7ZvbaJ0T6UvU49sX1TPi4I6C7QBBhiCMYqdx6n8WCrHkrGJwnzYLUvziliel 4GpwAkECEYUBjQBHE9lNo3JC7+uCBsmvVCCrPi9ix/1ue3KPd36BnBnICw06F6/1lCjpQzHfK tEfwIkXyvg6ippa19zHNUoJiXPular+KGrSD78fP/U+IcyyW310+lQdTSOUuTGzARdqzHjT+u 6AGGraKAwDVosUao Received-SPF: none client-ip=212.227.126.133; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:277670 Archived-At: Andy Moreton writes: > On Sat 23 Oct 2021, Andy Moreton wrote: > >> On Fri 22 Oct 2021, Eli Zaretskii wrote: >> >>>> 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). >> >> I see this too. It seems to be an issue with gnulib and GCC 11. >> Commenting out this hunk from lib/string.in.h L456 works around the problem. >> >> # if __GNUC__ >= 11 && !defined strdup >> /* For -Wmismatched-dealloc: Associate strdup with free or rpl_free. */ >> _GL_FUNCDECL_SYS (strdup, char *, >> (char const *__s) >> _GL_ARG_NONNULL ((1)) >> _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); >> # endif >> >> >> Hopefully Paul Eggert will be along soon to come up with a proper fix in >> gnulib. > > Note that this problem also occurs on emacs-28, and the workaround above > also works. Thus this needs a gnulib fix before the release. I can't reproduce this for the emacs-28 branch with a pull from yesterday evening! It seems that make bootstrap make install is running through without any errors. The MSYS2 and MinGW collections are quite recent, but it seems gcc 11 is not installed. gcc --version => 10.3.0 Configured for 'x86_64-w64-mingw32'. Where should the build process find the source code? . What compiler should emacs be built with? gcc -g3 -O2 -gdwarf-2 Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? yes What window system should Emacs use? w32 What toolkit should Emacs use? none Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? yes Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes Does Emacs use a png library? yes Does Emacs use -lrsvg-2? yes Does Emacs use cairo? no Does Emacs use -llcms2? yes Does Emacs use imagemagick? no Does Emacs use native APIs for images? yes (w32) Does Emacs support sound? yes Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lgconf? no Does Emacs use GSettings? no Does Emacs use a file notification library? yes (w32) Does Emacs use access control lists? yes Does Emacs use -lselinux? no Does Emacs use -lgnutls? yes Does Emacs use -lxml2? yes Does Emacs use -lfreetype? no Does Emacs use HarfBuzz? yes Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use -lsystemd? no Does Emacs use -ljansson? yes Does Emacs use the GMP library? yes Does Emacs directly use zlib? yes Does Emacs have dynamic modules support? yes Does Emacs use toolkit scroll bars? yes Does Emacs support Xwidgets? no Does Emacs have threading support in lisp? yes Does Emacs support the portable dumper? yes Does Emacs support legacy unexec dumping? no Which dumping strategy does Emacs use? pdumper Does Emacs have native lisp compiler? no