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: MinGW build on master fails with Error 127 Date: Sat, 24 Dec 2022 08:36:38 +0200 Message-ID: <837cyh71ft.fsf@gnu.org> References: <83wn6wr5oz.fsf@gnu.org> <0c9519c9-add7-9fb1-ac7f-2f20e1916d65@bluewin.ch> <83tu20r4y7.fsf@gnu.org> <01b7362d-7d60-3054-5590-d4dbbcda76d7@bluewin.ch> <83r0x4r490.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Loreno Heer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 24 07:37:20 2022 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 1p8y9n-0000Fi-Lv for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Dec 2022 07:37:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8y9M-0001oZ-AD; Sat, 24 Dec 2022 01:36:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8y9E-0001oC-12 for emacs-devel@gnu.org; Sat, 24 Dec 2022 01:36:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8y9C-0006SP-5c; Sat, 24 Dec 2022 01:36:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aJXAGlfmJ1VOgugxZG5+Fc1XpyVBCPP3BCnzwcsaBFY=; b=a1ENwp7H+SZp VBKT0Qxyc82CK/mf3AmyIDWYiBfPXOsfbk3wfB+fU5qttOh0OrNN9eecCJSBcGVJN4gYeHVs3TnWV Zs685/qW8DPhGbqccYnIF6Zz4GquxT8ObUYtRWMmE1W/ku0FuriEvajVLRHH/0GBC4hSDkJ602Zlz LXOpN+qOGH0YjV4zVWbpE3wfOxT6tX6e3cmWzJ6IUS/OWcBfVwUMWDwmehSOS47xv++lP9TsEJjuE 5xuE4hn59fnCJG6GBdz9fVl8gZ3/HTVk1d3C79CabxlzU9e97t/IbBcFDMqMXkWDDK8rlkd7MRMrg 4N0ImuMC8/0r6SUd1uotSQ==; Original-Received: from [87.69.77.57] (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 1p8y9B-00049S-B7; Sat, 24 Dec 2022 01:36:41 -0500 In-Reply-To: (message from Loreno Heer on Fri, 23 Dec 2022 22:45:22 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301824 Archived-At: > Date: Fri, 23 Dec 2022 22:45:22 +0100 > Cc: emacs-devel@gnu.org > From: Loreno Heer > > I got it to build by manually setting > > #define _WIN32_WINNT 0x0601 > > in the emacs config.h file. > Not sure why but this variable seems to have the (wrong) value of 0x0603 > on my system (Windows 7 ESR). I don't know if this is a variable that > emacs build defines somewhere or the msys build system. Emacs doesn't set _WIN32_WINNT to this value anywhere. (And anyway, I don't see how setting it to a higher value could do any harm, when 0x0601 does work.) So please take this up with the MinGW64/MSYS2 developers, because it sounds like some problem with their system headers. I don't see any evidence here that there's something wrong in Emacs which causes this problem. Especially since it started happening lately, and happens with older Emacs versions as well, where no changes have been done.