From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacob Faibussowitsch Newsgroups: gmane.emacs.bugs Subject: bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore Date: Wed, 19 Oct 2022 11:13:06 -0400 Message-ID: <53A10149-DC0A-4642-AAD5-8843B0EFD7ED@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12274"; mail-complaints-to="usenet@ciao.gmane.io" To: 58637@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 17:14:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olAmA-0002zi-Ba for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 17:14:34 +0200 Original-Received: from localhost ([::1]:49124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olAm9-00034s-DV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 11:14:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olAle-00033q-DX for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olAle-0001SO-5u for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olAld-0006Ys-Of for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jacob Faibussowitsch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58637 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166619239925159 (code B ref -1); Wed, 19 Oct 2022 15:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2022 15:13:19 +0000 Original-Received: from localhost ([127.0.0.1]:59712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olAkx-0006Xj-A9 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 11:13:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olAku-0006XZ-Gc for submit@debbugs.gnu.org; Wed, 19 Oct 2022 11:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olAku-0002bb-9X for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:13:16 -0400 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:41529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olAks-0001OE-H8 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:13:16 -0400 Original-Received: by mail-qk1-x72b.google.com with SMTP id o22so10873560qkl.8 for ; Wed, 19 Oct 2022 08:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=y6dYQj2sU678FZGG65CFHvcyddpCrt9Df69FmcMsfj0=; b=hfkc2EtdwMheL07hGezg49MgK2xJ3rn8neyRlpqxLZGBWg5WLoIDxco2bgF9+Fhkkn BHm1Nss+eTQx56toWsULXDhJdNfsiF8kBe8i5Hv13PhVrBJw/MHpRS0VFKHBdOgsbEEB zNYtSaEzY4iTVL+vUDj7m1GnTXojFAiJ+ue6o9VGMdPvoWAw8NK9kvIOhxIErzhU8O0H ZTTlvKHnKPc37GgckjYtFdXiIzZuWyQpEIj+VwV1VUof9EzdtQfZPJCLCwgcU69/jyWO ovC8CFwitcPD8sLShICi4gHuakg+tHkroGO0oWukUEICDycmqorXzzyIH1EXS2n+fyPO Vz0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y6dYQj2sU678FZGG65CFHvcyddpCrt9Df69FmcMsfj0=; b=tNTyxEHXs45/hRoNHR9jvu0wFMA6YhcSFa/4Y5k6Y9p5Ttp4U6fwn9GhvQisl2nkro hyVvDEEs0Of9o6JdfKJmrSzSLwAt1M1bJuHyS8Iy67URmVxQbei847rmsPgkAv1JhGN8 ZqZU9OPn2wfYhgtBI+Y6l2NcGtu7lK/sPjFjGnPNQwiR/5XRpG+k6bTRyjE1090WS/Tz JHreOFqyjMelB+WPE4gt9HzJ8lYjPCwJ76D7WtlgWaA10V71wti+PqlJMfdfOAHrAcxr lzOXFMl8tvMIMC4r1e0mmMsiypXCBr8SpXUk49lBLa42UBOrbPAl8Qw+W3TW2DPnGjpI hOSQ== X-Gm-Message-State: ACrzQf1RSflE1/X8hMGq/FIrhPr5AilGJimjND2vDQUx2cW0ztTR7+j5 s1Q/cZBgxeZHTL0VX3+IIVBTLg5Dh7QgVg== X-Google-Smtp-Source: AMsMyM5GoMcZCAPjudaaFWmhlUXw1Bnfo4Uu9q0NzbpMjsynryzoTuZMqDMNh/jMSIwNuXQjNVqPEw== X-Received: by 2002:a05:620a:430b:b0:6d2:5b2:a70e with SMTP id u11-20020a05620a430b00b006d205b2a70emr5971286qko.26.1666192388915; Wed, 19 Oct 2022 08:13:08 -0700 (PDT) Original-Received: from smtpclient.apple (pool-108-21-63-133.nycmny.fios.verizon.net. [108.21.63.133]) by smtp.gmail.com with ESMTPSA id he7-20020a05622a600700b003972790deb9sm4127007qtb.84.2022.10.19.08.13.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2022 08:13:08 -0700 (PDT) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=jacob.fai@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245877 Archived-At: 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 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 = =E2=80=9Ccompile=E2=80=9D $ ./src/emacs -Q # switch to Async compilation buffer, and you will once again see the = same files =E2=80=9Ccompiled" $ 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- however I see: 29.0.50- $ ll subr--trampoline-6c6f6164_load_0.eln subr--trampoline-6d616b652d70726f63657373_make_process_0.eln subr=E2=80=94-trampoline-*... I.e. only the trampoline functions. Furthermore, emacs =E2=80=9Ccompiles=E2= =80=9D 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- $ ll subr--trampoline-6c6f6164_load_0.eln subr--trampoline-6d616b652d70726f63657373_make_process_0.eln subr=E2=80=94-trampoline-*=E2=80=A6 cl-lib-8b938900-c76f14d9.eln json-a90a1eab-350c449d.eln gv-e0cf7478-3ced7662.eln url-parse-ee297c9b-39553ec5.eln =E2=80=A6 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=3D/Users/jacobfaibussowitsch/soft/packages CC=3Dclang= CXX=3Dclang++ 'CFLAGS=3D-O3 -mtune=3Dnative -flto=3Dthin -flto-jobs=3D7 -std=3Dgnu17 -Wno-unused-command-line-argument -Wno-unknown-pragmas' 'CXXFLAGS=3D-O3 -mtune=3Dnative -flto=3Dthin -flto-jobs=3D7 = -std=3Dgnu++20 -Wno-unused-command-line-argument -Wno-unknown-pragmas' LDFLAGS=3D-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)