From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#71916: 31.0.50; build failure on MINGW64 Date: Wed, 03 Jul 2024 22:47:19 +0100 Message-ID: <868qyidu6w.fsf@gmail.com> References: <86jzi2l5gh.fsf@gmail.com> <86v81m9thx.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="8846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71916@debbugs.gnu.org Cancel-Lock: sha1:564EdpprEOXQdK2cYgvY/DXAjro= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 03 23:48:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sP7pp-0002Ab-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jul 2024 23:48:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP7pZ-0005uW-Ok; Wed, 03 Jul 2024 17:48:01 -0400 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 1sP7pY-0005tv-MG for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 17:48:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sP7pY-0008WS-DC for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 17:48:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sP7pa-0006XS-BE for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 17:48:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2024 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71916 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172004325225089 (code B ref -1); Wed, 03 Jul 2024 21:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2024 21:47:32 +0000 Original-Received: from localhost ([127.0.0.1]:40870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP7p6-0006Wa-17 for submit@debbugs.gnu.org; Wed, 03 Jul 2024 17:47:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP7p3-0006WT-Eo for submit@debbugs.gnu.org; Wed, 03 Jul 2024 17:47:29 -0400 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 1sP7p1-0005mM-14 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 17:47:27 -0400 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 1sP7oz-0008EA-IW for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 17:47:26 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sP7ox-00010F-5h for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 23:47:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288338 Archived-At: On Wed 03 Jul 2024, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Wed, 03 Jul 2024 19:02:06 +0100 >> >> On Wed 03 Jul 2024, Andrea Corallo wrote: >> >> > leuven65 writes: >> > >> >> I found the latest version of both master and emacs-30 branch (from Monday) failed to be built on MINGW64 / windows10. >> >> It failed when starting native compilation, error pops up "Cannot find libgccjit library" (from >> >> comp-ensure-native-compiler), maybe the called function "load_gccjit_if_necessary / init_gccjit_functions" return error. >> >> >> >> But if to revert the change introduced by branch "savannah/scratch/windows-98" (merged on 2024/06/30), the build becomes >> >> OK. >> >> >> >> git revert 38179f85f8f7236d5de8d9a4333b6a1d4ded63f0 >> >> >> >> So that maybe the issue is caused by the 3 commits in this branch. >> > >> > Hello leuven65, >> > >> > could you share the exact error you observe? >> > >> > Ccing Po Lo >> > >> > Thanks >> > >> > Andrea >> >> I've seen the same issue on emacs-30 and master branches. It seems to be >> that emacs cannot find the libgccjit DLL after dumping. >> >> Running emacs under gdb, and using a breakpoint on `redraw-display': >> >> (gdb) r -Q >> Starting program: C:\emacs\git\emacs\emacs-30\build\mingw64-x86_64-O2-native\src\emacs.exe -Q >> [New Thread 11584.0x27b4] >> [New Thread 11584.0x1f54] >> [New Thread 11584.0x1ec8] >> [New Thread 11584.0x2ad0] >> [New Thread 11584.0x1a60] >> >> Thread 1 hit Breakpoint 2, Fredraw_display () at C:/emacs/git/emacs/emacs-30/src/dispnew.c:3222 >> >> (gdb) pp Vlibrary_cache >> ((gccjit) (gccjit . t)) >> >> It seems odd that there are two entries here. > > Thanks, I think I fixed this now on the emacs-30 branch. > >> There is code at the end of syms_of_emacs in emacs.c that changes >> Vdynamic_library_alist as a workaround for something similar, so have >> other changes made that ineffective ? > > No, the problem was that Vlibrary_cache was not re-initialized after > loading the pdumper file. Thanks Eli, confirmed as working again on emacs-30. AndyM