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#73303: 30.0.91; Native compiler repeatedly interrupts at random moments Date: Sat, 19 Oct 2024 09:58:51 +0300 Message-ID: <86a5f0mvdg.fsf@gnu.org> References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> <87plp2mhj1.fsf@moondust.awandering> <865xqub7ai.fsf@gnu.org> <86ldzgc7c2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18439"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, njackson@posteo.net, 73303@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 19 09:00:01 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 1t23RQ-0004dD-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Oct 2024 09:00:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t23R7-0001Nh-9G; Sat, 19 Oct 2024 02:59:41 -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 1t23R6-0001NZ-J6 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 02:59:40 -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 1t23R6-0000ci-Al for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 02:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=EMLr3izcyTZSF7NF6AF6rkafvFakJyAdnJQeHcBDTj0=; b=Vx9BKPcdFRJLuLXHwnkzH4jLniKS2CAAP4L61TZr0NCxZegw9Caos8e216agGgBHWsd7U/cIWZ4WUVkwZhjwe96FLTyTp+uJlrYAqWDUwHJU+zT/4TobXxCwrzJ3MmBvx5Iavr5zc2EHo7bkIOfZddgG5mW0KpBmpLTV5bMStWgf3YxHA4243lNt8EvPS+02sH1T6MnrpYzBPrWDNor39NDPmJNNikyZ+glT2nspXcIB82Zy5M64qpQrtEbd13rdIXL+7QaiCOx6IwpMyievOKTjmCgDMENsZbkTw3jnmT4JjrvFeKMcyvzYCGCXySTjajOcfsLmLHG2oQ0NvOQN0Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t23RT-0006ml-AN for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 03:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 07:00:03 +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.172932116526007 (code B ref 73303); Sat, 19 Oct 2024 07:00:03 +0000 Original-Received: (at 73303) by debbugs.gnu.org; 19 Oct 2024 06:59:25 +0000 Original-Received: from localhost ([127.0.0.1]:41060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t23Qr-0006lO-2n for submit@debbugs.gnu.org; Sat, 19 Oct 2024 02:59:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t23Qp-0006lA-41 for 73303@debbugs.gnu.org; Sat, 19 Oct 2024 02:59:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t23QM-0000at-9r; Sat, 19 Oct 2024 02:58:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EMLr3izcyTZSF7NF6AF6rkafvFakJyAdnJQeHcBDTj0=; b=ZJdmXT3+NS2q UUcrkzohA9fhJSKRGEXW4XlGfkNNb5HEN1U0cyZqT2d2aUAzCdKKReX+fqBWkwhVvb9h51+FLlrco 56KVg4JRm6fl9/L9Lm6gjbqdtiIgnp+nbNqysJcz386GHmoF0fCB+we2aRg16usRmBxVl5pxhkYx4 w6jQ6dNINVP9NAmbMGksm3eiEAkNkkVsEA37taqMrPvG+fb4it2FFSkDvJ1ZugHSOZXywA5nqn+Vb 32IxvYIreaRi+YovnP5Wb44dDephT+JP6rXGvQJj6wOaP9LKzu4z1n6KjMAU+3dZTck2gl9lOGzRm TVC08uB76synZQCJkW0NUQ==; In-Reply-To: (message from Andrea Corallo on Wed, 25 Sep 2024 14:47:55 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293834 Archived-At: > From: Andrea Corallo > Cc: njackson@posteo.net, philipk@posteo.net, 73303@debbugs.gnu.org > Date: Wed, 25 Sep 2024 14:47:55 -0400 > > Eli Zaretskii writes: > > >> From: Andrea Corallo > >> Cc: "N. Jackson" , Philip Kaludercic > >> , 73303@debbugs.gnu.org > >> Date: Tue, 24 Sep 2024 15:10:10 -0400 > >> > >> Eli Zaretskii writes: > >> > >> > 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). Maybe we should have a native-compile-directory > >> > function to make that easier; currently we only have > >> > emacs-lisp-native-compile, which compiles a single file. Andrea, > >> > WDYT? > >> > >> Yes we could do that if we think is useful, is probably few lines like: > >> > >> (defun native-compile-directory (directory) > >> (mapc (lambda (file) > >> (native-compile file)) > >> (directory-files-recursively directory ".+\\.el$"))) > >> > >> but this will recompile all files, so maybe to make it useful for .emacs > >> we should have something that compiles files only when the corresponding > >> eln is not already present? > > > > Yes, that would be better. But the test is not very trivial, because > > the .eln file can be in another directory, somewhere on > > native-comp-eln-load-path, and there's the issue of the right version > > and hash. Maybe we should have a find-eln-file function to do that? > > Yep, just looping on `native-comp-eln-load-path` using > `comp-el-to-eln-rel-filename` should do the job. Okay I'll try to put > together a patch. Ping!