From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "N. Jackson" Newsgroups: gmane.emacs.bugs Subject: bug#73303: 30.0.91; Native compiler repeatedly interrupts at random moments Date: Tue, 17 Sep 2024 20:09:51 +0000 Message-ID: <8734lyyrcg.fsf@Phoenix> References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> <87plp2mhj1.fsf@moondust.awandering> <865xqub7ai.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , acorallo@gnu.org, 73303@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 22:11:00 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 1sqeXM-000630-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 22:11:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqeXC-0000GR-W6; Tue, 17 Sep 2024 16:10:51 -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 1sqeX9-0000Ff-Ta 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-0002bG-Ke 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=qAtoL63Ai92DOAWKOKgB/umXQDccGjO9YcZLDxUpD2w=; b=mibnybQ4iGPECr7tF9crtt86vakKH4WRIU0GDCvaUxDYD6/k65fYaApKK5RQVvKl9IUbV2PjO3wD5NmP/hMQo0yKnUgeb7o7Z3jRA9ioP/QnaZlwfY9wncBxXJ1Rq+LZr+biGZaESKecqQ42IK3qPcrJmReqD9HkB8OkKrb/0ugsHO3mcbwUW17Po2GO0gEyyAGUs9R/A+8eBCtt2CAV5zXTXPhZjedbvrJFfWWxzxBPKalNyPaEvYEq6yoYdIYOiwMAvpWwTvZ1zOLXXJziGHldstx/nN3qx2NFYZzXA56UaKbsIqM59d/Ms6joH7RtjqdWjMumU5o6v91PZEKh8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqeXO-0002KW-HD for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 16:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "N. Jackson" 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.17266038188402 (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:18 +0000 Original-Received: from localhost ([127.0.0.1]:56038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqeWg-0002BH-39 for submit@debbugs.gnu.org; Tue, 17 Sep 2024 16:10:18 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:48825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqeWd-0002B0-S7 for 73303@debbugs.gnu.org; Tue, 17 Sep 2024 16:10:16 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BE2FD240027 for <73303@debbugs.gnu.org>; Tue, 17 Sep 2024 22:09:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726603794; bh=PExvjOaS8KqDyZAhNv+9yCs2x/QrwOURO8ltSitLYks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=aqWMre9Age62d7FsVW1pw91MK5RD/eGPbTvHyrpViOftIYzKDl1/SSlExQzNX0NGV 9ZgooPaT394VwB4yi4uKSiL2AWEtbPrPYoBhOqqn9yDPqGaEVSt1968rJXd/63PUH1 RB0xu3pX+R2i6TLYJCww9yixLbJNxGi+gSqyOfNE+7J5plYOUCAVO0FlZ3DzLWf6x4 QPvD92MxopDzQnuw5LCiRTaBxnZRydj5hGcoIQoEbcl58iJmbo5kbQ4xgSUPRh+bJl VgmKTqdWNnwUvB7gGdebsPim4mBsWNjbK7Tav7KQQbOxRqwuQI3MJAavsC78HAdqIf lKn8Mojhph1Hg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X7Xv46z8Yz9rxD; Tue, 17 Sep 2024 22:09:52 +0200 (CEST) In-Reply-To: <865xqub7ai.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Sep 2024 18:59:17 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291971 Archived-At: At 18:59 +0300 on Tuesday 2024-09-17, Eli Zaretskii wrote: To: Eli Zaretskii Cc: Philip Kaludercic , 73303@debbugs.gnu.org, acorallo@gnu.org Subject: Re: bug#73303: 30.0.91; Native compiler repeatedly interrupts at random moments From: "N. Jackson" Gcc: nnfolder+archive:sent.2024-09 --text follows this line-- At 18:59 +0300 on Tuesday 2024-09-17, Eli Zaretskii wrote: > The feedback is always welcome, of course (if my wording somehow > made an impression it wasn't, I apologize). No worries. I very much appreciate the huge amount of work you do on Emacs and it amazes me that anyone could find time for it all. So if your messages are sometimes somewhat terse, I can appreciate them for being concise and I've learned to take them literally, at face value, without imagining hidden implications. > So these issues are not new, and I think Emacs 30 is better > equipped to deal with them, and gives users more knobs to deal > with them. More knobs is good, but probably increases the difficulty of choosing the defaults. > If you set native-comp-async-report-warnings-errors to the value > 'silent', the warnings will be logged in the *Warnings* buffer, where > you can later review them, but will not be shown in a popup buffer, > which might distract you when you don't want that. Thank you for that tip, I'll do that. [I'll never remember to look at the *Warnings* buffer, but I can set a hook that runs when Emacs exits that logs the warnings and sets a TODO in Org to remind me to look at them at an opportune moment.] > If your init file arranges for many packages to load only on demand, > then I don't think there is a way, except summarily compile all the > packages under your ~/.emacs.d/ directory (assuming that's where you > install them). I don't think I do that. Not deliberately anyway. Almost all the packages I use were installed with the package manager through the list-packages interface, although there a few that comes from my GNU/Linux distribution. Here it's ~/.config/emacs/ nowadays, and I could compile everything there but that wouldn't catch the files from the distro. >> I don't suppose there's a function >> native-compile-eagerly-compile-all-dependencies-of-my-init-files-and-do-it-synchronously-right-now?! > > We could do that, but before we do' we'd need to come up with a > find-all-dependecies-of-my-init-files function ;-) Ha! Well I don't feel so bad now that I couldn't immediately see exactly how to do it. But wouldn't it be as simple as just native compiling everything on load-path? After all, if the native compilation that produces the intrusive warnings is triggered by loading a .elc file, mustn't the offending file be on the load path? [Unless the file were loaded explicitly, I suppose, but that case one could handle separately if one wanted to -- after all, explicit loads should be easy to find.] Could there be a native-compile-load-path function? > The preloaded files are natively compiled as part of the build, but > the rest are only natively compiled if the build uses the optional > "ahead-of-time" feature, via a switch to the configure script. Thank you, I'll add that to the things I turn on when I run configure.