From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Loading tramp for dump goes into infinite regress Date: Mon, 25 Jul 2022 20:28:47 -0400 Message-ID: References: <8735erhrlg.fsf@gmx.de> <83wnc2g0n8.fsf@gnu.org> <83sfmqfxcb.fsf@gnu.org> <83a68yfp6j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000d7c5905e4aa63f1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10744"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Michael Albinus , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 26 02:34:53 2022 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 1oG8XF-0002d6-Ii for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 02:34:53 +0200 Original-Received: from localhost ([::1]:49902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oG8XE-0006WD-29 for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Jul 2022 20:34:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oG8Rc-0003yG-Vl for emacs-devel@gnu.org; Mon, 25 Jul 2022 20:29:05 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:34414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oG8Ra-00085c-SR; Mon, 25 Jul 2022 20:29:04 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id y1-20020a17090aca8100b001f2ec6f3ebaso170042pjt.1; Mon, 25 Jul 2022 17:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+piO9gvdTdHiM02DN5gs+p+OJxyKtClyoorr1AIhLLQ=; b=pUb3kt7ZOWwXXNvkPJ76SXh4O5tcRVEeUrhwfx9n5J9UyVswZfw/qXZ4rRPvaTAAQo PXX8/hqqpYbOU59vPWNOZTyVIfg6K9V0+b9gnWDUkIs2EKWW/VBSVaomGZEbQT2gFVZu dede1lwxMeZb+IepDbP1BfrLjZyuVQq2NKQ8GfsRak+/dfov59OU9YfXY76vm8it378A iFCtVfoYChaCT6VUrRiuD1C5O88snVCuKdWWhKm3SI2yP2CfbRnBewIrApjtIgz2Syhv 730mkbp51KSmSOUIoY1a2YqhL/qdYYzF0yzaD0qAerg7RPzpw7UKcLguCp11Tr8dV5bm /ZYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+piO9gvdTdHiM02DN5gs+p+OJxyKtClyoorr1AIhLLQ=; b=dPtC9q2/z0W3fdLaiYodsmpodVVdrTk9a871kI2tGZ1uQhk9A512wSBQuE24KQcUa8 48+MCd9c8ao9X5gF3stbom+lg2XSJQXlQY9ANWwg+G2L5CveQ3AMRYB10Uwh1QU28R9b IOHO0AsQ1OZJNFBCvlAmbzEDSvaTMP7UadWPfdmXgSGtC5nQFd58HaLaVipVP1Q4DXzx eTK4eGb/T5ZNS391CVs8Aal0PUTEOxDvXsMegdI3XR5QgJDbc/ZLwwkmP/acny1PoHy4 FnUY0CfxDv5PQVGRgVwSnAT5DVGVV3fgcKXZue8vMonlOm2Ih4Y3DLo0isZqBTMUw+V+ UBDQ== X-Gm-Message-State: AJIora/6aLaMlVoWWqdNMbotwxlw3S7peV55i6AvkdIjM2SbLb3bDUYc 73LRCsJDKtNsbk++gKngjj8Vg/v+QbNmWKb78sc= X-Google-Smtp-Source: AGRyM1sjFJ4x1scYIU9Mo0pBV4cg8GIhftM+l7yFkUs2nZ3Sjh3SQXAwiwcVkxbTLkzxu8BcZrYezsClxtxNOOqL3+w= X-Received: by 2002:a17:902:74c5:b0:16d:4417:8c02 with SMTP id f5-20020a17090274c500b0016d44178c02mr14656755plt.121.1658795340953; Mon, 25 Jul 2022 17:29:00 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=owinebar@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.devel:292657 Archived-At: --0000000000000d7c5905e4aa63f1 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 25, 2022, 12:54 PM Stefan Monnier wrote: > > Otherwise, I was able to resolve the various issues (including some > > extensive surgery on vc/ediff-X files to stamp out the circular loading). > > I am going to have to do a real bootstrap to avoid the "incoherent eln" > > error, though, and somehow force native compilation for all the libraries > > loaded in the dump (that are not on the compiler's "forbidden" list, > > anyway). > > BTW, I don't really understand why you're bumping into circularity issue > with things like ediff. I do know it has circularity issues, but they > only affect compilation, AFAIK. > The C code for the require form hits the panic button if it has to load something when dump-mode is non-nil. Something similar happens when an autoload is invoked during dump-mode, but I haven't looked for the exact piece of code that does it so I don't know if it's C or lisp. So, I'm wondering: do you include "the world" in both dumps (the > first, done to build `src/bootstrap-emacs.pdmp`, and the second to > build the final `src/emacs.pdmp`) or do you include it only > in the second dump? > I initially was trying to just run the second one, but I got the "incoherent ELN" error. So I set up a new build directory, did a fresh configure followed by "make bootstrap". I had to further refine the site-load.el to explicitly load everything required at compile time, wrap every instance of any expression requiring a generated file with "unless dump-mode" (since in dump-mode the site-load or loadup file must load all the required files to work anyway). That fails when site-load starts loading bits of cc-mode for the second dump since none of the files in site-load are even byte-compiled with the bootstrap emacs. So I generated a list of .elc targets from site-load (same method used for lisp.mk), then put together a hacked Makefile in BUILD/lisp that ran the bootstrap-emacs executable with the suffix rule from the standard Makefile. That also failed with the incoherent ELN message. Then I noticed the rule that uses the "byte-compile-refresh-preloaded" function, so I'm trying that in the Makefile. However, I'm still waiting for the preloaded files to finish native compiling. I'd be happy to follow the 3 step path to dumping, but I thought the whole "no redumping support" prevented that approach. Lynn --0000000000000d7c5905e4aa63f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 25, 2022, 12:54 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
=
> Otherwise, I was able to resolve = the various issues (including some
> extensive surgery on vc/ediff-X files to stamp out the circular loadin= g).
> I am going to have to do a real bootstrap to avoid the "incoheren= t eln"
> error, though, and somehow force native compilation for all the librar= ies
> loaded in the dump (that are not on the compiler's "forbidden= " list,
> anyway).

