From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qNX2NRYWQ2dH2AAA62LTzQ:P1 (envelope-from ) for ; Sun, 24 Nov 2024 12:03:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qNX2NRYWQ2dH2AAA62LTzQ (envelope-from ) for ; Sun, 24 Nov 2024 13:03:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=VWMmXPtC; dmarc=pass (policy=quarantine) header.from=vodafonemail.de; 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-Seal: i=1; s=key1; d=yhetil.org; t=1732449814; a=rsa-sha256; cv=none; b=Lh5kqxEgrvJFzJvuJUbv2iAs/tzIlsm6d3kKUYzJbHDBDsrqNGArSWoQTDx8CVsNf3+rH8 jFdJD3QQ9lLv6qnuKWaKEnM3ouFtM5jpI6N9mhbCWH8oAjRRtcbnAvxuERucgmpucfH07h Mh4UrKfDmdoA+xabf9ClVklFnY8SWG9nlhfQYs69WdDDLlZ55zmFTZ4FeId5vgD01EXTnW xFSuA9agPxL2aebBQAnbuVR27F/OmPr8GDA/HIOHvYZkae0xeiin3cMD2FAVnVUCvbxj8T 56jqeCgsJHtFhnty5A9pJxzx+4xzN7zN6EPSInwwmjFmfh2b4tdyfguKm9yq1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=VWMmXPtC; dmarc=pass (policy=quarantine) header.from=vodafonemail.de; 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=1732449814; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3XdvDJD7OwSq/4EDm5n7OKH/PUQ6KuaEEWqAI24mLJ8=; b=V2xhMemh7FHmgm+Sn0Mt78hf/PssQ+A+JugHp3LFXeqGDvYGOzNf6paAuuf+GutDFVeTn6 Le9GNDOR5u4kTlIy2VDvvZCKVcLl8VtBClOcuiyLI5VRMzM1y5gacEVFZZU9n0jb0NVSSQ aGlGdD1YlfJ2xwuG0vGgNXneW5U7EGy8DsIot9xMNfySNncZ5HPWjsUkAiry+prt7XgXf7 GDrAuRmD9qyi/wIzWAfWfbtgLdqXK4cc9z3BmjS6Tg2cZ2WKof2gWFk7z8IyzZngl4EcSi ExbuhUkZ4zb7sLGjcTkMBYKm+NgtZtVCxSjSV+OEJVoyTyhi0GJmBz6IOZdPNQ== 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 995A51E89A for ; Sun, 24 Nov 2024 13:03:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFBKN-0002k4-A8; Sun, 24 Nov 2024 07:02:59 -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 ) id 1tFBKJ-0002ji-LI for guix-devel@gnu.org; Sun, 24 Nov 2024 07:02:56 -0500 Received: from mr3.vodafonemail.de ([145.253.228.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFBKH-0002dT-C2; Sun, 24 Nov 2024 07:02:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1732449768; bh=3XdvDJD7OwSq/4EDm5n7OKH/PUQ6KuaEEWqAI24mLJ8=; h=Message-ID:Date:User-Agent:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:From; b=VWMmXPtCA3VxQLJ6fTxW6vYcyrvL0cgKF1K9MHr+ZfzkQlw07nJ0LbmF92frYyFSj Y4bqqyFppZ/h5HaYy2283WlBXCaIVcF9Fkj95mHBVY7ZeM3K/ogb19jQ5bgavu/6Jf yLQPjJrNy1hcG7D2Vg2Z/AOcHCfVyz8TLpTou/OI= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4Xx6sh11d2z2FwD; Sun, 24 Nov 2024 12:02:48 +0000 (UTC) Received: from [10.11.12.13] (aftr-62-216-210-135.dynamic.mnet-online.de [62.216.210.135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Xx6sF0RlJz8snW; Sun, 24 Nov 2024 12:02:22 +0000 (UTC) Message-ID: Date: Sun, 24 Nov 2024 13:02:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: A different way to bootstrap and build GCC To: Ekaitz Zarraga , guix-devel@gnu.org Cc: Attila Lendvai , =?UTF-8?Q?Sergio_Pastor_P=C3=A9rez?= , Efraim Flashner , Timothy Sample , janneke@gnu.org References: <21f4ee5a-cd62-3b55-f0c5-ffd5272d1194@vodafonemail.de> <0264411c-437d-4e3e-a5ea-20ea4886b3ef@elenq.tech> Content-Language: en-US From: Stefan In-Reply-To: <0264411c-437d-4e3e-a5ea-20ea4886b3ef@elenq.tech> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-purgate-type: clean X-purgate: clean X-purgate-size: 1467 X-purgate-ID: 155817::1732449763-90FF8465-389842B0/0/0 Received-SPF: pass client-ip=145.253.228.163; envelope-from=stefan-guix@vodafonemail.de; helo=mr3.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.56 X-Spam-Score: -9.56 X-Migadu-Queue-Id: 995A51E89A X-Migadu-Scanner: mx10.migadu.com X-TUID: 5ZUAZ7l7C3MZ Hi Ekaitz! > Very interesting work. I'll read it with more detail tomorrow but at the moment it feels very similar to what we did for RISC-V > Is there any obvious difference in the beginning of the chain that I'm missing? I use tcc-boot0 only to build the latest TCC with the latest musl, with much less handcrafting (using make and normal installation). There are less packages involved (no need for muls 1.1.24, patch, gzip, xz, flex, bison). An important difference from my point of view is that I avoid (package (inherit …) …). I believe that the bootstrap packages need to be the independent base. For example in commencement.scm gcc-core-mesboot0 (version 2.95.3) inherits from gcc (version 11). So changes to a newer gcc will change the way how to build an older version. This is fragile. This tears in stuff, which is useless or even problematic for the bootstrap. Well, finally my actual goal is to build GCC differently: There is no need to patch in CROSS_C_INCLUDE_PATH etc. The include paths to standard header files must not be provided through environment variables at all. This is the cause of all the troubles people have with GCC in Guix for both native and cross building. In the end only the one gcc-12-strmov-store-file-names.patch is necessary, and this not even for static builds during bootstrapping. Keeping (package (inherit …) …) will tear in all the mistakes, which I try hard to avoid. Bye Stefan