From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id JXJyCxbUPGClDAAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 11:46:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wF7BBhbUPGCjBQAAB5/wlQ (envelope-from ) for ; Mon, 01 Mar 2021 11:46:30 +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 4FBEB90F2 for ; Mon, 1 Mar 2021 12:46:29 +0100 (CET) Received: from localhost ([::1]:43882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGh0O-0008S7-GO for larch@yhetil.org; Mon, 01 Mar 2021 06:46:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGgzx-0008RI-Vf for guix-patches@gnu.org; Mon, 01 Mar 2021 06:46:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGgzx-0002as-O1 for guix-patches@gnu.org; Mon, 01 Mar 2021 06:46:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGgzx-0000x1-N1 for guix-patches@gnu.org; Mon, 01 Mar 2021 06:46:01 -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: Mon, 01 Mar 2021 11:46:01 +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: pukkamustard Cc: 46806@debbugs.gnu.org Received: via spool by 46806-submit@debbugs.gnu.org id=B46806.16145991083586 (code B ref 46806); Mon, 01 Mar 2021 11:46:01 +0000 Received: (at 46806) by debbugs.gnu.org; 1 Mar 2021 11:45:08 +0000 Received: from localhost ([127.0.0.1]:48273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGgz6-0000vm-Db for submit@debbugs.gnu.org; Mon, 01 Mar 2021 06:45:08 -0500 Received: from lepiller.eu ([89.234.186.109]:59186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGgz4-0000vb-Pw for 46806@debbugs.gnu.org; Mon, 01 Mar 2021 06:45:07 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id c0f4ea86; Mon, 1 Mar 2021 11:45:04 +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=GtfbaYvtO8HRcGPHJijnpdh3Z5ZUl23FvsZqMnRzlq0=; b=T6lGYsh D3LZLWCXlPPcthe8q2GiqJoG1uiIAn32s5L11oJd1Y1tYoB+IAJcAl+keWYnyDuv nn9EtUWWMifzQGZ0jMTn/dr1eUMfyoxlZlMyN/ZqINUSapb9sD9I52JRcvLWNxHp gAH8HRAIdA1ITPES3lolwGmDxPdRhqukDvueMonoHgDWSt/2N/IqHscVcojrPhsS j9ENTHY/85dP16G+sn4MZMVnwZZKIxP0Jh2Lu05bkk0o1qS9b8Y1SsC6im+q81g/ BU6lMRXW2oh7QEZjfF5TNwbZfOkLcanRpYBzh1paeo2L6Kk6DX8JSlIXhGqyYlkv 3Wd83YrDDuZ3BiA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 937a723f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 1 Mar 2021 11:45:03 +0000 (UTC) Date: Mon, 01 Mar 2021 06:44:32 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <86lfb7fd41.fsf@posteo.net> References: <20210227001244.17cc3833@tachikoma.lepiller.eu> <86r1l0ft2q.fsf@posteo.net> <66443FC4-A5EB-44F2-BCA3-E35962DC2FE0@lepiller.eu> <86lfb7fd41.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----84AVDYUG4SYSZ76XWNS5GGUVHMFQHW" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: 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=1614599189; 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=UqhIxbv8r0Yl7tCPXz7OAZiyHBbPJ+1GDdKmdM/1vcI=; b=GgdxIUIjYw6UgcOq1vSmG/aQlETE2HToBkcZNWzhRj5L7WYV9PjzdB3SwY3oCQVkpnnWM0 GeqOOTBFubZuA0FsEQ4AEr4z7yh49mGVxLmELuQO/NgolY2YN4vLmm5hFa3jYjuXLH4MSA 1RR6kBz+38FUC1Q+4Ke+ODXjkizjdX17No4yfQ1lxaAOMc6r5iX5jYwMJ9RG6Ut86DXCP0 pxCqiP9ASCIDBMjvl/cj40XQFZoQAFj0MmhEh94r74y9uEO7IJs/ix5NtCNLMmqaen+3dD w4UE+WJiP2lHY81htRPAbDUvcpgjqIz9a+Fl9I8WXa/0/YMl05e6reP+Ql9JJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614599189; a=rsa-sha256; cv=none; b=GH3LJxktIjib1m8NRomC9ao3iSA22jDv6WLBFXoPQKChNEF8riBz98TgtHA6TvcuJzNJm8 1oWHYtSGUGTSSJLoRzZdSJSPn1LxO1X0cYRcsYwIoIeRr//OyLX2Ge1LUoAW1zrBorFqu3 xAPHzjNQlJ56hvtTh4j3O7d7oDTnTQlog7lhoVcStkcaxidhnHzGG1IyEb620o9Z7/iMmp my4U9bXbTmQyJ37BPtXxyYqIHHsNXpIqY+i0tZw10O252x4r7di5pX8dEZAnSQJSiLGmN+ GobR4MULm5roz94frnaX36aedU1t2prS+inP/2SaJMvnahdOjYkvHZux6gm9uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="T6lGYsh "; 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="T6lGYsh "; 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: 4FBEB90F2 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5hQ6DG+eRhRi ------84AVDYUG4SYSZ76XWNS5GGUVHMFQHW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! OK to push? Le 1 mars 2021 04:16:14 GMT-05:00, pukkamustard a =C3=A9crit : > >I managed to build camlboot and ocaml@4=2E07 with your patches=2E > >> Would be fantastic if you could report build time for camlboot=20 >> too :)=2E > >Build time (on a quad-core i7 laptop): > >``` >$ time =2E/pre-inst-env guix build camlboot --no-offload >=2E >=2E >=2E >successfully built=20 >/gnu/store/ddi5n28hsrgvb89r8vjs0rfvapxfbaj2-camlboot-0=2E0=2E0-0=2E506280= c=2Edrv >/gnu/store/79bqayhrc6qfr2k7pfk7fn6lim0f8cfx-camlboot-0=2E0=2E0-0=2E506280= c > >real 322m35=2E119s >user 0m1=2E523s >sys 0m0=2E140s >``` > >ocaml@4=2E07 with your patches applied: > >``` >$ time =2E/pre-inst-env guix build ocaml@4=2E07 --no-offload >successfully built=20 >/gnu/store/sdxybpxzjhib5ijn3fx3r29ycp5vvafd-ocaml-4=2E07=2E1=2Edrv >/gnu/store/cniid9xi3dck7kdpfm77h56h1s0701fm-ocaml-4=2E07=2E1 > >real 17m52=2E923s >user 0m9=2E268s >sys 0m1=2E013s >``` > >ocaml@4=2E07 at master: > >``` >$ time =2E/pre-inst-env guix build ocaml@4=2E07 --no-offload --check >successfully built=20 >/gnu/store/v599h0bhpyh2rq4nrnqqf56lwbsf0f71-ocaml-4=2E07=2E1=2Edrv >successfully built=20 >/gnu/store/v599h0bhpyh2rq4nrnqqf56lwbsf0f71-ocaml-4=2E07=2E1=2Edrv >/gnu/store/s7j0vl88zakkdcyvw1jw8cypfzi6ljnd-ocaml-4=2E07=2E1 > >real 21m44=2E000s >user 0m14=2E546s >sys 0m1=2E217s >``` > >> The result should be almost identical to our current ocaml-4=2E07,=20 >> though there are some due to different output directory being=20 >> embedded=2E > >Checked some random files in both ocaml's with diffoscope and can=20 >confirm that differences seem to be mostly different output=20 >directories=2E > >Haven't run diffoscope on everything as that would take quite some=20 >time=2E=2E=2E > >-pukkamustard > > >>> >>>Fantastic! Thank you and thanks to the camlboot project! I will >>>try and >>>build this tonight=2E >>> >>>Julien Lepiller writes: >>> >>>> Hi Guix! >>>> >>>> This small series adds camlboot, a project to reimplement a >>>> bootstrap >>>> for OCaml, which lets us remove the pre-built=20 >>>> boot/ocaml{c,lex} >>>> :) >>>> >>>> The first patch builds the bootstraped ocamlc and ocamllex=2E=20 >>>> 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 >>>> >>>> As a result, we have identical files for this bootstrap and=20 >>>> the >>>> unbootstrapped OCaml (up to output store paths and hash of=20 >>>> some >>>> files >>>> that get embedded in native files, which differ because of the >>>> different output path)=2E ------84AVDYUG4SYSZ76XWNS5GGUVHMFQHW Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! OK to push?

Le 1 mars 2021 04:16:14 GMT-05:00, pukkamustard <pukkamustard@posteo= =2Enet> a =C3=A9crit :

I managed to build camlboot and ocaml@4=2E07 wit= h your patches=2E

W= ould be fantastic if you could report build time for camlboot
too :)=2E=

Build time (on a quad-core i7 laptop):

```
$= time =2E/pre-inst-env guix build camlboot --no-offload
=2E
=2E
= =2E
successfully built
/gnu/store/ddi5n28hsrgvb89r8vjs0rfvapxfbaj2-c= amlboot-0=2E0=2E0-0=2E506280c=2Edrv
/gnu/store/79bqayhrc6qfr2k7pfk7fn6li= m0f8cfx-camlboot-0=2E0=2E0-0=2E506280c

real 322m35=2E119s
user 0m= 1=2E523s
sys 0m0=2E140s
```

ocaml@4=2E07 with your patches app= lied:

```
$ time =2E/pre-inst-env guix build ocaml@4=2E07 --no-of= fload
successfully built
/gnu/store/sdxybpxzjhib5ijn3fx3r29ycp5vvafd= -ocaml-4=2E07=2E1=2Edrv
/gnu/store/cniid9xi3dck7kdpfm77h56h1s0701fm-ocam= l-4=2E07=2E1

real 17m52=2E923s
user 0m9=2E268s
sys 0m1=2E013s<= br>```

ocaml@4=2E07 at master:

```
$ time =2E/pre-inst-env= guix build ocaml@4=2E07 --no-offload --check
successfully built
/gn= u/store/v599h0bhpyh2rq4nrnqqf56lwbsf0f71-ocaml-4=2E07=2E1=2Edrv
successf= ully built
/gnu/store/v599h0bhpyh2rq4nrnqqf56lwbsf0f71-ocaml-4=2E07=2E1= =2Edrv
/gnu/store/s7j0vl88zakkdcyvw1jw8cypfzi6ljnd-ocaml-4=2E07=2E1
<= br>real 21m44=2E000s
user 0m14=2E546s
sys 0m1=2E217s
```

The result should be almost = identical to our current ocaml-4=2E07,
though there are some due to dif= ferent output directory being
embedded=2E

Checked s= ome random files in both ocaml's with diffoscope and can
confirm that d= ifferences seem to be mostly different output
directories=2E

Hav= en't run diffoscope on everything as that would take quite some
time=2E= =2E=2E

-pukkamustard



Fantastic= ! Thank you and thanks to the camlboot project! I will
try and
build = this tonight=2E

Julien Lepiller <julien@lepiller=2Eeu> writes:=

Hi Guix!

= This small series adds camlboot, a project to reimplement a
bootstrap for OCaml, which lets us remove the pre-built
boot/ocaml{c,lex}
= :)

The first patch builds the bootstraped ocamlc and ocamllex=2E <= br> 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 mo= dified sources used in
camlboot, and reuse them to run the main Makefil= e (make
world=2Eopt)=2E

As a result, we have identical files fo= r 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

------84AVDYUG4SYSZ76XWNS5GGUVHMFQHW--