From unknown Sun Jun 22 07:53:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation Resent-From: ct@pipapo.org (Christian =?UTF-8?Q?Th=C3=A4ter?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2020 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 40969@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158818734016677 (code B ref -1); Wed, 29 Apr 2020 19:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Apr 2020 19:09:00 +0000 Received: from localhost ([127.0.0.1]:44609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTs4p-0004Kp-VT for submit@debbugs.gnu.org; Wed, 29 Apr 2020 15:09:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:52884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTrVo-0003RV-Vk for submit@debbugs.gnu.org; Wed, 29 Apr 2020 14:32:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTrVo-0006ME-FI for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006g9-JA for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 Received: from mail.pipapo.org ([78.47.240.153]:59234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006fi-1q for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:47 -0400 Received: from hermes.pipapo.org (imap.pipapo.org [10.10.40.10]) by mail.pipapo.org (Postfix) with ESMTPS id 3AF8B5DC2F for ; Wed, 29 Apr 2020 18:32:41 +0000 (UTC) Received: from wolke (wolke.pipapo.org [10.100.20.10]) by hermes.pipapo.org (Postfix) with ESMTPS id BA66A9E001DE for ; Wed, 29 Apr 2020 18:32:40 +0000 (UTC) From: ct@pipapo.org (Christian =?UTF-8?Q?Th=C3=A4ter?=) Date: Wed, 29 Apr 2020 20:32:26 +0200 Message-ID: <868siem9c5.fsf@pipapo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=78.47.240.153; envelope-from=ct@pipapo.org; helo=mail.pipapo.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 14:32:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 78.47.240.153 X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Wed, 29 Apr 2020 15:08:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I notice that when I 'org-reload' C-c C-x ! then the whole compilation starts again even when its already compiled. Somewhere it misses that. I didn't investigate this any further. Maybe its intended behavior because org-mode forces to byte-compile itself. Might be smarter to store a hash over the source .el or .elc in the .eln metadata and prevent recompilation when it was already compiled. In fact all .eln could be addressed by these hashes with some directory restructuring (I dont go into detail here, this would be another feature). In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2020-04-26 built on wolke Repository revision: e6fb440ed7e48c2e8c4bba4666db2f0ff9950a25 Repository branch: native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure --with-nativecomp --with-cairo --enable-link-time-optimization --with-xwidgets' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS PDUMPER GMP Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix From unknown Sun Jun 22 07:53:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2020 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: ct@pipapo.org (Christian =?UTF-8?Q?Th=C3=A4ter?=) Cc: 40969@debbugs.gnu.org Received: via spool by 40969-submit@debbugs.gnu.org id=B40969.158819231524728 (code B ref 40969); Wed, 29 Apr 2020 20:32:01 +0000 Received: (at 40969) by debbugs.gnu.org; 29 Apr 2020 20:31:55 +0000 Received: from localhost ([127.0.0.1]:44784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTtN5-0006Qm-H1 for submit@debbugs.gnu.org; Wed, 29 Apr 2020 16:31:55 -0400 Received: from mx.sdf.org ([205.166.94.20]:62768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTtN3-0006Qc-8q for 40969@debbugs.gnu.org; Wed, 29 Apr 2020 16:31:54 -0400 Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 03TKVqAN002200 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 29 Apr 2020 20:31:52 GMT Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03TKVpMB001268; Wed, 29 Apr 2020 20:31:51 GMT From: Andrea Corallo References: <868siem9c5.fsf@pipapo.org> Date: Wed, 29 Apr 2020 20:31:51 +0000 In-Reply-To: <868siem9c5.fsf@pipapo.org> ("Christian =?UTF-8?Q?Th=C3=A4ter?="'s message of "Wed, 29 Apr 2020 20:32:26 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ct@pipapo.org (Christian Th=C3=A4ter) writes: > I notice that when I 'org-reload' C-c C-x ! then the whole > compilation starts again even when its already compiled. Somewhere it > misses that. I didn't investigate this any further. Maybe its intended > behavior because org-mode forces to byte-compile itself. > > Might be smarter to store a hash over the source .el or .elc in the .eln > metadata and prevent recompilation when it was already compiled. In fact > all .eln could be addressed by these hashes with some directory > restructuring (I dont go into detail here, this would be another > feature). Hi Christian, I assume deferred-compilation is non nil. I managed to reproduce the issue and 02e3ffad6d solves it for me. The only thing I'm uncertain is if generally speaking we should disable the deferred compilation trigger when a load with MUST-SUFFIX non-nil is performed. Currently we are not doing that but I'm asking myself if this would be appropriate. Thanks Andrea --=20 akrl@sdf.org From unknown Sun Jun 22 07:53:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ct@pipapo.org (Christian =?UTF-8?Q?Th=C3=A4ter?=) Subject: bug#40969: closed (Re: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation) Message-ID: References: <868siem9c5.fsf@pipapo.org> X-Gnu-PR-Message: they-closed 40969 X-Gnu-PR-Package: emacs Reply-To: 40969@debbugs.gnu.org Date: Thu, 30 Apr 2020 19:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1588274942-9524-1" This is a multi-part message in MIME format... ------------=_1588274942-9524-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40969: 28.0.50; [feature/native-comp] unnecessary recompilation which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40969@debbugs.gnu.org. --=20 40969: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40969 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1588274942-9524-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40969-done) by debbugs.gnu.org; 30 Apr 2020 19:28:59 +0000 Received: from localhost ([127.0.0.1]:47726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUErj-0002TF-EZ for submit@debbugs.gnu.org; Thu, 30 Apr 2020 15:28:59 -0400 Received: from mx.sdf.org ([205.166.94.20]:52654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUErh-0002T6-4q for 40969-done@debbugs.gnu.org; Thu, 30 Apr 2020 15:28:57 -0400 Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 03UJStsE003206 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 30 Apr 2020 19:28:55 GMT Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03UJSsRp003086; Thu, 30 Apr 2020 19:28:54 GMT From: Andrea Corallo To: ct@pipapo.org (Christian =?utf-8?Q?Th=C3=A4ter?=) Subject: Re: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation References: <868siem9c5.fsf@pipapo.org> Date: Thu, 30 Apr 2020 19:28:54 +0000 In-Reply-To: (Andrea Corallo's message of "Wed, 29 Apr 2020 20:31:51 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40969-done Cc: 40969-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I'm still not sure if we should switch off deferred compilation while loading with MUST-SUFFIX but given 02e3ffad6d solves this issue I'm closing the bug. Thanks Christian for reporting it. Andrea -- akrl@sdf.org ------------=_1588274942-9524-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Apr 2020 19:09:00 +0000 Received: from localhost ([127.0.0.1]:44609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTs4p-0004Kp-VT for submit@debbugs.gnu.org; Wed, 29 Apr 2020 15:09:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:52884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTrVo-0003RV-Vk for submit@debbugs.gnu.org; Wed, 29 Apr 2020 14:32:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTrVo-0006ME-FI for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006g9-JA for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 Received: from mail.pipapo.org ([78.47.240.153]:59234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006fi-1q for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:47 -0400 Received: from hermes.pipapo.org (imap.pipapo.org [10.10.40.10]) by mail.pipapo.org (Postfix) with ESMTPS id 3AF8B5DC2F for ; Wed, 29 Apr 2020 18:32:41 +0000 (UTC) Received: from wolke (wolke.pipapo.org [10.100.20.10]) by hermes.pipapo.org (Postfix) with ESMTPS id BA66A9E001DE for ; Wed, 29 Apr 2020 18:32:40 +0000 (UTC) From: ct@pipapo.org (Christian =?utf-8?Q?Th=C3=A4ter?=) To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [feature/native-comp] unnecessary recompilation Date: Wed, 29 Apr 2020 20:32:26 +0200 Message-ID: <868siem9c5.fsf@pipapo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=78.47.240.153; envelope-from=ct@pipapo.org; helo=mail.pipapo.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 14:32:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 78.47.240.153 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 29 Apr 2020 15:08:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I notice that when I 'org-reload' C-c C-x ! then the whole compilation starts again even when its already compiled. Somewhere it misses that. I didn't investigate this any further. Maybe its intended behavior because org-mode forces to byte-compile itself. Might be smarter to store a hash over the source .el or .elc in the .eln metadata and prevent recompilation when it was already compiled. In fact all .eln could be addressed by these hashes with some directory restructuring (I dont go into detail here, this would be another feature). In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2020-04-26 built on wolke Repository revision: e6fb440ed7e48c2e8c4bba4666db2f0ff9950a25 Repository branch: native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure --with-nativecomp --with-cairo --enable-link-time-optimization --with-xwidgets' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS PDUMPER GMP Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix ------------=_1588274942-9524-1--