From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: disable automatic native-compilation? Date: Sat, 09 Jul 2022 09:49:59 -0700 Message-ID: <86h73qi62w.fsf@stephe-leake.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="37241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 09 18:51:11 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oADfi-0009R8-NS for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jul 2022 18:51:10 +0200 Original-Received: from localhost ([::1]:48594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oADfh-00007N-EO for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jul 2022 12:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oADex-0007rQ-Qh for emacs-devel@gnu.org; Sat, 09 Jul 2022 12:50:23 -0400 Original-Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:41652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oADev-0001bG-EB for emacs-devel@gnu.org; Sat, 09 Jul 2022 12:50:23 -0400 Original-Received: from cmgw11.mail.unifiedlayer.com (unknown [10.0.90.126]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id D89DD10041C70 for ; Sat, 9 Jul 2022 16:50:06 +0000 (UTC) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id ADegoITLCrOQ9ADegoLO4p; Sat, 09 Jul 2022 16:50:06 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=CpF6zl0D c=1 sm=1 tr=0 ts=62c9b1be a=dWLzHQi6WpdymmZIwiVdBw==:117 a=HlCpoMJyzbfmKqni6+j5Yg==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=tM0vITTUgjEa-U8qRTYA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a2K5pP4LbISemRStWq3trh2mp7p/oEcMqLhTXopTUqE=; b=MseNlML2IdOY+kRfHTd/kiwVgU BmK4zkRsDpvmYnUPJcQ9BHTEaFSNw3sjyhJYGxuka6tftkaYwoyBnuSG2C+YJjzstZa+BRuUq5L3q rQ45iS8xFKBR6p5e6NEPAChU18IEwpOxIBxMDNhQ2OSYbJZVQTLdMeBMy6PzAWnjpZy4/eJ2kVf33 G6YAmmdEBlzKY0YadWyUqqiOWmtuR/ghUSNWJwUi33VfrwAmNawef20qkTq0V6jdB7yI33QqgTyAH wPJ704oxlWWSOjlswjtK5MlwGNWLqN5q3bOfAuA6L1Efp8IUzNGNzSKaeGImC/8vgHp6FbT8HLQfK vjLEPraQ==; Original-Received: from 192-184-171-126.fiber.dynamic.sonic.net ([192.184.171.126]:58522 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oADeg-000E8X-2m for emacs-devel@gnu.org; Sat, 09 Jul 2022 10:50:06 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 192.184.171.126 X-Source-L: No X-Exim-ID: 1oADeg-000E8X-2m X-Source-Sender: 192-184-171-126.fiber.dynamic.sonic.net (Takver4) [192.184.171.126]:58522 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: pass client-ip=69.89.30.42; envelope-from=stephen_leake@stephe-leake.org; helo=gproxy3-pub.mail.unifiedlayer.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TRACKER_ID=0.1, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291995 Archived-At: I've just started using Emacs 28. I'm trying run the ada-mode test suite, which lauches a new Emacs instance for each test. Now that instance also starts a native-compile process, which slows things down (a lot), and does not terminate cleanly when the Emacs instance does at the end of the test. I'm on Windows, so this pops up a dialog that I have to acknowledge eventually. The elisp manual section on native compilation does not say how to disable it. I managed to disable starting the native-compile process by: (defun native-comp-available-p () nil) That sometimes causes an error about "can't find libgccjit", which aborts the test. I can't track down the specific cause of that error, because even C-h f foo gives the "can't find libgccjit" error once it happens. I tried M-x apropos-variable native, which turned up some interesting possibilities: native-comp-deferred-compilation The documentation for this variable says: "If non-nil compile loaded .elc files asynchronously." what happens if this is nil? the files are compiled synchronously, or not at all? Setting that nil instead of redefining native-comp-available-p seems to work. So, I suggest: - There should be a simple way to completely disable native compilation; Emacs should never do anything that I can't control. If setting native-comp-deferred-compilation nil is the right way to do this, it should be documented in the native compilation section of the elisp manual. - When native-comp-available-p returns nil, there should be no errors about libgccjit -- -- Stephe