From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QMcqHl+TP2C5RAAA0tVLHw (envelope-from ) for ; Wed, 03 Mar 2021 13:47:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0L4BGl+TP2CXXwAA1q6Kng (envelope-from ) for ; Wed, 03 Mar 2021 13:47:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1997A1A83D for ; Wed, 3 Mar 2021 14:47:11 +0100 (CET) Received: from localhost ([::1]:56784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHRqI-0001Hf-9U for larch@yhetil.org; Wed, 03 Mar 2021 08:47:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHRqA-0001HR-I2 for guix-patches@gnu.org; Wed, 03 Mar 2021 08:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHRqA-0000CS-AZ for guix-patches@gnu.org; Wed, 03 Mar 2021 08:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHRqA-000414-87 for guix-patches@gnu.org; Wed, 03 Mar 2021 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46806] [PATCH] gnu: ocaml-4.07: Bootstrap. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Mar 2021 13:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 46806@debbugs.gnu.org Received: via spool by 46806-submit@debbugs.gnu.org id=B46806.161477918513661 (code B ref 46806); Wed, 03 Mar 2021 13:47:02 +0000 Received: (at 46806) by debbugs.gnu.org; 3 Mar 2021 13:46:25 +0000 Received: from localhost ([127.0.0.1]:55414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHRpY-0003Xs-TV for submit@debbugs.gnu.org; Wed, 03 Mar 2021 08:46:25 -0500 Received: from lepiller.eu ([89.234.186.109]:59406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHRpX-0003V8-FP for 46806@debbugs.gnu.org; Wed, 03 Mar 2021 08:46:24 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 586fdda9; Wed, 3 Mar 2021 13:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=mqAfXUyJbdweiM2dGoWC2795CAqCti39oTrRu1cCfUc=; b=JAMJUHe 28y41WwLy+T7HF3Rn4C4O5P8J7Jhk1zySmQ3pv8pG9NXHYkCwCdcp0pT+ngFBJBy YlYTbP/Kh/3cbp+DtfhaGEXOZL844sgMkhpOhDlKFK3GT54frc2GzXNxDsW970vf KbroMnKqkZCfUdgZ3F+qRCqmfBZa3rlKfGDkbzXKH5E/q8Mj31ajW70RBsChi1ir IgBIz4jTSDBt1SobmSi9c89GZGAy18MUmqOtcTNAXj1gouCQJaFplxlKQf23K4/8 6kVn1h0OLWS3dAUPojURMbD7TR0/tACq9q0cw0owbdm4mR7rWlA3oEjreeZlTi7k nNf/uTD1RpdPVOA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 66abcb9d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 3 Mar 2021 13:46:20 +0000 (UTC) Date: Wed, 03 Mar 2021 08:46:08 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <87eegwcqp1.fsf@gmail.com> References: <20210227001244.17cc3833@tachikoma.lepiller.eu> <87eegwcqp1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----FRVS9S3A2CU4N0CBB9RQRWHSR4NIE6" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <5366012A-8041-4277-B6B4-C6709EB2787B@lepiller.eu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614779231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=E9dymcYJfKIqgwDspP7wlEwkWNych8XQSqZBRpQc6lk=; b=eeXGDgwUlBLQKUgSlmMgxT1feVO6nIvNKTkWnnGN6csaJZcELbtgSqoqISudohy5ZmQ+kC upn/GDYq5CXkxNpgstFUzIGTuZmrgX6e7X4K5whavlbXn3rJ7ECcBQ/nihzH/hfp498sQJ ESXRgVupTyqJylJ+nfCT/dzt1IEbPS2n/2473sdLs9hJZuoidTU+Q/Q8xqX4RIygeJUaG5 JNv19fx1njbDJoTkP1jlIsuXGgODD23GQo2HcIaJKFoGCheUPwSuivGYxa41hDZ5aW89CG uYdULI0SiSt43uLn6l/94DyUP9+iznh7Ra254MdjulLDlvMkn1sogXAwlRi1HQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614779231; a=rsa-sha256; cv=none; b=gP5wRVLO2xPPPC9+QSvOGJBvlAN1mFHYCm2uIylzSYp5xYehrxO+GttgIJofPCS3y+C5D5 ed+lr0RL1IdFk8GJyr6B1Z+dmqRStQdf0mtv/E3Q01oPUMJ/Kzi70+q2xVXuySnVytECF9 +3fVTZu4Yeq9+5z1TTxQm+At30mdv4sSCKN3zxJsSjdMBU+gcUDnaB8JncMXpJs9XlOYVz ioYohwKt/Au80ur/7VSGidisekGvqoh2djYLOHK13KidEy6H5Joli9UTvgrNk81OHmMlk0 9wxUk/pmfgrEUfIZYLgzGzwprdC7gCATtml7LXHfjx0h1p0/ygdFN+9urkiMiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="JAMJUHe "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="JAMJUHe "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1997A1A83D X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: xozgFzlrMOdj ------FRVS9S3A2CU4N0CBB9RQRWHSR4NIE6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable We'd have to check we actually can build them=2E The plan was to build menh= ir with this ocaml4=2E07, since it's required to generate the parser for oc= aml >=3D 4=2E08, and improve camlboot to support more recent versions=2E We= would prevent the need for a chain of bootstraps that way=2E Anyway, I'll push that after fixing your comments, and we'll see what we c= an do for the following ocaml versions=2E Thanks for the review! I don't think ocaml has so many dependants that it requires core-updates= =2E Not even sure it needs staging=2E Le 3 mars 2021 08:27:54 GMT-05:00, zimoun a= =C3=A9crit : >Hi Julien, > >On Sat, 27 Feb 2021 at 00:13, Julien Lepiller >wrote: > >> The first patch builds the bootstraped ocamlc and ocamllex=2E This >takes >> around 4 hours to build=2E The second patch rebuilds them using the >source >> code for ocaml 4=2E07=2E1, instead of the modified sources used in >> camlboot, and reuse them to run the main Makefile (make world=2Eopt)=2E > >On my machine, camlboot takes ~3h to build=2E Then ocaml-4=2E07-boot tak= es >~30s=2E Last there is no meaningful difference between building >ocaml-4=2E07 using the embedded ocamlc and ocamlex binaries and using the >binaries from ocaml-4=2E04-boot; both ~6m=2E > >I have check that camlboot, ocaml-4=2E07-boot and ocaml-4=2E07 build >reproducibly with =E2=80=99--check=E2=80=99=2E They do=2E > > >> As a result, we have identical files for this bootstrap and the >> unbootstrapped OCaml (up to output store paths and hash of some files >> that get embedded in native files, which differ because of the >> different output path)=2E > >At first look, yes=2E :-) > > >Modulo the minor comments I made, patches LGTM! Thanks=2E > > >Well, the next steps are to build ocaml-4=2E09 and ocaml-4=2E11 using the >previous ocamlc and ocamlex version, right? > >Then, it implies rebuild all the OCaml packages, right? It could be >done in this core-updates cycle, WDYT? > >Cheers, >simon ------FRVS9S3A2CU4N0CBB9RQRWHSR4NIE6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable We'd have to check we actually can build them=2E T= he plan was to build menhir with this ocaml4=2E07, since it's required to g= enerate the parser for ocaml >=3D 4=2E08, and improve camlboot to suppor= t more recent versions=2E We would prevent the need for a chain of bootstra= ps that way=2E

Anyway, I'll push that after fixing your comments, an= d we'll see what we can do for the following ocaml versions=2E Thanks for t= he review!

I don't think ocaml has so many dependants that it requir= es core-updates=2E Not even sure it needs staging=2E

Le 3 mars 2021 08:27:54 GMT-05:00, zimoun <zimon=2Etoutoune@= gmail=2Ecom> a =C3=A9crit :
Hi Julien,

On Sat, 27 Feb 2021 at 00:13, Juli= en Lepiller <julien@lepiller=2Eeu> wrote:

The first patch builds the bootstraped ocamlc = and ocamllex=2E This takes
around 4 hours to build=2E The second patch r= ebuilds them using the source
code for ocaml 4=2E07=2E1, instead of the = modified sources used in
camlboot, and reuse them to run the main Makefi= le (make world=2Eopt)=2E

On my machine, camlboot takes = ~3h to build=2E Then ocaml-4=2E07-boot takes
~30s=2E Last there is no = meaningful difference between building
ocaml-4=2E07 using the embedded o= camlc and ocamlex binaries and using the
binaries from ocaml-4=2E04-boot= ; both ~6m=2E

I have check that camlboot, ocaml-4=2E07-boot and ocam= l-4=2E07 build
reproducibly with =E2=80=99--check=E2=80=99=2E They do= =2E


As a result= , we have identical files for this bootstrap and the
unbootstrapped OCam= l (up to output store paths and hash of some files
that get embedded in = native files, which differ because of the
different output path)=2E
<= /blockquote>
At first look, yes=2E :-)


Modulo the minor comme= nts I made, patches LGTM! Thanks=2E


Well, the next steps are to= build ocaml-4=2E09 and ocaml-4=2E11 using the
previous ocamlc and ocaml= ex version, right?

Then, it implies rebuild all the OCaml packages, = right? It could be
done in this core-updates cycle, WDYT?

Cheers= ,
simon
------FRVS9S3A2CU4N0CBB9RQRWHSR4NIE6--