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:13:40 +0100 Message-ID: <87ee55p1wr.fsf@gmail.com> References: <87pmopp4jy.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="1970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 16:49:03 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 1n9qjH-0000Ok-CW for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 16:49:03 +0100 Original-Received: from localhost ([::1]:54442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9qjG-0001jO-7m for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 10:49:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9pF3-00064z-O7 for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:13:46 -0500 Original-Received: from [2a00:1450:4864:20::329] (port=46593 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 ) id 1n9pF1-000509-PU for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:13:44 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id az27-20020a05600c601b00b0034d2956eb04so5420929wmb.5 for ; Tue, 18 Jan 2022 06:13:43 -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; bh=QOM9/78tdJkxrfuNkcn8Hw2NP6SRULE34ZNA2flNEZI=; b=V3QwK5fPic9ufVthBpMWeTi9zvAjzk6L9BNp1HuGZ1KpHvPg2c1yCFpDkvTJSV9PMV WlDo6XFoOglMaEZCignb+ZvwpNAkheIfVsLnA2WZ7eAenxVQCHFEzWFBQ9tKvmm+6QCG WKzQI4d78xX9RT7EVkl9mutcO2iitQJ9qNv+nyWT+nWw35/RTGP+g3O0STmsB4o/rkVT VPpRO3yiI2aQTF2SnWQrajETOIb8+0tYvEpye9UxJw2hPScHRiIMowlyRXThuPLE/szI gPP02wySQG6PwEdXJSgtG9JPA/9qs/i7EjxgBuh8DJUCMNGeCLusdBcmZKQJ3W3GKJQb Ngew== 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; bh=QOM9/78tdJkxrfuNkcn8Hw2NP6SRULE34ZNA2flNEZI=; b=SFMQ//c0B6+XiW1BnWQ7lHv5ZrN7GhVK0wNnVYRX1Ep352Q8taIPyJVw/WUeWGdc4n T0k+Eu/UfdqJkOoXsIcaUPuvkVgUKJsvbbEnqe6pTYDokN57CIEd5SJBGPRQHwGKa7Q4 FfK633V28eFlOpmhjKulVhu+9qsIdlQ5jZjqD7jFh8A253umbF/XfrXQsRhtDCUns2Jg vpSvLRHii6Jwp0vN1Y+WPSh+5qE1w0KlQ3ClTjEqJ+iXMQL6b80MLlg0+Ru9YeQAlktb EiUjW3VkQJA1oF59etWx144Dq4b6SCVezE3/z0H1tO12vOC8eURtZHVmMCgODjlKiCLj qKVg== X-Gm-Message-State: AOAM53171byb2QP8SwFXSjlMYmQillNcXh29zte1si3CH7OmrbwQ8gcb BAaJYz+LiIy6D91papQL3dduBNdfAmk= X-Google-Smtp-Source: ABdhPJxeVpwJtuLDnHaMFwyKpxLaN0PFrljst2oZPPPvjr89oPmlsOYazjah8lFmlIADwuGXTtP0jw== X-Received: by 2002:a1c:5405:: with SMTP id i5mr19371797wmb.34.1642515221622; Tue, 18 Jan 2022 06:13:41 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:bb30:9458:d59e:39a2]) by smtp.gmail.com with ESMTPSA id j14sm2965211wmq.1.2022.01.18.06.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 06:13:41 -0800 (PST) In-Reply-To: (Alan Mackenzie's message of "Tue, 18 Jan 2022 14:04:35 +0000") 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." 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:284934 Archived-At: >>>>> On Tue, 18 Jan 2022 14:04:35 +0000, Alan Mackenzie said: Alan> Hello, Robert. Alan> On Tue, Jan 18, 2022 at 14:16:33 +0100, Robert Pluim wrote: >> >>>>> On Tue, 18 Jan 2022 11:56:38 +0000, Alan Mackenzie said: >> >> > # An old-fashioned suffix rule, which, according to the GNU Make manual, >> >> > # cannot have prerequisites. >> >> > ifeq ($(HAVE_NATIVE_COMP),yes) >> >> > -.el.elc: >> >> > +.el.elc0: >> >> > + $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \ >> >> > + --exec "(setq load-suffixes '(\".elc0\" \".el\"))" \ >> >> > + -f batch-byte-compile $< >> >> > + mv $> I think this would be far cleaner and less fragile if you used an >> order-only prerequisite instead of inventing new suffixes. Alan> Thanks for the reply. Alan> I'm not actually that experienced with make files. What does "an Alan> orer-only prerequisite" mean? It enforces the order in which things are built: default: 1.elc 2.elc 1.elc: | 2.elc means that 2.elc must be built before 1.elc. You can mix them with normal prerequisites, so 1.elc: 3.elc | 2.elc is valid as well. Alan> There was a problem with the current situation where the existence of a Alan> ..elc file prevented the native compiler from working. So I renamed Alan> these early files to .elc0, to prevent them getting in the way. So if you ensured that the native compiler files were built before that problematic .elc, then things would be ok? Robert --