Subject: Re: bug#60208: 28.1; Resource exhaustion with emacs 28's native compilation; need "-Q" for trampoline

From: Eli Zaretskii <[email-masked]>
Date: Tue, 20 Dec 2022 05:32:15 +0200

> Date: Mon, 19 Dec 2022 21:59:26 +0000 (UTC)
> From: Hin-Tak Leung <[email-masked]>
> 
> Now,
> "/tmp/emacs-int-comp-subr--trampoline-64656c6574652d63686172_delete_char_0-*.el"
> seems to be some kind of stub which needs to be natively compiled as a
> prerequisite for any native compilation at all, and it needs to be done
> once ever, and it writes to
> ~/.emacs.d/eln-cache/28.1-b1f2d84a/subr--trampoline-64656c6574652d63686172_delete_char_0.eln
> , and do it exactly once.
> 
> However, currently, emacs 28 is doing this via:
> 
> "/usr/bin/emacs --batch -l /tmp/emacs-int-comp-subr--trampoline..."
> 
> missing a "-Q", and should be:
> 
> "/usr/bin/emacs -Q --batch -l /tmp/emacs-int-comp-subr--trampoline..."
> 
> The consequence of the missing "-Q" is that, this commands also loads
> emacs-ess, and which requires native compilation, which launches more
> copies of the process of "emacs ... --batch -l
> /tmp/emacs-int-comp-subr--trampoline...".

I'm not sure this conclusion is correct, because --batch implies -q.
There's a difference between -q and -Q, so are you saying that
emacs-ess is loaded from a site-init file in your case?