unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore
@ 2022-10-19 15:13 Jacob Faibussowitsch
  2022-10-19 15:56 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Faibussowitsch @ 2022-10-19 15:13 UTC (permalink / raw)
  To: 58637

Hello,

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.

----------------------------

In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0) of 2022-10-19
 built on Jacobs-MBP.fios-router.home
Repository revision: b96f441139e09d48880e1f20ad4237400529ac5f
Repository branch: master
System Description:  macOS 12.6

Configured using:
 'configure --prefix=/Users/jacobfaibussowitsch/soft/packages CC=clang
 CXX=clang++ 'CFLAGS=-O3 -mtune=native -flto=thin -flto-jobs=7
 -std=gnu17 -Wno-unused-command-line-argument -Wno-unknown-pragmas'
 'CXXFLAGS=-O3 -mtune=native -flto=thin -flto-jobs=7 -std=gnu++20
 -Wno-unused-command-line-argument -Wno-unknown-pragmas'
 LDFLAGS=-L/opt/homebrew/lib -C --with-native-compilation --with-gnutls
 --without-x --with-xml2 --with-dbus --with-modules --with-json
 --without-ns --with-jpeg --with-tiff --with-gif --with-png --with-rsvg
 --with-libsystemd --with-cairo --with-harfbuzz --with-zlib
 --with-toolkit-scroll-bars --disable-gcc-warnings
 --without-compress-install --with-libgmp'

Configured features:
ACL GMP GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE
PDUMPER SQLITE3 THREADS XIM ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dnd dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
display-line-numbers comp regexp-opt comp-cstr warnings icons subr-x rx
cl-seq cl-macs cl-extra help-mode tool-bar cl-loaddefs cl-lib term/xterm
xterm byte-opt gv bytecomp byte-compile cconv rmc iso-transl tooltip
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads kqueue lcms2 multi-tty make-network-process native-compile
emacs)

Memory information:
((conses 16 73528 7829)
 (symbols 48 7188 0)
 (strings 32 18999 4933)
 (string-bytes 1 588616)
 (vectors 16 13166)
 (vector-slots 8 213125 7538)
 (floats 8 30 216)
 (intervals 56 314 6)
 (buffers 1000 13))


Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-19 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2022-10-19 20:29     ` Andrea Corallo
2022-10-19 20:33       ` Jacob Faibussowitsch
2022-10-19 21:15         ` Andrea Corallo

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).