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:15:28 +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="25203"; 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:20:11 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 1pOybb-0006Jr-GD for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Feb 2023 11:20:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOyao-0000iE-V5; Mon, 06 Feb 2023 05:19:23 -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 1pOyaj-0000cz-9K for emacs-devel@gnu.org; Mon, 06 Feb 2023 05:19:18 -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 1pOyag-0000ov-R3; Mon, 06 Feb 2023 05:19:16 -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 316AFSTr015624 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 6 Feb 2023 10:15:28 GMT In-Reply-To: <83r0v4sgpj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Feb 2023 09:40:24 +0200") 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:303015 Archived-At: 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). Bests Andrea