Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 3A92078100D for <~alpine/devel@lists.alpinelinux.org>; Thu, 25 Nov 2021 11:31:30 +0000 (UTC) Received: by mail-lj1-f179.google.com with SMTP id l9so11910198ljq.5 for <~alpine/devel@lists.alpinelinux.org>; Thu, 25 Nov 2021 03:31:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K3gPvxetiQf+lWgDyPmoG5bL8OOSVeQ6Jmhrt0/Ujxg=; b=0NgqLkidP1iMah0gBpRiTM1bfbUuCuS26lRCA1dK2VX08B3tMNPu2kzxrqh8fiRL9U +OBnTF/FqTnauG5F+Z1z5c4HJwSayGfKsspagvngjXZ8s6NCedga31FiRtu8sw3WPqZy lpLqEOzRCyxmhAb7QgR9Z0iRpP+s8Tqfd/Nf3g4D07NhFbSDxzA1t34oR1sVgfgMoPeo 2l4VVWSfuvAtJHmy4R16xYIrEATJSebjXR/hV31bR4LOnvI9SsolHoc5ecBQNJe5EfAT qlEQHoCJcTnPkVbwXY45MXZNCbaenA08sAUrGB1y++LlTZ52aksZ/2LG2hSIZhmfVD/3 sQ2w== X-Gm-Message-State: AOAM533kVa8Q51lB1wSp2a1NosYKpxnXZUf5MhvDWXnK9QrOrI/yDgZK FzlQ7PaS/WpjLp108ayhCZs= X-Google-Smtp-Source: ABdhPJwJXDnBIc07rFuXpfmDhlXseKYPkayxXytHeZ2yeqoFnd/rgtVwGZk7eC1AMMvSSrRmZfV24g== X-Received: by 2002:a05:651c:1ab:: with SMTP id c11mr23477784ljn.378.1637839889761; Thu, 25 Nov 2021 03:31:29 -0800 (PST) Received: from vostro (dzb11pyckl4fz3-hcksft-3.rev.dnainternet.fi. [2001:14ba:a06b:5600:484e:94b:fcc2:43c9]) by smtp.gmail.com with ESMTPSA id g27sm241815lfe.55.2021.11.25.03.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 03:31:29 -0800 (PST) Date: Thu, 25 Nov 2021 13:31:27 +0200 From: Timo Teras To: =?UTF-8?B?U8O2cmVu?= Tempel Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: Thoughts on self-hosting compilers in Alpine Message-ID: <20211125133127.639721c9@vostro> In-Reply-To: <25NDCA56CEJST.3KSBK3JLZFOCL@8pit.net> References: <33KG0XO61I4IL.2Z7RTAZ5J3SY6@8pit.net> <20211122135336.4f23002c@vostro> <25NDCA56CEJST.3KSBK3JLZFOCL@8pit.net> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 24 Nov 2021 09:21:57 +0100 S=C3=B6ren Tempel wrote: > > I am not sure if it would be possible to bootstrap go with gcc-go? > > But there might exist also some other paths. =20 >=20 > Yes, that should be possible and that's exactly what I would like to > do for Go. I just haven't gotten around to fixing all the minor > issues with the gcc-go based bootstrap process yet. Cool! > > But as discussed in the thread, it seems each compiler has unique > > requirements on how to bootstrap it. Granted, this is getting > > painful as the number of self-dependent programming languages > > increase. And for some language full bootstrap just is not feasible > > which makes things quite annoying. =20 >=20 > Right, I would just like to make the bootstrap process transparent. So > for example, just by looking at community/go/APKBUILD it is entirely > unclear how Go was bootstrapped initially for the riscv64 or ppc64le > architecture. So community/go supports cross-building for bootstrapping. x86_64 system was used to cross-build go for those target as go-bootstrap. I am not sure if the cross-built go has functional differences or not. But during first native build round go would then get rebuilt natively by the earlier cross-built compiler. This kind of cross-built bootstrapping is often used for new targets. And this is how e.g. gcc is bootstrapped for new systems too. Timo