From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Robert Pluim <rpluim@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Speeding up the bootstrap build - a quick hack.
Date: Tue, 18 Jan 2022 16:13:23 +0100
Message-ID: <871r15oz58.fsf@gmail.com>
References: <YeXQ4FszqwRcmD1v@ACM> <jwvpmoqcco3.fsf-monnier+emacs@gnu.org>
 <Yeaq9mCUrG3ekRvk@ACM> <87pmopp4jy.fsf@gmail.com>
 <YebI86nHfHJ9JoTS@ACM> <87ee55p1wr.fsf@gmail.com>
 <jwvbl09b01w.fsf-monnier+emacs@gnu.org> <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="32309"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
To: Stefan Monnier <monnier@iro.umontreal.ca>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 17:09:49 2022
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1n9r3M-0008Bm-Ln
	for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 17:09:48 +0100
Original-Received: from localhost ([::1]:33826 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1n9r3L-0003Rq-1C
	for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 11:09:47 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:42360)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rpluim@gmail.com>) id 1n9qAq-0007cO-RT
 for emacs-devel@gnu.org; Tue, 18 Jan 2022 10:13:29 -0500
Original-Received: from [2a00:1450:4864:20::329] (port=38844
 helo=mail-wm1-x329.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rpluim@gmail.com>) id 1n9qAo-0007b3-AR
 for emacs-devel@gnu.org; Tue, 18 Jan 2022 10:13:28 -0500
Original-Received: by mail-wm1-x329.google.com with SMTP id
 p1-20020a1c7401000000b00345c2d068bdso6568334wmc.3
 for <emacs-devel@gnu.org>; Tue, 18 Jan 2022 07:13:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :mime-version:content-transfer-encoding;
 bh=39qV/4PFYBCSwCWl1U3zn33HtFCSS54JXGAPiU6KIuQ=;
 b=BI1FLHuEcCM0lPO6K63cTMzUxswErVHcGjVA9HbXg/NVlt1N/JvuN3k5xfOifyhCEa
 jK/WpfvwMs/oCYTAFpdOCVkJAV33QBfTTNN+iIZ8ChYDeuC8y4Z3er6ASL2lHPsBLAVk
 zBZSYeWSzNmQHIABu923ulU8k63/B+hLgPtTgRlcDxfI7wG5Uz2GUKrEBvDdYkXypFzc
 0MVPEWM94n4W4IZcqsLt/klZG5SntC5NSPRrl8/PBqsiaCDJwO21N2qS7ixCpzSNpDTB
 VsiAT706FvsJCyJbfzH3ARqDYWPvSxW1tjDF+XbQ1g1KVUF95fe6jF0EZ8lx+4VftzQz
 ea1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:mime-version:content-transfer-encoding;
 bh=39qV/4PFYBCSwCWl1U3zn33HtFCSS54JXGAPiU6KIuQ=;
 b=BRx6hfOTxJf70wah1nO16RBKPGmduiyAwzZUDph5RTpsWylb5Qv+anHDR1fLBGju03
 bD82kmvJvJ2ttYz6hF9A1IfeKy0Cpbn/WTebFhlqI7h/oaTDKDbF2aVz8EXYRldtq9fY
 vV5RjsTMf0A2gufxqpJMbt7ywPQFTMjuYR/DTJ2XH8YG6Ykcj29wfxFEIa3Wh3kBzzKC
 vPRrWeAbJlAM87C0W+BohyTsHIV0mpYP9vCjEM649ShySsN0Di+aSG0kUwjyGNyRvdG+
 kg5sJS9gAY/UoEj6uZYMohwnmonvsNl6aIF0Ck6TZjgoNqouj7NSuAyXmbmQ61kPDsMv
 YlfQ==
X-Gm-Message-State: AOAM5329qk1FCs755RDqVDv+Q/R1SVEkZWhXcX5fAGGWFX+8gp1NKJHh
 dJNNR+RzhY9BAGU1cNYnI7sgJ8X+yuw=
X-Google-Smtp-Source: ABdhPJxAGQQk8cHqMJSPhv6MAPH8PW/L4itXOlx6uFQpc5eOHzwgF2pPhK2MM5dpYG+7i6ErxRhibg==
X-Received: by 2002:a5d:59ae:: with SMTP id p14mr13547837wrr.559.1642518804346; 
 Tue, 18 Jan 2022 07:13:24 -0800 (PST)
Original-Received: from rltb ([2a01:e0a:3f3:fb50:bb30:9458:d59e:39a2])
 by smtp.gmail.com with ESMTPSA id s84sm2773wme.15.2022.01.18.07.13.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 18 Jan 2022 07:13:23 -0800 (PST)
In-Reply-To: <875yqhp0w1.fsf@gmail.com> (Robert Pluim's message of "Tue, 18
 Jan 2022 15:35:42 +0100")
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::329
 (failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::329;
 envelope-from=rpluim@gmail.com; helo=mail-wm1-x329.google.com
X-Spam_score_int: -12
X-Spam_score: -1.3
X-Spam_bar: -
X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:284937
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/284937>

>>>>> On Tue, 18 Jan 2022 15:35:42 +0100, Robert Pluim <rpluim@gmail.com> s=
aid:
    Stefan> In an ideal world the second rule would not have `bytecomp.elc`=
 as its
    Stefan> target but would have something like `bytecomp.eln` instead, bu=
t we have
    Stefan> not yet been able to teach Make how to compute the name of the =
generated
    Stefan> `.eln` file (it's not just `bytecomp.eln` but includes some has=
h of the
    Stefan> Emacs binary).

    Robert> There=CA=BCs no other file or directory name that contains that=
 hash? Could
    Robert> we do a dummy compile of an empty .el using the native compiler=
 and
    Robert> derive the hash from that? (and then compile the native compile=
r with
    Robert> the byte compiler).

Answering my own question:

src/emacs -batch --eval '(message "%s" (comp-el-to-eln-filename \
"./lisp/emacs-lisp/bytecomp.el" (car (last \
native-comp-eln-load-path))))' 2>&1

seems to give the right answer.

Robert
--=20