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 19:02:06 +0100 Message-ID: <86jzi2l5gh.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4126"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71916@debbugs.gnu.org Cancel-Lock: sha1:ZraKn3k20gjZDOGqKg17cIciYZs= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 03 20:03:21 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 1sP4K8-0000x8-VI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jul 2024 20:03:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP4Jq-0000UQ-Fg; Wed, 03 Jul 2024 14:03: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 1sP4Jo-0000Tb-BS for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 14:03: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 1sP4Jo-0006sS-2B for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 14:03:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sP4Jp-0000MP-TP for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 14:03:01 -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 18:03:01 +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.17200297431330 (code B ref -1); Wed, 03 Jul 2024 18:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2024 18:02:23 +0000 Original-Received: from localhost ([127.0.0.1]:40402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP4JC-0000LO-OJ for submit@debbugs.gnu.org; Wed, 03 Jul 2024 14:02:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP4JA-0000LC-S2 for submit@debbugs.gnu.org; Wed, 03 Jul 2024 14:02:21 -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 1sP4J8-0000Ei-Nw for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 14:02:18 -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 1sP4J7-0005pI-C8 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 14:02:18 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sP4J3-0009ro-I3 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 20:02:13 +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:288329 Archived-At: 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. 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 ? AndyM