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 09:30:34 -0400	[thread overview]
Message-ID: <CAM=F=bD__U6V6u5_qbO9=vTLNzW4bRT2xX3M4sUOhiASSXF0Gg@mail.gmail.com> (raw)
In-Reply-To: <83wnc2g0n8.fsf@gnu.org>

On Sun, Jul 24, 2022 at 8:23 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Lynn Winebarger <owinebar@gmail.com>
> > Date: Sun, 24 Jul 2022 08:05:30 -0400
> > Cc: emacs-devel <emacs-devel@gnu.org>
> >
> >  I don't even understand what you're trying. Could you pls give the
> >  commands you're calling, that I have a chance to reproduce?
> >
> > Good point.  I'm trying to dump a "fully-loaded" emacs 28.1 that includes several hundred packages from the
> > various elpas.  I've modified those packages so they reside in site-lisp, use cl-lib instead of cl, and use an
> > explicit data directory instead of loading files relative to the location of an installed .el file.
> > I verified these all "work" by having about 1000 require statements in my .emacs file to explicitly require
> > them.  I then took the load history and separated the files into ones from the lisp directory and ones from
> > site-lisp.  I created a site-load.el and site-lisp-load.el (loaded at the end of site-load.el) to explicitly load the
> > files in something resembling dependency order, then running make in the emacs build directory to create
> > the build.
>
> Note that Micheal 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.
A more detailed setup (from memory, since I did this on my employer's
system) would be:
------------------------
tar -xzf emacs-28.1-<whatever>.tar.gz
cd emacs-28.1
./autogen.sh
mkdir BUILD
cd BUILD
../configure --prefix=/does/not/exist --with-native-compilation
make -j$(nproc)
find ../lisp -name '*.el' | while read src; do ./src/emacs --batch
--eval "(batch-byte+native-compile)" $(src); done
< follow the steps I described to create the lisp/site-load.el file >
< create a file site-load.mk based on the shell commands in
src/Makefile.in for lisp.mk >
rm etc/DOC
( cd src; make ../etc/DOC )
./lib-src/make-docfile -d lisp -a etc/DOC $(<site-load.mk)
make -j$(nproc)
--------------------------
When the last step stops, I try to fix the issue in the elisp file,
delete the corresponding .elc, then rerun the batch compile command
above before rerunning the last make command.

>
> > I've also compiled every ELISP source file using batch-byte+native-compile.  That was really painful since,
> > as far as I know, the files can't be native compiled in parallel in arbitrary order because of potential race
> > conditions, and I haven't made a Makefile for the .ELN files with the correct dependencies to native compile
> > them in dependency order using make to build them in parallel.
>
> I'm not aware of any such problems.  IME, native compilation can run
> in parallel in any order, and no race conditions of any kind are
> supposed to happen.

Ok, great.  I thought I read, in either the gccemacs blog or the
emacs-devel archive, some concern about race conditions in building
eln files, probably in relation to the async scheduling.  Maybe I am
mistaken or that concern was resolved in the interim.
I'd still like to create that Makefile to do the compilaton in order.
I mean, I have created a file recording the dependencies to the extent
lib-require.el can determine them, but I haven't produced a working
Makefile as of yet.

Lynn



  reply	other threads:[~2022-07-24 13:30 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 [this message]
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
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=bD__U6V6u5_qbO9=vTLNzW4bRT2xX3M4sUOhiASSXF0Gg@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).