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.devel Subject: Re: Finalizing 'inhibit-automatic-native-compilation' Date: Mon, 06 Feb 2023 15:05:09 +0200 Message-ID: <83cz6nq70a.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22799"; mail-complaints-to="usenet@ciao.gmane.io" Cc: owinebar@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 06 14:05:56 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 1pP1C0-0005jY-C6 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Feb 2023 14:05:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pP1BO-0000mb-45; Mon, 06 Feb 2023 08:05:19 -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 1pP1B9-0000gT-3l for emacs-devel@gnu.org; Mon, 06 Feb 2023 08:05:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pP1B6-0006vN-6i; Mon, 06 Feb 2023 08:05:00 -0500 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=Pr9+2cE8il+kUFA7kD7am0EmlNuViDVOz5wDQB0SemU=; b=bd//aPRloe3E damk0a9PKmVkVcAgTANWZGVDZW92w2/jFyjFZRVeNGGfaiecCVl/y5ujKQ15xCb/zlB486jF725Vl 2t851WFBAbVJ9x2YmGl7a55H1r2DSCIM4YIWQTg+kjlAxMw58fXZTW/A2IUarviCFs53WzQFyGuTd QFiQpsIxuw47U5g184PjWDmjrxQNuOWppwb7N+tSYq7b5JFUcugr7e+0MB9C22i7oz5QcYdZE6mzf RFwfvV2dZEzYrMInXwTiAaJL9QB6q7ywJYTGiciPfg4bO5CCy2vBwpRzWapGOcEEOFU2WftK54lth R4qAH4g8FmIoT5w8FO+i+Q==; Original-Received: from [87.69.77.57] (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 1pP1B3-0003mB-6h; Mon, 06 Feb 2023 08:04:58 -0500 In-Reply-To: (message from Andrea Corallo on Mon, 06 Feb 2023 10:15:28 +0000) 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:303019 Archived-At: > From: Andrea Corallo > Cc: Lynn Winebarger , monnier@iro.umontreal.ca, > emacs-devel@gnu.org > Date: Mon, 06 Feb 2023 10:15:28 +0000 > > 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? Yes. I'm saying that for re-dumping one should make sure that the additional dumped *.eln files are in the ../native-lisp directory relative to where the Emacs binary lives, and then when Emacs is restarted, it will find those *.eln files at startup time.