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.devel Subject: Re: Finalizing 'inhibit-automatic-native-compilation' Date: Mon, 06 Feb 2023 10:25:42 +0000 Message-ID: References: <837cx8cey0.fsf@gnu.org> <837cx6a8me.fsf@gnu.org> <83357ua6ja.fsf@gnu.org> <83zga28ra8.fsf@gnu.org> <83r0vd97s0.fsf@gnu.org> <83lell73yv.fsf@gnu.org> <83k0145guk.fsf@gnu.org> <835ychtcq9.fsf@gnu.org> <83r0v4sgpj.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="17198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lynn Winebarger , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 06 11:26:08 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pOyhM-0004FQ-CS for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Feb 2023 11:26:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOyh1-0004jv-Kt; Mon, 06 Feb 2023 05:25:47 -0500 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 1pOygz-0004jm-R9 for emacs-devel@gnu.org; Mon, 06 Feb 2023 05:25:46 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOygx-00029e-V1; Mon, 06 Feb 2023 05:25:45 -0500 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 316APgjT025165 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 6 Feb 2023 10:25:42 GMT In-Reply-To: (Andrea Corallo's message of "Mon, 06 Feb 2023 10:15:28 +0000") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303017 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Lynn Winebarger >>> Date: Sat, 4 Feb 2023 17:05:19 -0500 >>> Cc: rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org >>> >>> On Sat, Feb 4, 2023 at 3:08 PM Eli Zaretskii wrote: >>> > >>> > > Something in emacs is putting advice on call-interactively. When I >>> > > extended the baseline dump to include essentially all libraries >>> > > included with emacs with native-compilation, it caused an infinite >>> > > (asynchronous) regress while compiling the trampoline for >>> > > call-interactively. I wasn't aware of this until /tmp filled up. >>> > >>> > Is this with Emacs 28 or Emacs 29? >>> >>> This was with 28.1 modified to support dumping with many pre-loaded >>> native-compiled files. >> >> I asked because Emacs 29 adds some changes specifically intended to >> solve the problem of infinite recursion in trampoline compilation. >> >>> As far as I know, emacs still doesn't support dumping arbitrary >>> native-compiled libraries at compile-time. >> >> What problems do you see if you try? AFAIR, if you tweak >> native-comp-eln-load-path so that the *.eln files you want to dump are >> directed to the ../native-lisp directory relative to where the Emacs >> binary lives, then dump Emacs, loading such a dumped Emacs should >> work. >> >> Andrea, am I missing something? > > I think he might be talking about re-dumping Emacs? > > Otherwise no, I'm not aware of anything you are missing. We can dump > any library we want just loading it before the dump (we modified the > list of dumped libraries just doing this many times in the last two > years). To be more precise: with native-comp we should be able to dump any library we are capable of dumping with a non native comp Emacs. There are for instance lisp objects we still don't know how to dump (at least it was the case till a while ago), there there are probably other edges to be rounded, but they should be non native comp specific. Regards Andrea