From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71916: 31.0.50; build failure on MINGW64 Date: Wed, 03 Jul 2024 18:09:18 -0400 Message-ID: References: <86jzi2l5gh.fsf@gmail.com> <86v81m9thx.fsf@gnu.org> <868qyidu6w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21770"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71916-done@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 04 00:12:25 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 1sP8DB-0005TR-4k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jul 2024 00:12:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP8Cu-0006KC-SX; Wed, 03 Jul 2024 18:12:08 -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 1sP8Cp-0006IS-Ak for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 18:12:04 -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 1sP8Cn-0001BR-IH for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 18:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sP8Cp-0007CT-Ga for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 18:12:03 -0400 Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2024 22:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71916 X-GNU-PR-Package: emacs Mail-Followup-To: 71916@debbugs.gnu.org, acorallo@gnu.org, leuven65@gmail.com Original-Received: via spool by 71916-done@debbugs.gnu.org id=D71916.172004469727620 (code D ref 71916); Wed, 03 Jul 2024 22:12:03 +0000 Original-Received: (at 71916-done) by debbugs.gnu.org; 3 Jul 2024 22:11:37 +0000 Original-Received: from localhost ([127.0.0.1]:40923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP8CP-0007BQ-2k for submit@debbugs.gnu.org; Wed, 03 Jul 2024 18:11:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP8CO-0007BB-3P for 71916-done@debbugs.gnu.org; Wed, 03 Jul 2024 18:11:36 -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 1sP8AA-0008Ui-Sm; Wed, 03 Jul 2024 18:09:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xMp5aZxWHTIHR6A7lZlqyj6byzUD+muuw1MvIYvTQU0=; b=NCrTpvYmpUyQsO9K75Aq lidpzoasf9sr2ks0S6OzUxrTZpin1ITvu1q2dnkAXCxk4EybfzkQoLHGrMaeQO/+ea5YZ9yZJoS6m vUgFGIOP5kGyKN/n+0qUYMJjVE8R2ylh9E0UIj9a4H5xxC5a2X6PAdSLV2mpQoAbruCm6xR5zfnjL OyCu/NMJB9qoRPXvL51i+ThYdqr85N/l7UNMFB2mIaJeGenanLAXJw5NWYWvI9lnPa1i0vz0fjd8w JFKO2yOtYbys97mc/auC9or/tX1GwQZhEKe3CeIS7IhWjLiYVDdtqIjbUc8+I77y/BW7FS0wCW1Jm KATxeMK391CClA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sP8AA-0000yB-KC; Wed, 03 Jul 2024 18:09:18 -0400 In-Reply-To: <868qyidu6w.fsf@gmail.com> (Andy Moreton's message of "Wed, 03 Jul 2024 22:47:19 +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:288339 Archived-At: Andy Moreton writes: > 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 Thanks closing.