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.devel Subject: Re: Porting my conf to 28.0.60 (MS Windows + native-comp) Date: Mon, 18 Oct 2021 15:16:31 +0300 Message-ID: <834k9efrz4.fsf@gnu.org> References: <83k0ibfog0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32182"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Corwin Brust Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 18 14:18:33 2021 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 1mcRb6-0008Bz-2o for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Oct 2021 14:18:32 +0200 Original-Received: from localhost ([::1]:38022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcRb5-0007AU-0b for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Oct 2021 08:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcRZD-0003p2-Jw for emacs-devel@gnu.org; Mon, 18 Oct 2021 08:16:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36520) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcRZC-0004Af-Lc; Mon, 18 Oct 2021 08:16:34 -0400 Original-Received: from [87.69.77.57] (port=3318 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcRZ5-0008F8-Eo; Mon, 18 Oct 2021 08:16:34 -0400 In-Reply-To: (message from Corwin Brust on Sun, 17 Oct 2021 20:51:02 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:277269 Archived-At: > From: Corwin Brust > Date: Sun, 17 Oct 2021 20:51:02 -0500 > Cc: Emacs developers > > ;; tweaks for native-comp > ;; https://ddavis.io/posts/emacs-native-centos7/#deferred-and-asynchronous-compilation > ;; via https://github.com/jwiegley/emacs-async/issues/96 > ;; helper boolean I use here and later in my init.el > > (defconst my-using-native-comp > (and (not (version< emacs-version "28.0")) > (fboundp 'native-comp-available-p) > (native-comp-available-p)) > "Indicates we are using native compilation (via libgccjit).") > > (when my-using-native-comp > (message "Native compilation is avialable; throttling") > (setq native-comp-deferred-compilation t) > (setq native-comp-async-query-on-exit t) > (setq native-comp-async-jobs-number 4) > (setq native-comp-async-report-warnings-errors nil)) I see nothing here that could cause Emacs to spawn too many child processes for native-compilation: you limit the number of simultaneous sub-processes to 4, which shouldn't be a problem. So I still think you should try preparing a reproducer for that strange error message. When it happens, could you perhaps see how many network connections does Emacs have (with, for example, netstat)?