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#58318: 28.2; Emacs installed from package won't work with MinGW Date: Fri, 07 Oct 2022 15:54:25 +0300 Message-ID: <83wn9bn69q.fsf@gnu.org> References: <835ygxsdyu.fsf@gnu.org> <87zge9w049.fsf@gnus.org> <83k05dovwq.fsf@gnu.org> <87a667x3l4.fsf@gnus.org> <83edvjondh.fsf@gnu.org> <87sfjzvnyu.fsf@gnus.org> <837d1bomsv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20891"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, corwin@bru.st, 58318@debbugs.gnu.org, bartosz.bubak@gmail.com To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 16:26:43 2022 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 1ogoJG-0005EP-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 16:26:43 +0200 Original-Received: from localhost ([::1]:39012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogoJD-0005lv-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 10:26:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogmsY-000877-Ei for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogmsY-0007Oa-54 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogmsY-0007au-0B for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2022 12:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58318 X-GNU-PR-Package: emacs Original-Received: via spool by 58318-submit@debbugs.gnu.org id=B58318.166514727729152 (code B ref 58318); Fri, 07 Oct 2022 12:55:01 +0000 Original-Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:54:37 +0000 Original-Received: from localhost ([127.0.0.1]:34766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogms9-0007a8-0f for submit@debbugs.gnu.org; Fri, 07 Oct 2022 08:54:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogms6-0007Zu-Hn for 58318@debbugs.gnu.org; Fri, 07 Oct 2022 08:54:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogms0-0007Gy-0z; Fri, 07 Oct 2022 08:54:28 -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=5FbBIGeHOo1j1eyGiCnW3bc7sGm7iY9olfKjIvCuwhk=; b=rmeJ1n3Za6ET Y79F5UE/03CCKLICeuKx2rjFGC6bk7feKyrfVw0x5R2Bwu7umQOQloAPOt9A5S5ZTYW7gwNV1qM6d M9Ov4sz5VqUYIbT24H3HAc4YwFn85MN8t+skOR4/+L6QhFUimojyxXQql5dx8cyzik/R7OrvhzN4k lZHfzRO8A/OkkmUG2iIRinWXsnndr981d8vzeT897CISunkll3NRkacdJZwX0EvIFMwx+zFsaqT4n Tfy+dWyzSzprT20l4eAM/Fpn8+xUSKtadC9aNQi1xTM99H6eG9FbcgPvAiiZHinjmwrvZYdNAjQ3i x6/XwEQOvn+45w1nFt7Ogg==; Original-Received: from [87.69.77.57] (port=2879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogmrz-0006xM-5q; Fri, 07 Oct 2022 08:54:27 -0400 In-Reply-To: (message from Andrea Corallo on Fri, 07 Oct 2022 12:35:52 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:244787 Archived-At: > From: Andrea Corallo > Cc: Lars Ingebrigtsen , corwin@bru.st, bartosz.bubak@gmail.com, > 58318@debbugs.gnu.org > Date: Fri, 07 Oct 2022 12:35:52 +0000 > > >> > Maybe there's a misunderstanding of what you meant by "if a compiler > >> > isn't present". By "the compiler" do you mean libgccjit, or is it GCC > >> > and Binutils (or maybe all 3 together)? IOW, are you talking about > >> > the ability to load existing *.eln files, or are you talking about the > >> > ability to both load existing *.eln files and produce new ones? > >> > >> I'm talking about trampolines, nothing else. > > > > Trampoline generation requires all the 3 components to be present, > > AFAIK. Andrea, am I right? > > AFAIU only libgccjit and Binutils are necessary, but libgccjit *is* GCC > (in the sense another frontend fo the GNU Compiler Collection). I > *think* gcc the binary (read the C frontend) should not be required. > But I don't know how distros package libgccjit and gcc, there might be > some dendency I'm not aware of. I didn't mean gcc, I meant cc1. But maybe libgccjit can play its role, I don't know. > > If it indeed doesn't work (and I wasn't aware it didn't work), we > > should try fixing it, if that is feasible. > > Yes because `yes-or-no-p' is a primitive, so with no trampolines its > redefinition is not functional. > > A quick ad-hoc fix for `yes-or-no-p' is attached. It does not have a > perf impact as `yes-or-no-p' will have to wait for the user input > anyway, if okay I can push it. What about other primitives? fset can be used for more than just this one. > Oherwise another strategy would be to disable direct calls from lisp > native code into primitives on Windows, this indeed has a performance > impact. How is this relevant only to Windows? And what do you mean by "disable direct calls from Lisp native code into primitives"? I don't think I understand what this would do in practice.