X-Loop: help-debbugs@HIDDEN Subject: bug#69314: [PATCH] Speed up stage0 bootstrap build using prebuilts Resent-From: Jonas Hahnfeld <hahnjo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Thu, 22 Feb 2024 20:56:01 +0000 Resent-Message-ID: <handler.69314.B.170863531625052 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 69314 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch To: guile-devel@HIDDEN, 69314 <at> debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> X-Debbugs-Original-To: guile-devel@HIDDEN, bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.170863531625052 (code B ref -1); Thu, 22 Feb 2024 20:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2024 20:55:16 +0000 Received: from localhost ([127.0.0.1]:58046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rdG66-0006Vw-WA for submit <at> debbugs.gnu.org; Thu, 22 Feb 2024 15:55:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:40426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hahnjo@HIDDEN>) id 1rdFO2-0004Ei-3y for submit <at> debbugs.gnu.org; Thu, 22 Feb 2024 15:09:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hahnjo@HIDDEN>) id 1rdFNe-0005R1-As; Thu, 22 Feb 2024 15:09:18 -0500 Received: from backus.hahnjo.de ([193.30.122.186] helo=mail.hahnjo.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hahnjo@HIDDEN>) id 1rdFNX-0004aP-QI; Thu, 22 Feb 2024 15:09:18 -0500 Received: from [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f] (unknown [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hahnjo.de (Postfix) with ESMTPSA id 10B7B7662177; Thu, 22 Feb 2024 21:09:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hahnjo.de; s=default; t=1708632546; bh=NRxF71vvFZQ41ePmscTTH7hA1FA/1hzI2YrcEhYNqhI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=qFZXBiallcTw+9JJ/CG40/Z7Z4F/qzPZfc4kb+BPadtYgWnuPA9COd/rhEbBpL3lC 0j79e1cjKVSyQDk+bf8AjzmqEXVnaOJLXo/gJRZ3wTtwyh+iDjbnvtLeoCcZKISaAr sNsVN3QlfpFVrEt7LFLj0E0KoTmOGzCDsQxj3ToV5KKGzNl41A4Hr1TQ7QFzKEYdqj JGb8EdbZTIagtJO44mq0yySejTPDNvcRcAuzHiwMSqnKhMEiZ29XjpNbmLVbAakRzu AoMM7J68JYkXMqU87zOXWmOwNdyKQ1lFcJw2ZEkWx7gpXgVb/kAb6ArNHAnxb0gew0 h7QlrF/yFAFxQ== Message-ID: <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> From: Jonas Hahnfeld <hahnjo@HIDDEN> Date: Thu, 22 Feb 2024 21:09:00 +0100 In-Reply-To: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@HIDDEN> References: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@HIDDEN> Autocrypt: addr=hahnjo@HIDDEN; prefer-encrypt=mutual; keydata=mQENBFIIleUBCAC94iH8XbAOTIPKPTRiMFcYy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lAhsMAAoJEJHJwz0sYazbmRMH/iYyhz4WpqrZ1dlmwu5u7Uanb3WwLkBI3m2xaXb/FUkubHyZPvxZ/2mUrMqqmLo+sqW0hG2W0pLfPUs0mwWR/9UDHnUHJf9QMIlbOuLMvBzzgvfLtPNmF+CApO6dwWVmN/1OsSW67XXyRtVnlPsp2m97fHitSyFdTLJRO8lYtGtVAJKFmbaF5jnxc9l1HQPsG2gbvIpTHXR+2eJQgxTGRlvRVew/8ajAC4n13QIBTeh59nwA5BsbjlVx1UuQt7VKM+9YlolaOqd9aXQLKqid0cbziZMfgn2mApYf1U8vrP7SBF8LotGFz4wfUXl3zJ9fE2GaujKYR4Ssovy/3poumJo= Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-VdXOcIMB+A/hQwU+DDfc" User-Agent: Evolution 3.50.4 MIME-Version: 1.0 Received-SPF: pass client-ip=193.30.122.186; envelope-from=hahnjo@HIDDEN; helo=mail.hahnjo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -4.2 (----) X-Mailman-Approved-At: Thu, 22 Feb 2024 15:55:13 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.2 (-----) --=-VdXOcIMB+A/hQwU+DDfc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Guile maintainers, please consider below patch to speed up the build from release tarballs that include prebuilt bytecode. Jonas On Thu, 2024-01-04 at 11:57 +0100, Jonas Hahnfeld wrote: > From 95f15821c535537c7ad4fdae1988855314d56ece Mon Sep 17 00:00:00 2001 > From: Jonas Hahnfeld <hahnjo@HIDDEN> > Date: Thu, 4 Jan 2024 11:44:55 +0100 > Subject: [PATCH] Speed up stage0 bootstrap build using prebuilts >=20 > Use prebuilt bytecode of ice-9/eval.go and others for all of stage0, > it is optimized and evaluation is much faster. In my environment, > this speeds up the build of guile-3.0.9 from around 29 minutes to > only 19 minutes. >=20 > * meta/build-env.in: In stage0, prefer prebuilt bytecode over just > compiled stage0 files. > --- > meta/build-env.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/meta/build-env.in b/meta/build-env.in > index bdc88ded4..446a536af 100644 > --- a/meta/build-env.in > +++ b/meta/build-env.in > @@ -58,7 +58,7 @@ then > fi > export GUILE_LOAD_PATH > case "$GUILE_BOOTSTRAP_STAGE" in > - stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage0:${top= _srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;; > + stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@SCM_= PREBUILT_BINARIES@:${top_builddir}/stage0" ;; > stage1) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage1:${top= _builddir}/stage0" ;; > stage2) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage1" ;; > *) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage2:${top_buil= ddir}/guile-readline" ;; --=-VdXOcIMB+A/hQwU+DDfc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEXw/5YGpL6H9VOgO2kcnDPSxhrNsFAmXXqdwACgkQkcnDPSxh rNtfxwf/TQ9sbfIOvSq5TFxwPIPEERp8aStYgJp+9XepWNguGP2OiMwnb6Bi4pMv noUGccv7kkQr8aBz4e0NDtwyT8Msrnlyw2To3rOG2mLQZQNhCQvPcyo1RFxA46yd LhwynV8FHaayPKAqhLjhqn4liaYRvhIGXqGwOgyreJEbYneILGdd/TQtRLJjWlGt lvCf+NumhiackqvTiE6WDoMD9AY49+jJIdZPxtN08LiNH3O3xLDYLeqzTGDsUsBj ClLda/Utq2W1WMbNsfLpjgct975fJyEt3JK2cYjW2hyb9oslpOdn96m+tPuxb57g 2snnvxdO5E80XSAK1c9J5zVxYGOmgA== =AekP -----END PGP SIGNATURE----- --=-VdXOcIMB+A/hQwU+DDfc--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Jonas Hahnfeld <hahnjo@HIDDEN> Subject: bug#69314: Acknowledgement ([PATCH] Speed up stage0 bootstrap build using prebuilts) Message-ID: <handler.69314.B.170863531625052.ack <at> debbugs.gnu.org> References: <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> X-Gnu-PR-Message: ack 69314 X-Gnu-PR-Package: guile X-Gnu-PR-Keywords: patch Reply-To: 69314 <at> debbugs.gnu.org Date: Thu, 22 Feb 2024 20:56:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 69314 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 69314: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69314 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#69314: [PATCH] Speed up stage0 bootstrap build using prebuilts Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Mon, 06 May 2024 09:36:01 +0000 Resent-Message-ID: <handler.69314.B69314.171498810927870 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69314 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch To: Jonas Hahnfeld <hahnjo@HIDDEN> Cc: 69314 <at> debbugs.gnu.org, guile-devel@HIDDEN Received: via spool by 69314-submit <at> debbugs.gnu.org id=B69314.171498810927870 (code B ref 69314); Mon, 06 May 2024 09:36:01 +0000 Received: (at 69314) by debbugs.gnu.org; 6 May 2024 09:35:09 +0000 Received: from localhost ([127.0.0.1]:36775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s3ukX-0007FS-06 for submit <at> debbugs.gnu.org; Mon, 06 May 2024 05:35:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1s3ukU-0007F9-RE for 69314 <at> debbugs.gnu.org; Mon, 06 May 2024 05:35:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1s3ujz-0007Ax-MU; Mon, 06 May 2024 05:34:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=UnXCEI107Q/cObHVOFqTPDwiWqK89PMxFEPVoJxBhz4=; b=LK7iBKvtqhqAsX+2uyAD W6C/Z1KNS9tPQc4czzFgWPybzOQ5AW8nxGV8wHV+WEyoSw9VwCKF0eYlhV2bG4bZOvwZXEkNPXGXS sKpJEAWUQ4nLMkfhU66jmhN7029l+VcitcNap2CgAauLQytTG6Hv2+gGKQngfjnXqc9HiV9NVwNmx 8z17NnVTfy+b0c0JLW0c4WuNCQUg7i+dI+zAIsujDBvHPAsLpigctG4oiCy6hwsGHYZ0Yyar3n2WG jERGDH4R/cXQ+VCut24aUD6VaRGbJYt+CO7Cyc0IVARzT8IdzbzWA7XAGZJrcO0th/YZX2j5yXclu 9wHUnY+30W9cwg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> In-Reply-To: <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> (Jonas Hahnfeld's message of "Thu, 22 Feb 2024 21:09:00 +0100") References: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@HIDDEN> <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> Date: Mon, 06 May 2024 11:34:33 +0200 Message-ID: <878r0nmggm.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi Jonas, Jonas Hahnfeld <hahnjo@HIDDEN> skribis: > On Thu, 2024-01-04 at 11:57 +0100, Jonas Hahnfeld wrote: >> From 95f15821c535537c7ad4fdae1988855314d56ece Mon Sep 17 00:00:00 2001 >> From: Jonas Hahnfeld <hahnjo@HIDDEN> >> Date: Thu, 4 Jan 2024 11:44:55 +0100 >> Subject: [PATCH] Speed up stage0 bootstrap build using prebuilts >>=20 >> Use prebuilt bytecode of ice-9/eval.go and others for all of stage0, >> it is optimized and evaluation is much faster. In my environment, >> this speeds up the build of guile-3.0.9 from around 29 minutes to >> only 19 minutes. >>=20 >> * meta/build-env.in: In stage0, prefer prebuilt bytecode over just >> compiled stage0 files. >> --- >> meta/build-env.in | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>=20 >> diff --git a/meta/build-env.in b/meta/build-env.in >> index bdc88ded4..446a536af 100644 >> --- a/meta/build-env.in >> +++ b/meta/build-env.in >> @@ -58,7 +58,7 @@ then >> fi >> export GUILE_LOAD_PATH >> case "$GUILE_BOOTSTRAP_STAGE" in >> - stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage0:${to= p_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;; >> + stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@SCM= _PREBUILT_BINARIES@:${top_builddir}/stage0" ;; I don=E2=80=99t understand why changing the order would make a difference. Surely if .go files are available under prebuilt/, they=E2=80=99ll be found, even if that directory comes second? Or am I missing something? Thanks for the patch! Ludo=E2=80=99.
X-Loop: help-debbugs@HIDDEN Subject: bug#69314: [PATCH] Speed up stage0 bootstrap build using prebuilts Resent-From: Jonas Hahnfeld <hahnjo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Mon, 06 May 2024 19:14:02 +0000 Resent-Message-ID: <handler.69314.B69314.171502280323916 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69314 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Cc: 69314 <at> debbugs.gnu.org, guile-devel@HIDDEN Received: via spool by 69314-submit <at> debbugs.gnu.org id=B69314.171502280323916 (code B ref 69314); Mon, 06 May 2024 19:14:02 +0000 Received: (at 69314) by debbugs.gnu.org; 6 May 2024 19:13:23 +0000 Received: from localhost ([127.0.0.1]:39765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s43m6-0006Dg-SZ for submit <at> debbugs.gnu.org; Mon, 06 May 2024 15:13:23 -0400 Received: from backus.hahnjo.de ([2a03:4000:2a:2c1::1]:52608 helo=mail.hahnjo.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hahnjo@HIDDEN>) id 1s43m1-0006Da-8O for 69314 <at> debbugs.gnu.org; Mon, 06 May 2024 15:13:22 -0400 Received: from [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f] (unknown [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hahnjo.de (Postfix) with ESMTPSA id 8DAEC76ECE39; Mon, 06 May 2024 21:12:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hahnjo.de; s=default; t=1715022770; bh=poIQA6T3gcJegDVrGIL6EUeqTN2g+LdXSTqirMeb9BM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZL2t5sA5BioA6K41UwenyQUoEnb9FjJc2lJ/TPueSrOi+noHxkutdoSGjP4C8uzjV B4PDPcpcQWzvyX+S0t5BRlUGHhBLARPL/7RFstGSBLgvDnBtOhHn6vJXt3px3ByZ/D sFs96oiBAwo68jvCp2fwnz3uzcqsJ/grPLtd8vkQLroyScuM+H6wlQX5cNClftd9SU DESP34jO1FFWbLaRzOx9l0BhZXwfEW7i3+AlfHz+swl4pd++M52wWAXWmEeSjkqx0G UEuIaV+08NsqufI2YLCZ3jAdtyks9xjEQU9nIcRUSpSaO2+rx6ByeZ3JWPptx04n4l x018Jonezoclg== Message-ID: <f38530b2080efe72dcd4366ad0f4b5c1166c9633.camel@HIDDEN> From: Jonas Hahnfeld <hahnjo@HIDDEN> Date: Mon, 06 May 2024 21:12:44 +0200 In-Reply-To: <878r0nmggm.fsf@HIDDEN> References: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@HIDDEN> <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> <878r0nmggm.fsf@HIDDEN> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-WOTRsr2bo92mHHaNP0Kf" User-Agent: Evolution 3.52.1 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-WOTRsr2bo92mHHaNP0Kf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2024-05-06 at 11:34 +0200, Ludovic Court=C3=A8s wrote: > Hi Jonas, >=20 > Jonas Hahnfeld <hahnjo@HIDDEN> skribis: >=20 > > On Thu, 2024-01-04 at 11:57 +0100, Jonas Hahnfeld wrote: > > > From 95f15821c535537c7ad4fdae1988855314d56ece Mon Sep 17 00:00:00 200= 1 > > > From: Jonas Hahnfeld <hahnjo@HIDDEN> > > > Date: Thu, 4 Jan 2024 11:44:55 +0100 > > > Subject: [PATCH] Speed up stage0 bootstrap build using prebuilts > > >=20 > > > Use prebuilt bytecode of ice-9/eval.go and others for all of stage0, > > > it is optimized and evaluation is much faster. In my environment, > > > this speeds up the build of guile-3.0.9 from around 29 minutes to > > > only 19 minutes. > > >=20 > > > * meta/build-env.in: In stage0, prefer prebuilt bytecode over just > > > compiled stage0 files. > > > --- > > > meta/build-env.in | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > diff --git a/meta/build-env.in b/meta/build-env.in > > > index bdc88ded4..446a536af 100644 > > > --- a/meta/build-env.in > > > +++ b/meta/build-env.in > > > @@ -58,7 +58,7 @@ then > > > fi > > > export GUILE_LOAD_PATH > > > case "$GUILE_BOOTSTRAP_STAGE" in > > > - stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage0:$= {top_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;; > > > + stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@= SCM_PREBUILT_BINARIES@:${top_builddir}/stage0" ;; >=20 > I don=E2=80=99t understand why changing the order would make a difference= . > Surely if .go files are available under prebuilt/, they=E2=80=99ll be fou= nd, > even if that directory comes second? Or am I missing something? Yes, they are found but with lower priority. As I try to explain in the commit message (could be improved though), the same bytecode is also built during stage0, but without optimizations which makes the rest of stage0 awfully slow. Jonas --=-WOTRsr2bo92mHHaNP0Kf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEXw/5YGpL6H9VOgO2kcnDPSxhrNsFAmY5K60ACgkQkcnDPSxh rNuCqQf/f7u5Q1C01iRZIK607+8xJoC19ymgndAAK0OwuiTYcN/6tmKQmfuLnZbq EhIB/0pHMfD3W8RkRhtZm0QpFZVjLB8V9nkiM7aZ1+z61Q/FP0V3fplmn39xp49V uj95kp8hyzU1lWQ4JiDJcZH7zY3QLouH/6Wsc8J0yqYWtPHbQOnkRHkWISK+Q3oB n9HqyWUVxUUr8D2qN3Fo6jn3rzPUTH6PLvTlG01ov6avYs57Xvg7O36IF0pbI1Zu Kv8ebstE2Kt5gpT6tFfqzxXwnOS9NPsObHP7T1iPnWjC+D/Gt92gnr3hy/r3gaDn Tux2GdAnADUBmfbiO9n682tbK1zbhg== =pzXW -----END PGP SIGNATURE----- --=-WOTRsr2bo92mHHaNP0Kf--
X-Loop: help-debbugs@HIDDEN Subject: bug#69314: [PATCH] Speed up stage0 bootstrap build using prebuilts Resent-From: Simon Tournier <zimon.toutoune@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Tue, 07 May 2024 18:59:01 +0000 Resent-Message-ID: <handler.69314.B69314.171510828630543 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69314 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Jonas Hahnfeld <hahnjo@HIDDEN> Cc: 69314 <at> debbugs.gnu.org, guile-devel@HIDDEN Received: via spool by 69314-submit <at> debbugs.gnu.org id=B69314.171510828630543 (code B ref 69314); Tue, 07 May 2024 18:59:01 +0000 Received: (at 69314) by debbugs.gnu.org; 7 May 2024 18:58:06 +0000 Received: from localhost ([127.0.0.1]:44144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s4Q0s-0007wZ-DC for submit <at> debbugs.gnu.org; Tue, 07 May 2024 14:58:06 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:39580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zimon.toutoune@HIDDEN>) id 1s4Q0p-0007vu-0w for 69314 <at> debbugs.gnu.org; Tue, 07 May 2024 14:58:04 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-34ca50999cdso204089f8f.2 for <69314 <at> debbugs.gnu.org>; Tue, 07 May 2024 11:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715108252; x=1715713052; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bAa1LhXDhNmxNK4fleLXb6g4cDrvUMl4DXqF/IQC2MI=; b=b8ag4+p2VpHrvbcECvjyXkGRgmKy3EjNA9uh3vuZ+kTp/NDCzw4dMeBP7lJRcJHySy 4vepvB8MpKjq69ZVUsv/fj/wkMIvdNhLVFsm+12Odep0su3LKt9yCHMevFWJUljHHUrV z24zgZIKqB27Talx9oRQII+WlQunUbVbaLth7C9S3FDv5thHqwAwgLG+HcUdLgkMID9A TitniiDyvO7ne7H4ha3RRueuZpF7KnygzQOsvR9YbCvH1sksOY8BiDZS0ORfvEnb8kGT nSKKx7bL8W6M+KfUL+x+mydFGx5oC/X6fvSkV0SS1cnEDSmyopGdatDTg+9NgjAtNfHk +oeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715108252; x=1715713052; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bAa1LhXDhNmxNK4fleLXb6g4cDrvUMl4DXqF/IQC2MI=; b=HHuduU/O8ACiJN52nrc7+oHUgSmIjnMMvk21wB8gxE9fsi/scT3v5A45oAySvWoohD GdXckyni8pxZdrtsDXjNhHYG5qRiAJ8QDFYniSoz4vhO1QMEW6rn6E2P/vVrDDF5dzR/ EsbrQFx9bcM7R1blJTXwQBU9Q8MuxaHiWkpw1VBO0RAo0QRB81M1nCrGvViW9Sl3QwIR MBWk3b9a20GR7jx3ikGczspqMc7qZDd6hotDTHysKrVm51KlLAZS/9wSxm2M+Cor1m6l pBcnD+eFT9Q0B37PtHVJvHu9EWU1GtLwqIJMRFDlqD4Z81dTGhn5B6thp9R3kgTwSE2m 3Cdw== X-Forwarded-Encrypted: i=1; AJvYcCWGoqIouIVC+2cpHtb43K0G+cc7eKM66JPL9NjBjACZdP975AcgV1cksp+rPIHLnr707TKxyBgIMC1ZGyHE7FMO56kExRk= X-Gm-Message-State: AOJu0YzlehWAmF0kZmRV7jHQ9EEN5CgWEca8K8R93AoV/IH9ut68vDVh 6hu0T71KaBhHknrVldxKu5eN72QYbHtfy+cEHTnourW+u0oCYligX+Ub0g== X-Google-Smtp-Source: AGHT+IEuL0+8MDcwQcsZxOcH77qFzJvclXgKqMEpXEh3XY6J2G8T9Unv15Vi4MkLs+j4MqcDUlN3hQ== X-Received: by 2002:a05:600c:1c0a:b0:418:9941:ca28 with SMTP id 5b1f17b1804b1-41f719d62b4mr4466625e9.2.1715108252084; Tue, 07 May 2024 11:57:32 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-41.net.univ-paris-diderot.fr. [194.254.61.41]) by smtp.gmail.com with ESMTPSA id o3-20020a05600c4fc300b0041aa570bcd3sm24329748wmq.35.2024.05.07.11.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 11:57:31 -0700 (PDT) From: Simon Tournier <zimon.toutoune@HIDDEN> In-Reply-To: <878r0nmggm.fsf@HIDDEN> References: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@HIDDEN> <41b70293a61ce187c698097462c16cac5d2ac40f.camel@HIDDEN> <878r0nmggm.fsf@HIDDEN> Date: Tue, 07 May 2024 18:21:01 +0200 Message-ID: <87wmo51tle.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Ludo, On lun., 06 mai 2024 at 11:34, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote: >>> - stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage0:${t= op_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;; >>> + stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@SC= M_PREBUILT_BINARIES@:${top_builddir}/stage0" ;; > > I don=E2=80=99t understand why changing the order would make a difference. > Surely if .go files are available under prebuilt/, they=E2=80=99ll be fou= nd, > even if that directory comes second? Or am I missing something? Well, depending on what had been built before, it might read: --8<---------------cut here---------------start------------->8--- $ ls -1 {stage0,prebuilt/x86_64-unknown-linux-gnu}/ice-9/{boot-9,eval,psynt= ax-pp}.go prebuilt/x86_64-unknown-linux-gnu/ice-9/boot-9.go prebuilt/x86_64-unknown-linux-gnu/ice-9/eval.go prebuilt/x86_64-unknown-linux-gnu/ice-9/psyntax-pp.go stage0/ice-9/boot-9.go stage0/ice-9/eval.go stage0/ice-9/psyntax-pp.go --8<---------------cut here---------------end--------------->8--- Therefore, the order in GUILE_LOAD_COMPILED_PATH matters, no? Somehow, similarly as: stage1) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage1:${top_bu= ilddir}/stage0" ;; I would set the expected most optimized first, such that: stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@SCM_PRE= BUILT_BINARIES@:${top_builddir}/stage0" ;; assuming =E2=80=99prebuilt=E2=80=99 provides something more optimized than = =E2=80=99stage0=E2=80=99. Cheers, simon
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.