unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lynn Winebarger <owinebar@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: michael.albinus@gmx.de, emacs-devel@gnu.org
Subject: Re: Loading tramp for dump goes into infinite regress
Date: Sun, 24 Jul 2022 12:20:47 -0400	[thread overview]
Message-ID: <CAM=F=bBZEJ71yy+ofZJ9_bptRNVpGR1SdOQPBGpffDmQd3dOxg@mail.gmail.com> (raw)
In-Reply-To: <CAM=F=bAXoFexw3VP48dB+yBaVDf-ufDSizBxA3r-gt=_dqcJ2w@mail.gmail.com>

On Sun, Jul 24, 2022 at 12:00 PM Lynn Winebarger <owinebar@gmail.com> wrote:
>
> On Sun, Jul 24, 2022 at 10:05 AM Lynn Winebarger <owinebar@gmail.com> wrote:
> >
> > On Sun, Jul 24, 2022 at 9:34 AM Eli Zaretskii <eliz@gnu.org> wrote:
> > >
> > > > From: Lynn Winebarger <owinebar@gmail.com>
> > > > Date: Sun, 24 Jul 2022 09:30:34 -0400
> > > > Cc: michael.albinus@gmx.de, emacs-devel@gnu.org
> > > >
> > > > > Note that Michael asked you to show specific commands you used, so he
> > > > > could try reproducing the problems you see, but you haven't provided
> > > > > any such commands, only a rather general description of what you are
> > > > > trying to do.
> > > > >
> > > > > Can you please show the shell commands that you use to do the loading
> > > > > step?
> > > >
> > > > That would be "make -j$(nproc)", which seems unhelpful.
> > >
> > > I mean the actual command that loads and dumps all the stuff.  If you
> > > are using the Emacs Makefile's, I guess it's something like this:
> > >
> > >   ./temacs -batch -l loadup --temacs=pdump
> > >
> > > Or did you modify the Makefile's in the tree?
> >
> > I have not modified the Makefiles at this point - hence the explicit
> > use of make-docfile in my previous reply.
> >
> > LC_ALL=C ./temacs -batch --no-build-details -l loadup --temacs=pdump
> > --bin-dest=/does/not/exist/bin
> > --eln-dest=/does/not/exist/lib/emacs/28.1
> >
> > This is probably obvious, but I am only running the resulting emacs
> > from the build directory.
>
> Additional note - if I delete the tramp-<hashes>.eln file from
> BUILD/native-lisp/28.1-<hash>/ without touching the corresponding elc
> file, the loading proceeds - although there are still issues to
> resolve in the subsequent tramp-X files being loaded.

Ok, after getting the load order of subsequent files corrected
(avoiding errors from an autoload or require during dumping), I got
the same behavior from loading "tramp-sh".  So I removed the eln (but
not elc) file for that library, and now the loading proceeds past the
tramp-X files.
That will work for my immediate purposes, but it seems like something
undesirable is going on between dumping and the native compilation
unit.
That being said, it would also be handy to break out the
tramp-loaddefs file into a "declarations" file that can be safely
required from tramp.el and an "initialization" file that can be loaded
at the end of tramp.el (or externally) to set up the tramp
initialization hooks. The current method of decoupling the
method-specific implementation files from the generic interface file
(by requiring tramp-loaddefs at a certain point in the tramp.el file)
does not seem compatible with including it in the dump.

Lynn



  reply	other threads:[~2022-07-24 16:20 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-24  0:47 Loading tramp for dump goes into infinite regress Lynn Winebarger
2022-07-24  7:55 ` Michael Albinus
2022-07-24 12:05   ` Lynn Winebarger
2022-07-24 12:23     ` Eli Zaretskii
2022-07-24 13:30       ` Lynn Winebarger
2022-07-24 13:34         ` Eli Zaretskii
2022-07-24 14:05           ` Lynn Winebarger
2022-07-24 14:09             ` Eli Zaretskii
2022-07-24 14:28               ` Lynn Winebarger
2022-07-24 16:00             ` Lynn Winebarger
2022-07-24 16:20               ` Lynn Winebarger [this message]
2022-07-24 16:31                 ` Eli Zaretskii
2022-07-25 12:49                   ` Lynn Winebarger
2022-07-25 13:56                     ` Eli Zaretskii
2022-07-26 11:24                       ` Lynn Winebarger
2022-07-27  0:58                         ` Lynn Winebarger
2022-07-27  2:48                           ` Lynn Winebarger
2022-07-27  8:31                             ` Lynn Winebarger
2022-08-09 12:29                       ` Lynn Winebarger
2022-08-09 12:36                         ` Po Lu
2022-08-09 13:22                           ` Lynn Winebarger
2022-08-09 13:42                             ` Po Lu
2022-08-09 15:55                               ` Lynn Winebarger
2022-07-25 16:54                     ` Stefan Monnier
2022-07-25 17:05                       ` Stefan Monnier
2022-07-26  0:28                       ` Lynn Winebarger
2022-07-26  1:10                         ` Lynn Winebarger
2022-08-06  6:07                       ` Lynn Winebarger
2022-08-06 12:57                         ` Lynn Winebarger
2022-08-06 15:39                           ` Lynn Winebarger
2022-08-06 20:23                             ` Working fully native-compiled "mega dump" (was Re: Loading tramp for dump goes into infinite regress) Lynn Winebarger
2022-08-06 20:52                               ` Lynn Winebarger
2022-07-25 20:11                     ` Loading tramp for dump goes into infinite regress Andrea Corallo
2022-07-31 20:22                       ` Lynn Winebarger
2022-08-03  9:58                         ` Lynn Winebarger
2022-08-03 12:22                           ` Eli Zaretskii
2022-08-03 14:53                             ` Native-compilation build process (was Re: Loading tramp for dump goes into infinite regress) Lynn Winebarger
2022-08-03 16:15                               ` Eli Zaretskii
2022-08-04  3:33                                 ` Lynn Winebarger
2022-08-05  1:57                                   ` Lynn Winebarger
2022-07-24 16:23               ` Loading tramp for dump goes into infinite regress Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM=F=bBZEJ71yy+ofZJ9_bptRNVpGR1SdOQPBGpffDmQd3dOxg@mail.gmail.com' \
    --to=owinebar@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).