From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Speeding up the bootstrap build - a quick hack. Date: Tue, 18 Jan 2022 09:24:04 -0500 Message-ID: References: <87pmopp4jy.fsf@gmail.com> <87ee55p1wr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14312"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 16:43:47 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 1n9qeB-0003Xr-4I for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 16:43:47 +0100 Original-Received: from localhost ([::1]:43662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9qe9-0002hO-Tn for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 10:43:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9pPB-0004J1-5x for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:24:13 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9pP8-0006db-VI for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:24:12 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BD68510019B; Tue, 18 Jan 2022 09:24:08 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 82AD2100123; Tue, 18 Jan 2022 09:24:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1642515846; bh=2VHUicd9bVM6TvC1BzGjZtWsve5UAuxfM202sOATJa0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=B33jAOj934xcuygH4eki7u5TUWzM9ukHnlscr3/rU5VxwFqYDDo2Du1ujCvAF0OII RA7M8Ubwgjd146KGbk0j9BLtJ+p4NwxBEh2Up2IryU876QsggqW/WlrFjWT4oNmtAo RkqiT6SCNepcb3l/u7f9JfDgo+RId/Ig/KZm7I9EooseaQ/spsUlqaMuJpheaVoCsm +y4yWqaKdtrJV2glrSOpXwk/uIzKHplNtZsJwurUGbHH6k9nBH/tUe+Yz1YsnwPxPS kyp+9KPKKGvd5vmoQTc3h3qxZ71VKZtYRgHEVOtysi1gMYApwGxguaF/qibPK+kz5S 74bJCPwJqXhwA== Original-Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4BCC012084D; Tue, 18 Jan 2022 09:24:06 -0500 (EST) In-Reply-To: <87ee55p1wr.fsf@gmail.com> (Robert Pluim's message of "Tue, 18 Jan 2022 15:13:40 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:284932 Archived-At: > So if you ensured that the native compiler files were built before > that problematic .elc, then things would be ok? The problem is that you need one rule bytecomp.elc: bytecomp.el ELC ... to build the byte-compiled compiler, and then another rule: bytecomp.elc: bytecomp.el bytecomp.elc comp.elc macroexp.elc cconv.elc ... ELC+ELN ... to build the native compiled compiler using the byte-compiled compiler (which is much faster than the interpreted compiler). In an ideal world the second rule would not have `bytecomp.elc` as its target but would have something like `bytecomp.eln` instead, but we have not yet been able to teach Make how to compute the name of the generated `.eln` file (it's not just `bytecomp.eln` but includes some hash of the Emacs binary). Stefan