From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gPSgA1cFTmR8VwAASxT56A (envelope-from ) for ; Sun, 30 Apr 2023 08:06:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KMy3A1cFTmTpBAAA9RJhRA (envelope-from ) for ; Sun, 30 Apr 2023 08:06:15 +0200 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 90547DE8F for ; Sun, 30 Apr 2023 08:06:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pt0Bw-0006aH-7c; Sun, 30 Apr 2023 02:05:48 -0400 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 ) id 1pt0Bs-0006a2-2e for guix-devel@gnu.org; Sun, 30 Apr 2023 02:05:44 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pt0Bp-0007QZ-FQ for guix-devel@gnu.org; Sun, 30 Apr 2023 02:05:43 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f1e2555b5aso7488245e9.0 for ; Sat, 29 Apr 2023 23:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682834739; x=1685426739; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=shbduO4jw/rAvJIrB5lHvZVTVH4GhxttxG3zbyEaTMY=; b=BJABCnu5Yc2MoFA1VcCYBlXeq/3JT8aN38GpGuZGlkE5XzL0FDdKJ+93Y8EdBPdDWY e9tC6heF2QUqLmrk+7HLhoBYwnQo2SWiy6gKgc3GocXHPZt/tczPcHBFH+SAJVIgwr2m txGa7W1Jd7IIYJWM88EJQMCp9LCJAuA1opGrfUdVKmfe0z5hIKIZ+KVAxk+G016MGMqw Zto6NqQ46W1f7HN2XOa1ztcup4B17KlFiLsZURdofW4sulND8j+5Ugbdnzw5qeEpUlTs OlQcnD2DqTtGKO3G/wNulIZ2Z8/8miDE829n7LbAQ2xxCg/t+n1UDh9qzIlxkpjjzo53 dITg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682834739; x=1685426739; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=shbduO4jw/rAvJIrB5lHvZVTVH4GhxttxG3zbyEaTMY=; b=W6zXNcWrLX6AKgAEnDThiFw4itUV3cxsQMnOzP8GMvtTcvNbpVS7BgRwgsIY9hVLFp vZGkUvsi8xaqWmeC3sqoj+PljdnerRICCWtGyxDwECkfyD9dZL4YeG4iS2wRQ1Le8R8F X6yAMB13aixmCPK7Vlwvf1PV5d4BGZ0I/YDuqGeLoEkAGiwDZrHsNCaSzu02PhWAIakV iv0chXdtLimkuxvonie26411chOcKd0l/nntfZ7OIT0F/1SuYOGNn0N4bL2gh6ua3B7Q E39rKbAI6dX9PK+nS+rON6/FGSLEIQcF8LPY5h3+rFej98NEUu7R9zlxyOJmOj5oCM0S HD2g== X-Gm-Message-State: AC+VfDzpWH9sLeY9ZUqoEsU//9eorpIqjLhiwD+acHcnkWlIs97zxphn kbUkGNSCwAnE17zF5aLz1fI= X-Google-Smtp-Source: ACHHUZ5hhAxD2u0Kvwobu8FBLPLBU1+EjHiO0GxqzvkydhaDUoYL+LVSZlv/awh9gOq8Tzg0lN9LMw== X-Received: by 2002:a05:600c:21d8:b0:3f1:8af9:55bd with SMTP id x24-20020a05600c21d800b003f18af955bdmr7778229wmj.26.1682834739221; Sat, 29 Apr 2023 23:05:39 -0700 (PDT) Received: from localhost ([2a02:ed3:910:2a00:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id 25-20020a05600c025900b003ed2c0a0f37sm28805002wmj.35.2023.04.29.23.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 23:05:38 -0700 (PDT) Date: Sun, 30 Apr 2023 09:05:37 +0300 From: Efraim Flashner To: Simon Tournier Cc: Andreas Enge , guix-devel@gnu.org, Lars-Dominik Braun , Julien Lepiller Subject: ocaml bootstrap (was Re: Core-updates merge) Message-ID: Mail-Followup-To: Simon Tournier , Andreas Enge , guix-devel@gnu.org, Lars-Dominik Braun , Julien Lepiller References: <87ildg9jln.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Lkgz0gXwWn55RE9n" Content-Disposition: inline In-Reply-To: <87ildg9jln.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682834774; a=rsa-sha256; cv=none; b=eTJfrXQCvHdFToESgJsBhJRGFpa93nSqSL6amURWFMunN6T7xUnA/7XQQkzHL5B3zDvBW3 5D1V6eiaOt059Yiu/QiDA7B4z43pmQPXP71Oih2eqMOYfaPhl3v7z9gMyrE0jtQ3xyLulp mRMHLyDr1E1cSgbgXhbqfpUC54m+h/+6b6vFsmRF7/onw4VLZv7GfOsCrCJc0F6JdzZKT7 kXZJAMP+nu8Y3FU6nYA8DyfzIY9IkVKARu8sLQ4Jojh4nIyMwGdCRv495O0vkY5Hj3ulGF F1eRe6i9xcNug3h256cmJMEHAF8bIBDXXE+rHlLfjUdL9DCpZJqbmDdyx5rxAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=BJABCnu5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682834774; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=shbduO4jw/rAvJIrB5lHvZVTVH4GhxttxG3zbyEaTMY=; b=oRLeWX7xFlPDLp6d6GDdhv2e7HTb0CecBO5QK2I2tTwL9WKh/B3muFSMOuG35mEZqDVTwM V2kkKuVn9WP1NQsGDOeQE4vt96DVXeIZXswKgmbSNIka+LFFdHgfActfeytyQRe+A/gjQ2 Fwbs6UvZpwCbDCYTWJcPvZ0Iwfce5Zbw2hR2Fry0FM9VP3JcjDpjxf5Ir13TQefoMOuHkN z/6l7QZNYKogGn69z648YeodsdtpiA3YSNvluPMldz7RjvBIWaFpDC0kyjFEVOdcjBMDgO Q6SKW6a7pyVvrD2jU65tLKK1mmjvwA7Ym1EGQSMkj1ADH5XXObu9UDX+/W9skw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=BJABCnu5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.40 X-Spam-Score: 2.40 X-Migadu-Queue-Id: 90547DE8F X-TUID: BlAwpO9tMhvB --Lkgz0gXwWn55RE9n Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 28, 2023 at 04:17:40PM +0200, Simon Tournier wrote: > Hi Andreas, >=20 > On mar., 25 avril 2023 at 16:09, Andreas Enge wrote: >=20 > > - OCaml could be simplified by dropping version 4.07 (Julien Lepiller). >=20 > Well, 4.07 is the version that is de-bootstrapped, i.e. bootstrapped > using =E2=80=99camlboot=E2=80=99 via Guile =E2=80=93 for details see [2]. >=20 > However, higher versions (4.09, 4.14, 5) does not use this seed and thus > they are not de-bootstrapped. Well, I do not know the status upstream; > from my point of view, we have two options: >=20 > a) Agree with other distros and OCaml folks to rely on a common OCaml > 4.07 bootstrapped using camlboot and then use this OCaml 4.07 as the > seed for the subsequent versions. Somehow having a way to verify the > current OCaml compiler without running again and again via camlboot. >=20 > b) Build ourselves a chain from 4.07 bootstrapped with camlboot to > modern OCaml compilers. However, each time we modify one dependency of > camlboot, it means rebuild the complete chain. Well, bootstrapping via > camlboot can be very slow and I do not know if we have the resources > for non-x86_64 architecture. Here, the list of the emerged > dependencies: I think similarly to the very slow *-mes part of the bootstrap chain, we have to realize that some parts are just very slow. (A vote for b) I built camlboot once on aarch64, probably a year ago. IIRC it took more than 24 hours. I will say that it is doable without needing 8GB of ram, which is also a limiting factor for the slow architectures. > $ guix graph camlboot -t bag-emerged | grep label | cut -d'=3D' -f2 > "camlboot@0.0.0-1.45045d0", shape=20 > "guile@3.0.9", shape=20 > "pkg-config@0.29.2", shape=20 > "tar@1.34", shape=20 > "gzip@1.12", shape=20 > "bzip2@1.0.8", shape=20 > "file@5.44", shape=20 > "diffutils@3.8", shape=20 > "patch@2.7.6", shape=20 > "findutils@4.9.0", shape=20 > "gawk@5.2.1", shape=20 > "sed@4.8", shape=20 > "grep@3.8", shape=20 > "xz@5.2.8", shape=20 > "coreutils@9.1", shape=20 > "make@4.3", shape=20 > "bash-minimal@5.1.16", shape=20 > "ld-wrapper@0", shape=20 > "binutils@2.38", shape=20 > "gcc@11.3.0", shape=20 > "glibc@2.35", shape=20 > "glibc-utf8-locales@2.35", shape=20 > "libffi@3.4.4", shape=20 > "bash-minimal@5.1.16", shape=20 > "libunistring@1.0", shape=20 > "libgc@8.2.2", shape > > c) Fix the dependencies of camlboot. Looking at camlboot, there's a native input of guile-3.0. Unless we want to bootstrap using some of the boot0 packages or actually find the minimum set of packages needed and remove the rest that are brought in by implicit-inputs (recursively) I think it's already as small as possible. >=20 > Well, it seems a separated discussion but it echoes the recent blog post = [3] > about =E2=80=9CThe Full-Source Bootstrap=E2=80=9D. :-) >=20 > 2: https://10years.guix.gnu.org/video/camlboot-debootstrapping-the-ocaml-= compiler > 3: https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-building-f= rom-source-all-the-way-down/ >=20 >=20 > Cheers, > simon >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Lkgz0gXwWn55RE9n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmROBS0ACgkQQarn3Mo9 g1GJaA//ST4l8ZOchxb07sx4Ye8/CbZwrrI4ylyzWSrnYojZA6fTDvvyWzRdOS+4 VQszks8ltFOrD1A7Ujtji14KAU5+XfA9yB9V88YkEu9o1Q1zAwloufwr5J1aCCLL T6g4CprkhlyRfIHFs8HmYtOCQuzGwDoXEn9LG5+ySt71P6s4Z07aj+T82ystoGS+ YRTbHMVAD7kabbVRkijRPr2SNBWo20lTblyjgpJYkEdBv3IvUA87xLLnb33q+4bn uC/JYFqKdnJm4VLhFq0PlflkvTA/q4fN4dJWDWGBjTuLwYu2h6jRz0yveeqGfzca //00s1iSD3cTfGqBQ5g7NhkgASe1+McOGJ8InMqA9uFPd8f4nEKwjXslsztUt+B2 xdvGRAX0dSilgM8oSC5xxjsmbLKNjGWeJ0AnMA3SzECaQigsljf1vMM4KzMAwhg5 Px8zht8zwV0SP6LIbtV5Lb7o/Sa11Nhgw4ngNiP40sIyty3+asq3C/QOyfcj5DHf dLMCZTbuszPh9+mSEu2meoGQrlL0wMtKqt1uZzYCgCzeCK8RcC1DieSWQJnQErpV CcrFfDQ3DOJ/vizzMTQ+1Nozz6UqbBCmMxks+HUjjXF3z5Qb2XuEH44lUhmOW3h/ z6MEtBh6KIrkPY9b56kNNV+8xVGZAGdkqeQPAUvrWju325T2U5M= =tFE1 -----END PGP SIGNATURE----- --Lkgz0gXwWn55RE9n--