From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: MinGW build on master fails with Error 127 Date: Sat, 24 Dec 2022 16:31:57 +0100 Message-ID: <87sfh424ya.fsf@telefonica.net> 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> <837cyh71ft.fsf@gnu.org> <832966a5-bd27-76f9-4757-a8c246eca416@bluewin.ch> <835ye06ex7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Loreno Heer , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 24 16:33:01 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 1p96WC-00010Y-PK for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Dec 2022 16:33:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p96Vo-0002Yh-DB; Sat, 24 Dec 2022 10:32:36 -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 1p96VR-0002Ve-1v for emacs-devel@gnu.org; Sat, 24 Dec 2022 10:32:34 -0500 Original-Received: from relayout01-redir.e.movistar.es ([86.109.101.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p96VO-0008Vk-KV; Sat, 24 Dec 2022 10:32:12 -0500 Original-Received: from sky (91.red-81-39-16.dynamicip.rima-tde.net [81.39.16.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout01.e.movistar.es (Postfix) with ESMTPSA id 4NfShZ75Blzfb6N; Sat, 24 Dec 2022 16:31:57 +0100 (CET) In-Reply-To: <835ye06ex7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Dec 2022 16:43:00 +0200") X-TnetOut-Country: IP: 81.39.16.91 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 4NfShZ75Blzfb6N.A9CEA X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1672500719.27614@pks1Q90AghitVDYn3UvcMw Received-SPF: softfail client-ip=86.109.101.201; envelope-from=ofv@wanadoo.es; helo=relayout01-redir.e.movistar.es 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action 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:301853 Archived-At: Eli Zaretskii writes: >> Date: Sat, 24 Dec 2022 15:18:02 +0100 >> Cc: emacs-devel@gnu.org >> From: Loreno Heer >> >> I did and if I understand it correctly they basically say that they did >> some change but it is now up to emacs to change the build behavior: >> >> https://github.com/msys2/MINGW-packages/issues/14573#issuecomment-1364532147 > > Are you building Emacs on Windows 7? If yes, I understand what they > are saying: that MinGW64 no longer supports Windows 7. Please note that MinGW-w64 and MSYS2 (which includes MINGW-packages) are different projects. MSYS2 builds, packages and distributes MinGW-w64. MSYS2 decided to bump _WIN32_WINNT in our build scripts, which has implications for Emacs (see below) but that's independent of what MinGW-w64 actually, officially supports. > If you build on a later version of Windows, then I don't understand > what they are saying: > > As examples mentioned on #14452 illustrate, a package can support > Win7 fine but if we say to its build system that we target >Win7 the > resulting binary may be incompatible with Win7. This means in > practice that Emacs (or any other software) can't rely on using our > packages as runtime dependencies for supporting Win7. I wrote the text you quote above, so I'll explain. Some packages (including the MinGW-w64 runtime) implement compile-time conditionals for preferring certain APIs over others depending on the target OS version. So once we start distributing binary packages built with the bumped _WIN32_WINNT value, some Emacs dependencies may fail to run on Windows 7. Which is basically what you say here: > Emacs will support MS-Windows versions as old as Windows 9X, as long > as the MinGW headers and runtime support those versions. If your > MinGW supports only Windows versions newer than some version N, then > Emacs cannot magically overcome this limitation, and will also support > only versions of Windows newer than N.