From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Speeding up the bootstrap build - a quick hack. Date: Tue, 18 Jan 2022 15:35:42 +0100 Message-ID: <875yqhp0w1.fsf@gmail.com> References: <87pmopp4jy.fsf@gmail.com> <87ee55p1wr.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="22620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 16:52:59 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 1n9qn5-0005dQ-A5 for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 16:52:59 +0100 Original-Received: from localhost ([::1]:34654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9qn4-0007TD-EI for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 10:52:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9paa-0005sv-5Z for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:36:00 -0500 Original-Received: from [2a00:1450:4864:20::330] (port=42914 helo=mail-wm1-x330.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9paY-0000To-Cv for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:35:59 -0500 Original-Received: by mail-wm1-x330.google.com with SMTP id ay4-20020a05600c1e0400b0034a81a94607so8039298wmb.1 for ; Tue, 18 Jan 2022 06:35:44 -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=DciwOEWCSJl8jojHfmmuJ7lKNlavIpOlE+8kjjlutMk=; b=byafPOUUbYCrXYJcv4V4oogb8eIEq9urzM6URR5dDS31iFV32SRmEAc0KBSdKwuDfC 2gmpzeL9gSh8U4NK/XZjzRrgZUIBEEjl0aTOxTKNCNTCpRMtv5ie6DmYcGZIPCMsXXeV 0MuuVUobY1ux+ggEh114SF80ZveuY8LuYfJGO+YOCuIedz9AmPbPLtwVYGz7OF2V33oD Njk6K9dteXJAWiFMsPAWJbX+EKp6AykmnzXX8BzRbclKmLWD8iYTn7Iv9Ih/8C7NQQlc NJRbIg4Pd7zG5dUeXmfDwNjvDi7LrNgwPIKJ1lVynfhHrZWh5kMbhA65PqdCz9mSAq8E u0aQ== 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=DciwOEWCSJl8jojHfmmuJ7lKNlavIpOlE+8kjjlutMk=; b=EybNVhpLq8ZE+GY9g/0zVUogB8n68UiiuXSlLEwzWw92ntpNHRdGm2YI2vYY9eWblq b4mKg8VoAGtoExLhhxGvxcYGJ1AkldaGrV+LD/haJLMR45PobUigIf+91LXriOvVsIg4 0PrdCoWh2SoweA/3tSyV5KZSvw2Ph0lJMHgVilKzypdrHZl9O3mDpD4hJqDPie/3E/w6 VnxX9ARTUfEV5RLSPOZluJ2F3kYqrOLycSOVyhIv1hrM4pNaCA7tG0rLmciP17Ub1tVR TqNQuzq5EIPPOn+WKRquy7A1m9QYkLWefLR7RYLBnvkOrM07tlkpmU850VuXdsX0o60d ozNQ== X-Gm-Message-State: AOAM532mMDTH09w03enE+1tGxMnHshz7PDo3oYe2YtVXl0+iq6nnoXw+ j7qu8zkGQ8Os2Gpt2IDue8qAPg7rgsE= X-Google-Smtp-Source: ABdhPJx4jEHtWLdGGOg2RKG0+WzcoOSBQHmL21zWT2V96P5A55ONAHYZn5K1gF6RknOj4j0NGQyxHA== X-Received: by 2002:a1c:7c13:: with SMTP id x19mr25622985wmc.78.1642516543807; Tue, 18 Jan 2022 06:35:43 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:bb30:9458:d59e:39a2]) by smtp.gmail.com with ESMTPSA id h14sm16565250wrz.31.2022.01.18.06.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 06:35:43 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Tue, 18 Jan 2022 09:24:04 -0500") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::330 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=rpluim@gmail.com; helo=mail-wm1-x330.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." 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:284935 Archived-At: >>>>> 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.el= c cconv.elc ... Stefan> ELC+ELN ... Stefan> to build the native compiled compiler using the byte-compiled c= ompiler 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.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). There=CA=BCs no other file or directory name that contains that hash? Could 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 --=20