BTW, I don't really understand why you're bumping into circularity = issue
with things like ediff.=C2=A0 I do know it has circularity issues, but they=
only affect compilation, AFAIK.

The C code for the require form hits the pan= ic button if it has to load something when dump-mode is non-nil.=C2=A0 Some= thing similar happens when an autoload is invoked during dump-mode, but I h= aven't looked for the exact piece of code that does it so I don't k= now if it's C or lisp.

So, I'm wo= ndering: do you include "the world" in both dumps (the
first, done to build `src/bootstrap-emacs.pdmp`, and the second to
build the final `src/emacs.pdmp`) or do you include it only
in the second dump?

I initially was trying to just run the second one, but I= got the "incoherent ELN" error.=C2=A0 So I set up a new build di= rectory, did a fresh configure followed by "make bootstrap".=C2= =A0 I had to further refine the site-load.el to explicitly load everything = required at compile time, wrap every instance of any expression requiring a= generated file with "unless dump-mode" (since in dump-mode the s= ite-load or loadup file must load all the required files to work anyway).= =C2=A0 That fails when site-load starts loading bits of cc-mode for the sec= ond dump since none of the files in site-load are even byte-compiled with t= he bootstrap emacs.=C2=A0 So I generated a list of .elc targets from site-l= oad (same method used for lisp.mk), then put= together a hacked Makefile in BUILD/lisp that ran the bootstrap-emacs exec= utable with the suffix rule from the standard Makefile.=C2=A0 That also fai= led with the incoherent ELN message.=C2=A0 Then I noticed the rule that use= s the "byte-compile-refresh-preloaded" function, so I'm tryin= g that in the Makefile.=C2=A0 However, I'm still waiting for the preloa= ded files to finish native compiling.=C2=A0=C2=A0
I'd be happy to follow the 3 step path to dum= ping, but I thought the whole "no redumping support" prevented th= at approach.

Lynn
<= div dir=3D"auto">
--0000000000000d7c5905e4aa63f1--