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: Sat, 6 Aug 2022 02:07:31 -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="000000000000ad00b105e58c6625" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15922"; 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 Sat Aug 06 08:09:42 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 1oKD0H-000424-SW for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 08:09:41 +0200 Original-Received: from localhost ([::1]:40572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKD0G-0001QX-SQ for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 02:09:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKCyV-0008M1-Gy for emacs-devel@gnu.org; Sat, 06 Aug 2022 02:07:51 -0400 Original-Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:46768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKCyQ-0007nk-My; Sat, 06 Aug 2022 02:07:51 -0400 Original-Received: by mail-pg1-x52a.google.com with SMTP id d7so4272505pgc.13; Fri, 05 Aug 2022 23:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=u3IBB8OewoJprNMhDcJHz2P+FFBtxCjY7PnxdZ3X/bQ=; b=Vv7lyLcI2ZDx5dAn4AgG7mSUUjv2baSTFy1BRB8CkLDgqMzyPu8yCmgT3lytkUssz6 aEX9WNIWeIewif2dDESmVPppvsczQoH+YAB67KHdXqixJNBkf6LmofQJQRYMfY19GPVj 1zgzZ2C0Pq1Bdj/bxYlNEYa7qXTR3MB9CmYQZZd9MGdvw/TbrW/A78gp/GQ1jhCG7dQL 9xbssjNl9SrT5q5E+QQbXZ2Tj+Rxn6JSeiEsHF5Vu4XA3C5ql/7Y6fIkWlFyPWjGsSzl LZ69PPahbKYXJ4xcfSdaxw7uEfjEORBmOGB5Iguv4djWlerUXxy+ZHJpO0LJShsdRQ8B mU+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=u3IBB8OewoJprNMhDcJHz2P+FFBtxCjY7PnxdZ3X/bQ=; b=vSSRb+wPDfSJ9sg4UWKK5DM6VYseAeM6qB3uZcOWTqXQ9S6Xz8P/37l3HdakX79UlJ FSGN6wdtK6M1SOj1EvG2qMeRES2Odaaqocca//gEMM/8aoKDC2OSti6+syjUoMCABeNP oKytaGEnFfJ4fy7TjAxYvrqD7dH+tHYZii4duNm9wwqrHprg+a3ypgyvtVGSh8Y/jG9C jQtA3+mxAqTIuqL9OKi4ufMv26JiOjsJt7FWKQHN7e1+ZF37vsFpUaOj+3Tt+jriElcY m/U0XRpVPEgs0k4tDZsMP1iI5Zj31cv4FW0n//COMBU5JIK3+3TOwYcjCQheceMj0fqD mmMg== X-Gm-Message-State: ACgBeo3LKJC1Gvudo1XHueD24E+fWyGKMJo+kT3PANWsCslxyT7VfI3i 2S1dalwKSDVL9RdalOJmI60KvGJBztUhrB6PgZI= X-Google-Smtp-Source: AA6agR64MIEGuKLCF2yBJn9mvceLr7dHSBPIpqM8WccFKeaZsgH6rd1gQrxb4lPet/IgfiSVN146nGmWMY8T1v5ax5U= X-Received: by 2002:a63:6304:0:b0:41c:1926:2aa9 with SMTP id x4-20020a636304000000b0041c19262aa9mr8257088pgb.425.1659766064347; Fri, 05 Aug 2022 23:07:44 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=owinebar@gmail.com; helo=mail-pg1-x52a.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:293135 Archived-At: --000000000000ad00b105e58c6625 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. > I've added another flag variable that allows me to turn off the ban on implicit loading in dump mode. I used load history from a session that required all the packages (that didn't have fatal errors) to generate a reasonable facsimile of dependency ordering, but allowing autoload and require to work as intended greatly simplifies the task. I made a few more corrections to purecopy. I added support for bool vectors (used by js2-mode), and strings with text properties. I was concerned that the libraries with such string constants are designed to rely on those properties. I've finally gotten all the libraries to load, but the dump failed do to having a dynamic module loaded. Lynn > --000000000000ad00b105e58c6625 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.

I've added another flag variable that al= lows me to turn off the ban on implicit loading in dump mode.=C2=A0 I used = load history from a session that required all the packages (that didn't= have fatal errors) to generate a reasonable facsimile of dependency orderi= ng, but allowing autoload and require to work as intended greatly simplifie= s the task.=C2=A0 =C2=A0
I made a few more correctio= ns to purecopy.=C2=A0 I added support for bool vectors (used by js2-mode), = and strings with text properties.=C2=A0 I was concerned that the libraries = with such string constants are designed to rely on those properties.=C2=A0= =C2=A0
I've finally gotten all the libraries to = load, but the dump failed do to having a dynamic module loaded.=C2=A0=C2=A0=

Lynn



--000000000000ad00b105e58c6625--