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#58509: 29.0.50; Synchronous nativecomp Date: Fri, 14 Oct 2022 13:53:03 +0300 Message-ID: <83mt9y8ynk.fsf@gnu.org> References: <87a65yd715.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58509@debbugs.gnu.org, akrl@sdf.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 12:54:41 2022 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 1ojIKt-0004FH-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 12:54:39 +0200 Original-Received: from localhost ([::1]:42526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojIKq-0002T4-7z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 06:54:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojIKI-0002SD-UW for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 06:54:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojIKI-0003BP-MF for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 06:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojIKI-0004xp-HT for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 06:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 10:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58509 X-GNU-PR-Package: emacs Original-Received: via spool by 58509-submit@debbugs.gnu.org id=B58509.166574480619008 (code B ref 58509); Fri, 14 Oct 2022 10:54:02 +0000 Original-Received: (at 58509) by debbugs.gnu.org; 14 Oct 2022 10:53:26 +0000 Original-Received: from localhost ([127.0.0.1]:35885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojIJh-0004wW-Og for submit@debbugs.gnu.org; Fri, 14 Oct 2022 06:53:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojIJe-0004wG-Jz for 58509@debbugs.gnu.org; Fri, 14 Oct 2022 06:53:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojIJY-00037H-Ok; Fri, 14 Oct 2022 06:53:16 -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=ppTvsnC99ee45Qw/V223LwC4mc0Ra9xg6h9OpqmUfsI=; b=YOJpErH507hB rPznIxxGxBHaGkWtARbL0t2l/UqdEBUgC9/vg1cE8HuTerMYXWOVeocSgRzwmmg+2xqiKOmLj+m1P uwl8CIUTHlsHUxT085BEXYYAx/5Jc1+fvCuLnc0/JIGvn2sksEI3Ggi1tdIk+cuXD0UV00hRFLzwm 4ZoJVNrLfQ2Go4LvXtXPd3yg/OWHFFIIUQEffttVtUw7hdJ564YaHvRnHqkd9sO9342TfmEVP7y3r oJbaEW0nj0ODLZ/YnlzDqk+31J3fHcv5Q70n/x8vDu32m1LMSEjHfIIvKQfQlEke0ggCiPjmuJaID UGYFNfFvZmFC8WOBktuhxw==; Original-Received: from [87.69.77.57] (port=4869 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 1ojIJX-0006I3-Vh; Fri, 14 Oct 2022 06:53:16 -0400 In-Reply-To: <87a65yd715.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 14 Oct 2022 12:38:30 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:245397 Archived-At: > Cc: Andrea Corallo > From: Lars Ingebrigtsen > Date: Fri, 14 Oct 2022 12:38:30 +0200 > > > I thought I'd open a bug report for something I mentioned elsewhere: It > should be possible for --batch Emacsen to do native compilation. We already have that, and we use it when users build a release tarball. Here's the lisp/Makefile snippet which does it: ifeq ($(HAVE_NATIVE_COMP),yes) .PHONY: $(THEFILE)n $(THEFILE)n: $(AM_V_ELN)$(emacs) $(BYTE_COMPILE_FLAGS) \ -l comp -f byte-compile-refresh-preloaded \ --eval '(batch-native-compile t)' $(THEFILE) We also have the batch-native-compile function, which is probably a better match for what you want to do in your case (compile a bunch of your own Lisp files, AFAIU). > However, this also almost requires that we allow the nativecomp to > happen synchronously -- the batch job may end before nativecomp finished > otherwise, leading to cleanup problems and loss of efficiency. The above-mentioned functions do work synchronously. So what is actually missing?