From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58637: 29.0.50; [Trunk] Native comp doesn't compile anything anymore Date: Wed, 19 Oct 2022 18:56:54 +0300 Message-ID: <83czanzu0p.fsf@gnu.org> References: <53A10149-DC0A-4642-AAD5-8843B0EFD7ED@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58637@debbugs.gnu.org To: Jacob Faibussowitsch , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 17:58:36 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 1olBSk-0006IO-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 17:58:35 +0200 Original-Received: from localhost ([::1]:34020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olBSj-0000CS-PP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 11:58:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBSG-000082-Kf for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olBSF-0000fC-CI for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olBSE-0001Sl-4l for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 15:58:02 +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.16661950325567 (code B ref 58637); Wed, 19 Oct 2022 15:58:02 +0000 Original-Received: (at 58637) by debbugs.gnu.org; 19 Oct 2022 15:57:12 +0000 Original-Received: from localhost ([127.0.0.1]:59815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olBRQ-0001Ri-Eg for submit@debbugs.gnu.org; Wed, 19 Oct 2022 11:57:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olBRM-0001RV-Nx for 58637@debbugs.gnu.org; Wed, 19 Oct 2022 11:57:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBRG-0000b4-W5; Wed, 19 Oct 2022 11:57:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Z3AdGG/H7us1FGfgQ1Aijr5IFx17BMjjKMpRFQDkIbM=; b=S2TnpLMmU0+JeZlqdq3d OZ5SECmjwQ9lwQKbkhqKRN0pEMrtb8uPztZD58zqJT4y+Cw/rFQjDSGDioEAeijTVGcyoaUjPiWY2 JUA3WSc8n1C/yu6nHrT2KVO23K79M+CZvZm1eGw4N2pGJoi8JyHITiGnlhT7l4FdvihWUXciQ3JjO DVKREvScrx1H4MAxr9zjaG2+INLt38HVxFalHdZdhElJseq5chf2dQaqPCWV6Egr3HD6n2R0KGVKN cVs8lTORrUurlS5Osfibd/FKCqMJ1glkhLinmBktS1yVAR97wkyTETGTPyJ2ye8IIGwWtDH6m25DC 4BAWf+pEo6Q6dw==; Original-Received: from [87.69.77.57] (port=3480 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBRF-0003pB-2c; Wed, 19 Oct 2022 11:57:02 -0400 In-Reply-To: <53A10149-DC0A-4642-AAD5-8843B0EFD7ED@gmail.com> (message from Jacob Faibussowitsch on Wed, 19 Oct 2022 11:13:06 -0400) 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:245880 Archived-At: > From: Jacob Faibussowitsch > 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 > 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- however I see: > > 29.0.50- $ 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- $ 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?