From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Script for compiling more quietly Date: Mon, 14 Dec 2020 15:09:47 +0000 Message-ID: References: <87czzg8b8v.fsf@gnus.org> <87y2i0310m.fsf@gnus.org> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-212064758-1480814904-1607958506=:10051" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39620"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 14 16:10:54 2020 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 1kopV0-000A6s-1M for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Dec 2020 16:10:54 +0100 Original-Received: from localhost ([::1]:41660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kopUz-0005OI-1O for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Dec 2020 10:10:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kopU5-00047b-Ba for emacs-devel@gnu.org; Mon, 14 Dec 2020 10:09:57 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:57610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kopU2-0003Vr-L6 for emacs-devel@gnu.org; Mon, 14 Dec 2020 10:09:56 -0500 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 0BEF9oC0003030 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 14 Dec 2020 15:09:50 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 0BEFATxg017050; Mon, 14 Dec 2020 15:10:29 GMT In-Reply-To: <87y2i0310m.fsf@gnus.org> Content-ID: Received-SPF: pass client-ip=205.166.94.24; envelope-from=ghe@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.23 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:260807 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---212064758-1480814904-1607958506=:10051 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-ID: >> Thanks for your script, which is indeed handy. I attach a slighly >> improved version, which also "cleans" the autogen and configure steps, >> and which displays error/warning messages in bold red. > > Looks nice, but it made a whole lot of stuff red when doing "bootstrap"? > Gosh, I forgot to filter out the initial Git repository setup! Fixed in the attached script. Now I only see three warnings in red with the current master: the famous https://gitlab.gnome.org/GNOME/gtk/issues/221 , two obsolete warnings in cedet/semantic/idle.el , and the (sporadic) Python shift/reduce conflict. >> I also replaced your "nproc" by "expr $(nproc) / 2 + 1", IME using >> nproc makes the computer unuseable, and is not much faster than >> nproc/2+1. > > It depends on whether you have Hypertheading, I guess -- I don't (on > this laptop), so -j`nproc` is twice as fast as nproc / 2. > > Absurdly enough, nproc doesn't have an option for "just say how many > cores there are, OK?" But I guess one could parse /proc/cpuinfo to try > to figure that out. > Yes indeed, that's it, somehow all computers I see/use have hyperthreading, and I concluded a bit too fast that this was always the case. Also fixed in the attached script, which uses /proc/cpuinfo. ---212064758-1480814904-1607958506=:10051 Content-Type: text/plain; charset=US-ASCII; name=emake Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=emake IyEvYmluL2Jhc2gNCg0KQz0kKGdyZXAgJ15jcHUgY29yZXMnIC9wcm9jL2Nw dWluZm8gfCBjdXQgLWQ6IC1mMiB8IGhlYWQgLTEpDQptYWtlIC1qJEMgIiRA IiAyPiYxIHwgXA0Kc2VkIC11ICdzIyBcLlwuL1wuXC4vIyAjDQpzIyBcLlwu LyMgIw0KcyNeQ29uZmlndXJpbmcgbG9jYWwgZ2l0ICMgQ29uZmlndXJpbmcg bG9jYWwgZ2l0ICMNCnMjXkluc3RhbGxpbmcgZ2l0IGhvb2tzLi4uIyBJbnN0 YWxsaW5nIGdpdCBob29rcy4uLiMNCnMjXlJ1bm5pbmcgIyBSdW5uaW5nICMN CnMjXkNvbmZpZ3VyZWQgZm9yICMgQ29uZmlndXJlZCBmb3IgIw0KcyNeLi90 ZW1hY3MgIyAuL3RlbWFjcyAjDQpzI15EdW1waW5nIHVuZGVyIHRoZSBuYW1l IyBEdW1waW5nIHVuZGVyIHRoZSBuYW1lIw0KJyB8IFwNCmVncmVwIC0tbGlu ZS1idWZmZXJlZCAtdiAiXm1ha2V8XA0KXkxvYWRpbmd8XA0KU0NSQVBFfFwN CklORk8uKlNjcmFwaW5nLipbLl1cJHxcDQpeV2FpdGluZyBmb3IgZ2l0fFwN Cl5GaW5kaW5nIHBvaW50ZXJzfFwNCl5Vc2luZyBsb2FkLXBhdGh8XA0KXkFk ZGluZyBuYW1lfFwNCl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