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: Native compilation on Windows, was Re: Bootstrap Compilation Speed Date: Tue, 01 Feb 2022 16:28:57 +0100 Message-ID: <87pmo61u86.fsf@telefonica.net> References: <878rve85yy.fsf@russet.org.uk> <86a6fu3xb2.fsf@duenenhof-wilhelm.de> <87tue1j8x0.fsf@russet.org.uk> <86wniw3kdq.fsf@duenenhof-wilhelm.de> <83tue0u8sh.fsf@gnu.org> <86sftk3evj.fsf@duenenhof-wilhelm.de> <83o848tc92.fsf@gnu.org> <86o8473k13.fsf@duenenhof-wilhelm.de> <83ee53ssbx.fsf@gnu.org> <86sft4c3ij.fsf@gnu.org> <86sft4xjeo.fsf@gnu.org> <86iltzx5fy.fsf@duenenhof-wilhelm.de> <864k5iwyaa.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35160"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:lVP9qBWA9UFKO32kQfhM1xOTeUQ= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 01 18:54:19 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 1nExMB-0008x5-Ic for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Feb 2022 18:54:19 +0100 Original-Received: from localhost ([::1]:35814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nExMA-0007RV-E5 for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Feb 2022 12:54:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEv5j-00081T-6O for emacs-devel@gnu.org; Tue, 01 Feb 2022 10:29:11 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:59946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEv5h-0005Hf-9U for emacs-devel@gnu.org; Tue, 01 Feb 2022 10:29:10 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nEv5d-0005Pe-1K for emacs-devel@gnu.org; Tue, 01 Feb 2022 16:29:05 +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, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:285732 Archived-At: "H. Dieter Wilhelm" writes: > I realised that ntldd.exe doesn't show any msys/mingw dependencies at > all, only Windows stuff! -> So I removed all Windows references from > PATH. (Don't ask me why ntldd searches Windows paths first.) Are you saying that you have dlls with the same name under /mingw64 and /Windows ? > Then, it seem's, that the msys/mingw people changed the tree layout of > their files! No, we didn't. > When I'm changing "msys64" with "mingw64" in > build-dep-zips.py: > > def ntldd_munge(out): > deps = out.splitlines() > rtn = [] > for dep in deps: > ## Output looks something like this > > ## KERNEL32.dll => C:\Windows\SYSTEM32\KERNEL32.dll (0x0000000002a30000) > ## libwinpthread-1.dll => C:\msys64\mingw64\bin\libwinpthread-1.dll (0x0000000000090000) > > ## if it's the former, we want it, if its the later we don't The comment above seems reversed. > splt = dep.split() > ## if len(splt) > 2 and "msys64" in splt[2]: > if len(splt) > 2 and "mingw64" in splt[2]: > print("Adding dep", splt[0]) > rtn.append(splt[0].split(".")[0]) > > return rtn > > It copies much more DLLs to the deps folder. :-) Probably your MSYS2 install is not in a directory named "msys64" (the "in" operator in Python is case-sensitive, isn't it?)