From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#73303: 30.0.91; Native compiler repeatedly interrupts at random moments Date: Tue, 17 Sep 2024 20:10:23 +0000 Message-ID: <87msk611ow.fsf@posteo.net> References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> <87plp2mhj1.fsf@moondust.awandering> <865xqub7ai.fsf@gnu.org> <871q1i2k5p.fsf@posteo.net> <87a5g6yu5s.fsf@Phoenix> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , acorallo@gnu.org, 73303@debbugs.gnu.org To: "N. Jackson" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 22:11:16 2024 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 1sqeXa-0006NN-Vo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 22:11:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqeXC-0000GE-8U; Tue, 17 Sep 2024 16:10:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqeXA-0000Fg-7a for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 16:10:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqeX9-0002bR-V0 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 16:10:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Om+m63CQL0vIimPmcfRxZZDZvcBwlLuAKYDI6iC18U4=; b=oyh3H7eI183xDb6hc5qBtrlbKneAZa0vjW3u47npJF+1+RQVEuyjmGVRa4UoA7/XBbwsmAzudVHVEWnzL8Y5A44W7+wKjm9bfsE5mcqiKlxtZFnf2sqIRW9xkbbDaLQJY/+X9am1YjkZuMOGoR3QgYDKWujoLxVAhuvEOmcsHeUqU5uRTdn+htyghW2DanL4t3wF0L8GtQuu2Pw09r1BjsyDlAMtpqZktrUR6HVVR7A9YhXBz3yZ+AqvVIJOww9pxb1EyRhXyxW9ADIwBWKr/VK54XHk1ZQlk8KYEjSzeGAD00ERYZLIHNslG4nm1b3m0DUMx0UmYMyhBJtULbzSRg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqeXO-0002Ke-VW for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 16:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 73303-submit@debbugs.gnu.org id=B73303.17266038488929 (code B ref 73303); Tue, 17 Sep 2024 20:11:02 +0000 Original-Received: (at 73303) by debbugs.gnu.org; 17 Sep 2024 20:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:56042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqeX9-0002Jx-ME for submit@debbugs.gnu.org; Tue, 17 Sep 2024 16:10:48 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:60071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqeX7-0002Jh-LY for 73303@debbugs.gnu.org; Tue, 17 Sep 2024 16:10:46 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E49C1240027 for <73303@debbugs.gnu.org>; Tue, 17 Sep 2024 22:10:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726603824; bh=WAPFQKchrdGoB5Iahee1G9IL/VSuvpB9SbziVWEKwUc=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=YJOrq4/dNy3whr9X02EZAqAwrnAzh/zIF3RkflytnOFtm1ky738KAR32lOzIvHi22 +Axe7bcp5vsXcoHBHSX0kL40uqQ1U0UnlXOo7zMdIG+FncnccuciSj1ahMe5DHqE8j hPLlG70zF9+Ty1epV5KxYzbQdI12fAXr2bWBTULnPiZAaMtbFrlYIJeoVO8I/g4X+8 xMOHRxzMIQdfLkMdWEJ8S8F4WkXFR0VmF9FPc3miw1H/ipzEGYDcD1dAm7SnxAsjIq dUEt+1nNtvZgpDE5YWy1HF2b6qvYT3ALmUSm1wem/AjMXBU7KBPvpdtE30dEDs4/Ix t/lfDIcWh9lmw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X7Xvh1qGrz9rxG; Tue, 17 Sep 2024 22:10:24 +0200 (CEST) In-Reply-To: <87a5g6yu5s.fsf@Phoenix> (N. Jackson's message of "Tue, 17 Sep 2024 19:09:03 +0000") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=philipk@posteo.net; url="https://keys.openpgp.org/vks/v1/by-email/philipk@posteo.net"; preference=signencrypt 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291972 Archived-At: "N. Jackson" writes: > At 18:46 +0000 on Tuesday 2024-09-17, Philip Kaludercic wrote: > >> Eli Zaretskii writes: >> >>>> 2. When the package system installs/updates a package, does it >>>> natively compile the files at the same time as it byte compiles >>>> them? >>> >>> I'm not sure, but I think it doesn't. Philip, can you answer that? >> >> My understanding: Native compilation build on byte-compilation, >> and all packages are byte-compiled. If `package-native-compile' >> is enabled (which is not the case by default), then the package is >> immediately compiled using native-compilation as well. This >> applies both to installing packages and upgrading them. > > Shouldn't this be on by default now that native compilation is > enabled by default? After all, if Emacs is going to be byte > compiling the files anyway, it might as well native compile them at > the same time and get any issues out of the way while the user's > mind is in working-with-packages mode. I have no opinion on this, and as I don't build Emacs with native compilation I cannot try it out either. >> I don't know if the native compiler will detect .elc files >> automatically and compile them at some later point. > > When they are loaded, presumably? Right, Eli confirms this below. Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: "N. Jackson" , 73303@debbugs.gnu.org, >> acorallo@gnu.org >> Date: Tue, 17 Sep 2024 18:46:10 +0000 >> >> Eli Zaretskii writes: >> >> >> 2. When the package system installs/updates a package, does it >> >> natively compile the files at the same time as it byte compiles >> >> them? >> > >> > I'm not sure, but I think it doesn't. Philip, can you answer that? >> >> My understanding: Native compilation build on byte-compilation, and all >> packages are byte-compiled. If `package-native-compile' is enabled >> (which is not the case by default), then the package is immediately >> compiled using native-compilation as well. > > OK, so this means the OP will have to enable native compilation by > customizing package-native-compile. I haven't read through the entire thread, but it sounds like a possible solution. >> I don't know if the native compiler will detect .elc files >> automatically and compile them at some later point. > > It will, but only when Emacs loads these .elc files. -- Philip Kaludercic on siskin