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: Sun, 25 Dec 2022 15:25:50 +0100 Message-ID: <87sfh3y2z5.fsf@telefonica.net> References: <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> <87sfh424ya.fsf@telefonica.net> <83y1qw4x8w.fsf@gnu.org> <87o7rs22yn.fsf@telefonica.net> <83v8m04un9.fsf@gnu.org> <87cz8820hx.fsf@telefonica.net> <83sfh44t2t.fsf@gnu.org> <878riw1y70.fsf@telefonica.net> <83pmc84qs3.fsf@gnu.org> <87zgbczl3g.fsf@telefonica.net> <83lemw4nz1.fsf@gnu.org> <87wn6gxkrp.fsf@telefonica.net> <837cyf51k0.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="17556"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Cancel-Lock: sha1:Z6j/uZ398IUZiJS93GhouRyFkl4= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 26 04:19:25 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 1p9e1N-0004Lg-7d for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Dec 2022 04:19:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9e0v-0004qu-2y; Sun, 25 Dec 2022 22:18:57 -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 1p9Rww-0000zr-1o for emacs-devel@gnu.org; Sun, 25 Dec 2022 09:26:02 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9Rwu-0002VP-54 for emacs-devel@gnu.org; Sun, 25 Dec 2022 09:26:01 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1p9Rwr-0005mg-Se for emacs-devel@gnu.org; Sun, 25 Dec 2022 15:25:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 25 Dec 2022 22:18:55 -0500 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:301923 Archived-At: Eli Zaretskii writes: >> I fixed the URLs and simplified the instructions a bit. > > Thanks. (Please in the future make sure to leave two spaces between > sentences.) Uh! Sorry. > This part is unclear: > > ** Download and install MinGW-w64 and MSYS2 > > Go to https://msys2.org and follow the instructions. It is not > necessary to install the packages suggested on those instructions. > > What does the last sentence mean? which packages are unnecessary? > Some of them, all of them? The packages mentioned on msys2.org either are the "wrong" ones (UCRT64) or are already listed on INSTALL.W64. > Also, it looks like msys2.org tells users to install the UCRT64 > variety of MinGW, Yes, UCRT64 is the variety recommended by the MSYS2 team since recently. > whereas you said earlier that INSTALL.W64 points to > the MSVCRT variety. Should we say something about this in the > Download and Install sections? That's already solved as our instructions direct the user to the MINGW64 shell and the packages on our list are the mingw-w64-x86_64-* variety. >> Some problems remain: >> >> * There are references to past emacs versions. > > I fixed that, but I honestly don't see how this is important. They > are just examples. The impression I got from that document is that the user will tend to type commands verbatim. >> * libgccjit is missing on the list of dependencies. > > Please tell how to modify the pacman command to add libgccjit. Add the package mingw-w64-x86_64-libgccjit. >> By large, the worst part of building Emacs is to figure out the packages >> you need to install. That's equally difficult for most GNU/Linux >> distributions as for MSYS2. > > If by "packages" you mean the optional libraries, I agree to a point. > But what I meant was the development and build environment, which > includes GCC/Binutils, MSYS with all the related tools, Git, etc. > This comes OOTB on Posix hosts, but not on Windows. Last time I installed Debian I had to explicitly install gcc, binutils, git, make... Indeed, figuring out the library dependencies is the worst part by far, but AFAIK many GNU/Linux nowadays do not install a development toolchain by default. Don't get me wrong, INSTALL.W64 is nice to have. But I'm puzzled by it providing so much specific detail while for other platforms we don't even have a list of library names, much less the package names they are distributed on popular distributions.