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.bugs Subject: bug#71916: 31.0.50; build failure on MINGW64 Date: Wed, 03 Jul 2024 22:15:54 +0300 Message-ID: <86v81m9thx.fsf@gnu.org> References: <86jzi2l5gh.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71916@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 03 21:17:10 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 1sP5TY-0004dq-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jul 2024 21:17:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP5TS-0006wD-BI; Wed, 03 Jul 2024 15:17:02 -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 1sP5TQ-0006vu-G9 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 15:17: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 1sP5TQ-0001kV-62 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 15:17:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sP5TR-0002Gk-Qp for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 15:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2024 19:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71916 X-GNU-PR-Package: emacs Original-Received: via spool by 71916-submit@debbugs.gnu.org id=B71916.17200341688629 (code B ref 71916); Wed, 03 Jul 2024 19:17:01 +0000 Original-Received: (at 71916) by debbugs.gnu.org; 3 Jul 2024 19:16:08 +0000 Original-Received: from localhost ([127.0.0.1]:40489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP5SZ-0002F7-SA for submit@debbugs.gnu.org; Wed, 03 Jul 2024 15:16:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP5SX-0002Eb-V9 for 71916@debbugs.gnu.org; Wed, 03 Jul 2024 15:16:06 -0400 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 1sP5SQ-0000rp-KU; Wed, 03 Jul 2024 15:15:58 -0400 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=4Iu/wFLG8Sct/A8MWvIYV8j9tijrEoCcTTje5Jh0fng=; b=HIR+yVNY1sjX fP3zoEUpE4S4uNCjV1yCs71TQPZYg+esc5ImcI7rPZo81utQ/3SOH2zh0G+bfL5y7YMQ/XjxToFcu txzNJmXRRZ0MeDlKTYr3fDz+ti6iSZxaYEgQtIMTd67VLCQn6wEeqbXJpk8w3YI7nUL3TvSSWTj4j O2z7fMX8oSofJ2D3YKBTWdv/mIEpjmelkTj6gv9BWoBnamLVE0rf8Z8UvWxYl0NuIxRoXjk8gBaTq H6awYs+tGYZLr7WTg/+++nXqvFS6EpZOxd5/VuEZTdGeJBJguGHSj6jXef1cluLy7eXsVIEeKmbN1 GmWFW8MxM7YnsK/ZWMwI2w==; In-Reply-To: <86jzi2l5gh.fsf@gmail.com> (message from Andy Moreton on Wed, 03 Jul 2024 19:02:06 +0100) 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:288331 Archived-At: > 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.