unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Stefan <stefan-guix@vodafonemail.de>, guix-devel@gnu.org
Cc: "Attila Lendvai" <attila@lendvai.name>,
	"Sergio Pastor Pérez" <sergio.pastorperez@outlook.es>,
	"Efraim Flashner" <efraim@flashner.co.il>,
	"Timothy Sample" <samplet@ngyro.com>,
	janneke@gnu.org
Subject: Re: A different way to bootstrap and build GCC
Date: Sun, 24 Nov 2024 13:36:59 +0100	[thread overview]
Message-ID: <722d2bf1-9fc0-43ac-aaed-1878d45e257f@elenq.tech> (raw)
In-Reply-To: <f931c93a-8eb4-488c-ab70-c1fd9eb12bfc@vodafonemail.de>

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


      parent reply	other threads:[~2024-11-24 12:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-18 12:45 A different way to build GCC to overcome issues, especially with C++ for embedded systems Sergio Pastor Pérez
2024-05-19 22:06 ` Stefan
2024-05-20  6:59   ` Attila Lendvai
2024-05-24 15:48     ` Sergio Pastor Pérez
2024-05-24 17:05       ` Jean-Pierre De Jesus Diaz
2024-05-25 22:20         ` Ricardo Wurmus
2024-05-27 10:48           ` Jean-Pierre De Jesus Diaz
2024-11-23 23:20   ` A different way to bootstrap and build GCC Stefan
2024-11-23 23:46     ` Ekaitz Zarraga
2024-11-24  8:27       ` Efraim Flashner
2024-11-24 12:02         ` Stefan
2024-11-24 12:02       ` Stefan
2024-11-24 12:02         ` Rutherther
2024-11-24 21:13           ` Stefan
2024-11-24 12:36         ` Ekaitz Zarraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=722d2bf1-9fc0-43ac-aaed-1878d45e257f@elenq.tech \
    --to=ekaitz@elenq.tech \
    --cc=attila@lendvai.name \
    --cc=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    --cc=samplet@ngyro.com \
    --cc=sergio.pastorperez@outlook.es \
    --cc=stefan-guix@vodafonemail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).