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#58318: 28.2; Emacs installed from package won't work with MinGW Date: Fri, 07 Oct 2022 13:54:05 +0000 Message-ID: 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> <83wn9bn69q.fsf@gnu.org> <83tu4fn3rz.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="20778"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: larsi@gnus.org, corwin@bru.st, 58318@debbugs.gnu.org, bartosz.bubak@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 17:05:19 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 1ogoud-0005BT-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 17:05:19 +0200 Original-Received: from localhost ([::1]:45766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogoub-00015D-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 11:05:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ognoc-000563-KU for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 09:55:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ognoc-0008DN-Bs for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 09:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ognob-0002si-Si for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 09:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2022 13: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.166515085111005 (code B ref 58318); Fri, 07 Oct 2022 13:55:01 +0000 Original-Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:54:11 +0000 Original-Received: from localhost ([127.0.0.1]:34874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ognnm-0002rR-Q8 for submit@debbugs.gnu.org; Fri, 07 Oct 2022 09:54:11 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:63036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ognnk-0002rI-Ps for 58318@debbugs.gnu.org; Fri, 07 Oct 2022 09:54:09 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297Ds5nu006444 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 7 Oct 2022 13:54:05 GMT In-Reply-To: <83tu4fn3rz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Oct 2022 16:48:16 +0300") 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:244814 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: larsi@gnus.org, corwin@bru.st, bartosz.bubak@gmail.com, >> 58318@debbugs.gnu.org >> Date: Fri, 07 Oct 2022 13:04:55 +0000 >> >> > How is this relevant only to Windows? >> >> Windows is the only system where a native compiled Emacs can start even >> if libgccjit is not present. On GNU/Linux we get and error at load time >> from the dynamic linker in case. As a consequence on GNU/Linux Emacs is >> always capable of producing trampolines when needed. > > It could be that libgccjit is loaded but is incompatible or > something. So I'd prefer a general solution. > >> > 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. >> >> Native compiled elisp calls directly into primitive functions not to go >> through funcall. For this reason when a primitive is redefined we need >> to produce a trampoline in order to forward these calls to the funcall >> machinery. If we disable all of this optimization the issue disappears >> but indeed that's not good from a performance point of view. > > How much will performance suffer if we use funcall? This is the usual 1 milion dollar question, we can run benchmarks but we are never sure of how much realistic they are. That said IME this is one of the most effective optimizations we have, funcall is a non trivial and relatively slow machine when executed at each function activation. Andrea