From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Speeding up the bootstrap build - a quick hack. Date: Tue, 18 Jan 2022 16:09:53 +0000 Message-ID: References: <87pmopp4jy.fsf@gmail.com> <87ee55p1wr.fsf@gmail.com> <875yqhp0w1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1023"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Mackenzie , Stefan Monnier , 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 17:18:33 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 1n9rBp-000AdY-9U for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 17:18:33 +0100 Original-Received: from localhost ([::1]:51430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9rBn-0006nr-U4 for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 11:18:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9r3d-0004cq-EA for emacs-devel@gnu.org; Tue, 18 Jan 2022 11:10:06 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:57010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9r3a-0000XQ-7t for emacs-devel@gnu.org; Tue, 18 Jan 2022 11:10:05 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 20IG9rho001662 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 18 Jan 2022 16:09:53 GMT In-Reply-To: <875yqhp0w1.fsf@gmail.com> (Robert Pluim's message of "Tue, 18 Jan 2022 15:35:42 +0100") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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:284938 Archived-At: Robert Pluim writes: >>>>>> On Tue, 18 Jan 2022 09:24:04 -0500, Stefan Monnier said: > > >> So if you ensured that the native compiler files were built before > >> that problematic .elc, then things would be ok? > > Stefan> The problem is that you need one rule > > Stefan> bytecomp.elc: bytecomp.el > Stefan> ELC ... > > Stefan> to build the byte-compiled compiler, and then another rule: > > Stefan> bytecomp.elc: bytecomp.el bytecomp.elc comp.elc macroexp.= elc cconv.elc ... > Stefan> ELC+ELN ... > > Stefan> to build the native compiled compiler using the byte-compiled= compiler > Stefan> (which is much faster than the interpreted compiler). > > Ah, we=CA=BCre lying to make. No wonder we=CA=BCre having problems :-) > > Stefan> In an ideal world the second rule would not have `bytecomp.el= c` as its > Stefan> target but would have something like `bytecomp.eln` instead, = but we have > Stefan> not yet been able to teach Make how to compute the name of th= e generated > Stefan> `.eln` file (it's not just `bytecomp.eln` but includes some h= ash of the > Stefan> Emacs binary). > > There=CA=BCs no other file or directory name that contains that hash? Cou= ld > we do a dummy compile of an empty .el using the native compiler and > derive the hash from that? (and then compile the native compiler with > the byte compiler). > > Robert Part of the hash is computed also using the content of the .el file so the empty .el trick would not work. Andrea