unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Corallo <akrl@sdf.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 58637@debbugs.gnu.org, Jacob Faibussowitsch <jacob.fai@gmail.com>
Subject: bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore
Date: Wed, 19 Oct 2022 19:13:15 +0000	[thread overview]
Message-ID: <xjfilkf7hkk.fsf@ma.sdf.org> (raw)
In-Reply-To: <83czanzu0p.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Oct 2022 18:56:54 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jacob Faibussowitsch <jacob.fai@gmail.com>
>> Date: Wed, 19 Oct 2022 11:13:06 -0400
>> 
>> Not sure how to really describe this bug but the TL;DR is that emacs
>> no longer native compiles anything (even though it thinks it is). It
>> appears to have been broken since:
>> 
>> commit 1a8015b83761f27d299b1ffa45fc045bb76daf8a
>> Author: Andrea Corallo <akrl@sdf.org>
>> Date:   Sat Oct 15 00:59:55 2022 +0200
>> 
>>     * Prevent potential native compilation infinite recursions
>> 
>>     * lisp/emacs-lisp/comp.el (comp-no-spawn): New var.
>>     (comp-subr-trampoline-install, comp-final, comp-run-async-workers)
>>     (comp--native-compile): Update.
>> 
>> Checking out the commit immediately before (0954689cb3243e3af4b0c12c08bdcad608fd8433) and everything works. To see the difference this is reproducible via:
>> 
>> $ git checkout 1a8015b83761f27d299b1ffa45fc045bb76daf8a
>> $ make bootstrap
>> $ ./src/emacs -Q
>> # switch to Async compilation buffer, and you will see many files “compile”
>> $ ./src/emacs -Q
>> # switch to Async compilation buffer, and you will once again see the same files “compiled"
>> $ git checkout 0954689cb3243e3af4b0c12c08bdcad608fd8433
>> $ make bootstrap
>> $ ./src/emacs -Q
>> # switch to Async compilation buffer, and you will see files begin compiled (for real)
>> $ ./src/emacs -Q
>> # cannot switch to Async compilation buffer, it does not exist because all files properly compiled
>> 
>> ----------------------------
>> 
>> On startup emacs appears to native-compiles every file, every time. Checking ~/.emacs.d/eln-cache/29.0.50-<hash> however I see:
>> 
>> 29.0.50-<hash> $ ll
>> subr--trampoline-6c6f6164_load_0.eln
>> subr--trampoline-6d616b652d70726f63657373_make_process_0.eln
>> subr—-trampoline-*...
>> 
>> I.e. only the trampoline functions. Furthermore, emacs “compiles”
>> suspiciously quickly, finished all native-comp for some 100+ files
>> in just under 2s. Historically this has taken much longer.
>> 
>> Under normal circumstances I expect to see:
>> 
>> 29.0.50-<hash> $ ll
>> subr--trampoline-6c6f6164_load_0.eln
>> subr--trampoline-6d616b652d70726f63657373_make_process_0.eln
>> subr—-trampoline-*…
>> cl-lib-8b938900-c76f14d9.eln
>> json-a90a1eab-350c449d.eln
>> gv-e0cf7478-3ced7662.eln
>> url-parse-ee297c9b-39553ec5.eln
>> …
>> 
>> i.e. the compiled eln files for all the others. And indeed reverting to 0954689cb3243e3af4b0c12c08bdcad608fd8433 I once again see those files generated.
>
> Andrea, can you please look into this?

Sure, doing it.

  Andrea





  reply	other threads:[~2022-10-19 19:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 15:13 bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore Jacob Faibussowitsch
2022-10-19 15:56 ` Eli Zaretskii
2022-10-19 19:13   ` Andrea Corallo [this message]
2022-10-19 20:29     ` Andrea Corallo
2022-10-19 20:33       ` Jacob Faibussowitsch
2022-10-19 21:15         ` Andrea Corallo

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=xjfilkf7hkk.fsf@ma.sdf.org \
    --to=akrl@sdf.org \
    --cc=58637@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jacob.fai@gmail.com \
    /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).