From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YLiiFxweQ2flwwAA62LTzQ:P1 (envelope-from ) for ; Sun, 24 Nov 2024 12:37:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YLiiFxweQ2flwwAA62LTzQ (envelope-from ) for ; Sun, 24 Nov 2024 13:37:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=soverin1 header.b="k1AARq/j"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1732451867; a=rsa-sha256; cv=none; b=pRFapqhtLbygVaxjfNIop7DXwfa7v5OdRoYcxQCmq5S80pxQpgGYUtwb/qlS8aeqnK89CF /3jhOOC7QL0Wijm780IlIeDj0nCh8Olst/5XDtSe59c1Fq1eVou7/cZ5vycQaKoUun4m+m raenF7Mu092CXYFkLoNnZwNGE2w1GlkvkKX1FSMVmWsVLbFc4csBJrCqD1UG7t50zhqnyD 4pzxpRurc9Or3s3K6ZFvS4IkOHMYBVSp4tGXNh4mBw+bg2v32T0YI1rUyC/LZKjhkazVeX rV9220g1e5AeEPyXuVR/HyTICRXdnTJVKz2n5CeV4ygT9Z+T3LifBtN/whvM9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=soverin1 header.b="k1AARq/j"; 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=1732451867; 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:autocrypt:autocrypt; bh=2fljkBcdCAYzgxsD/oT4HSnXvN3UU6roOVOhgJcC1fg=; b=oLIcVonMAe4Rd9HW1IloWJel92n8GI/KYNEkMVr/iRarjofroKYkfWH72vEZjZu1pCMK8k PsVslqROKStCrN2ulean7ZHQXDt8JvIFyRtWYfzX0gmRmEcpxNl2bqmQOAvYWjbkdn5uVm pHjYEtkjUqe9UXlZbmG9z7UQe+W7VV7OKI0WOsCnp4oq6z6kSXe6jnee1kq1tjHrPkuLyo uSEF3FJteiDbEA4WmHJYeEkqSi+DMnytB3NporffDiPxMq/8cNsFQ8ZDeoqkY1Ea+0D46x wkZHloO6HDSs7vGoSKw9H19MyxJueXbHkKQmq/8SaG1OV71k4N5JoUfrupLRiw== 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 BCBFA1C103 for ; Sun, 24 Nov 2024 13:37:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFBrU-0001e9-Tg; Sun, 24 Nov 2024 07:37:12 -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 1tFBrS-0001de-Cx for guix-devel@gnu.org; Sun, 24 Nov 2024 07:37:10 -0500 Received: from dane.soverin.net ([2a10:de80:1:4091:b9e9:221f:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFBrP-0007BL-60; Sun, 24 Nov 2024 07:37:09 -0500 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4Xx7d90vR9z2xMl; Sun, 24 Nov 2024 12:37:01 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4Xx7d82PLvz3q; Sun, 24 Nov 2024 12:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=soverin1; t=1732451820; h=from:from: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:autocrypt:autocrypt; bh=2fljkBcdCAYzgxsD/oT4HSnXvN3UU6roOVOhgJcC1fg=; b=k1AARq/j1ZRcA5UmsXnMKWnma/fWk48+rr26vol6257KiVDi338VJBoSEgzVxN7NyZAjWn CWVfUEi3MVv/lJNoq0PeQD4Fu8WejD2JJ/1YEygGujtvwfT0x/q9QwuQZy6YV+Ub2ahShi Q/26VDwZJi3ZkAdokCbg+L5RSPWPInQXaOEAFBsL95jXktDAUsI5q3xNfTSPMD8BWl9GBk LziONrlEa0D66ftbFotQ4Ij2PhhDURaKfvvJEIoJpXWA1Fp0V4Q8oYT3oBUsnlT04cb1lK bR3PDAamAsS64PipDX6N07IiKB5i6dbXxd/6TjV8E/T4UzNhrdj13Io2RQHQ9g== Message-ID: <722d2bf1-9fc0-43ac-aaed-1878d45e257f@elenq.tech> Date: Sun, 24 Nov 2024 13:36:59 +0100 MIME-Version: 1.0 Subject: Re: A different way to bootstrap and build GCC To: Stefan , 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, es-ES, eu From: Ekaitz Zarraga Autocrypt: addr=ekaitz@elenq.tech; keydata= xsFNBGcvh/QBEACePF16wEeQaqfJNgeaSQB6ty6PzLaYtl8UVApPSCF1PYNEhDtxQOOpBXeu k6h68cjhRX7hmug8mAraXotw4aG4Z3kbUro4fzXOYW3rCi/mAm5NFXLUmBX3E1AV1pcD8hDA 5s3LeGzfTo4xRGTW4zTzxGEyrvbChkVib7wTSk52a/WkFas6l3sXnepF8HmIEOWkwQcYdcuo gaNDFP1kjZYvqfKJXmCZnY+lC8Zfe/vlD/x8FZQYBQ5xgXIfbSR0xlRz/XIHfJv6j+3myUUr 2UKMku1dkjlkhNkyfw+RypQzmbJ0oJ4bk76/ju0nnlN65/LvyeTVUh/2O2VnPnZ49keL8sqr APXF4di4pWT+/mPxfoEtiSDtjyzbr8+ajcwLa4SSKLlexqjZj8X6R4tt31Rf/Pliwe4TdPmd 2leE3BIJl9bAuslEvd5tqZ1oa3Zfb62tvpaJCRYMtOEWuGkYdyrwTW7UXJPQpam4X7WoW2jW c5aTpAnpnqIPzaWJmua1lGQjEXgt4xvVdhVmZq32fkTy/rXw9l5a+XU7N4/Zz8AR/0xO+UBc Q1J+wHADjL8Q0v0tZLEaiWL72AsxN3GMWNPXWAplaTPUNPUlNK0JPHwhTX/cQVkIc9avSKc3 BeUofC96d13I7QmRjQ0gcBaLtV9lMOuYwbC+6tb70x2fQsI3bwARAQABzSJFa2FpdHogWmFy cmFnYSA8ZWthaXR6QGVsZW5xLnRlY2g+wsGUBBMBCAA+FiEEXb4j05BTZSZ/jM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Aef9+PKqgmJT5pN IkFzlDmZi05E9xzhj4WQ/OOsqU64eHL2PaDk+2TdfrzNwNFbkABJ+C7BHNAytQ6h9cpUbg== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spampanel-Class: ham Received-SPF: pass client-ip=2a10:de80:1:4091:b9e9:221f:0:1; envelope-from=ekaitz@elenq.tech; helo=dane.soverin.net 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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.33 X-Spam-Score: -0.33 X-Migadu-Queue-Id: BCBFA1C103 X-Migadu-Scanner: mx12.migadu.com X-TUID: 1sot6rmTt8t2 On 2024-11-24 13:02, Stefan wrote: > 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). I'll check in detail why we need those, but some are for the later GCC build. > 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. Oh yes! I strongly agree with this. Our GCC's are too complex and that gave us a lot of trouble. It's really hard to know where things are coming from. It's very fragile, indeed. > 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. Yes. Very interesting. We can try to make something on this line. > > Bye > > Stefan > Thanks for the explanation. Ekaitz