From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore Date: Wed, 19 Oct 2022 19:13:15 +0000 Message-ID: References: <53A10149-DC0A-4642-AAD5-8843B0EFD7ED@gmail.com> <83czanzu0p.fsf@gnu.org> Mime-Version: 1.0 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="16137"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 58637@debbugs.gnu.org, Jacob Faibussowitsch To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 21:14:26 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 1olEWH-0003zi-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 21:14:25 +0200 Original-Received: from localhost ([::1]:56612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olEWG-000324-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 15:14:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olEVu-0002yu-8K for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olEVu-00064w-0n for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olEVt-0002Iy-Rc for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58637 X-GNU-PR-Package: emacs Original-Received: via spool by 58637-submit@debbugs.gnu.org id=B58637.16662068008804 (code B ref 58637); Wed, 19 Oct 2022 19:14:01 +0000 Original-Received: (at 58637) by debbugs.gnu.org; 19 Oct 2022 19:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:60059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olEVD-0002Hw-Ie for submit@debbugs.gnu.org; Wed, 19 Oct 2022 15:13:19 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:65360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olEVA-0002Hn-OH for 58637@debbugs.gnu.org; Wed, 19 Oct 2022 15:13:17 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29JJDFZr014227 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 19 Oct 2022 19:13:16 GMT In-Reply-To: <83czanzu0p.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Oct 2022 18:56:54 +0300") 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:245891 Archived-At: Eli Zaretskii writes: >> From: Jacob Faibussowitsch >> Date: Wed, 19 Oct 2022 11:13:06 -0400 >>=20 >> 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: >>=20 >> commit 1a8015b83761f27d299b1ffa45fc045bb76daf8a >> Author: Andrea Corallo >> Date: Sat Oct 15 00:59:55 2022 +0200 >>=20 >> * Prevent potential native compilation infinite recursions >>=20 >> * lisp/emacs-lisp/comp.el (comp-no-spawn): New var. >> (comp-subr-trampoline-install, comp-final, comp-run-async-workers) >> (comp--native-compile): Update. >>=20 >> Checking out the commit immediately before (0954689cb3243e3af4b0c12c08bd= cad608fd8433) and everything works. To see the difference this is reproduci= ble via: >>=20 >> $ 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 sa= me files =E2=80=9Ccompiled" >> $ git checkout 0954689cb3243e3af4b0c12c08bdcad608fd8433 >> $ make bootstrap >> $ ./src/emacs -Q >> # switch to Async compilation buffer, and you will see files begin compi= led (for real) >> $ ./src/emacs -Q >> # cannot switch to Async compilation buffer, it does not exist because a= ll files properly compiled >>=20 >> ---------------------------- >>=20 >> On startup emacs appears to native-compiles every file, every time. Chec= king ~/.emacs.d/eln-cache/29.0.50- however I see: >>=20 >> 29.0.50- $ ll >> subr--trampoline-6c6f6164_load_0.eln >> subr--trampoline-6d616b652d70726f63657373_make_process_0.eln >> subr=E2=80=94-trampoline-*... >>=20 >> 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. >>=20 >> Under normal circumstances I expect to see: >>=20 >> 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 >>=20 >> i.e. the compiled eln files for all the others. And indeed reverting to = 0954689cb3243e3af4b0c12c08bdcad608fd8433 I once again see those files gener= ated. > > Andrea, can you please look into this? Sure, doing it. Andrea