Email or username:

Password:

Forgot your password?
Ekaitz Zárraga 👹

So yeah, @stikonas and myself bootstrapped GCC 4.6.4 for (with C++ support)

Read more:

ekaitz.elenq.tech/bootstrapGcc

10 comments
Ludovic Courtès

@ekaitz_zarraga @stikonas Yay, congrats!

Maybe I missed an episode, but why bring another libc into the mix?

Ekaitz Zárraga 👹

@civodul @stikonas Only modern Glibc supports RISCV and the versions that do can't be compiled with TinyCC and GCC4.6.4, so we need a fully featured C library that is easy to build and modern enough to have RISCV support: that's Musl.

Andrius Štikonas

@ekaitz_zarraga @civodul Indeed. You can go back to glibc after the next GCC is built. GCC 4.6.4 should be able to build anything from GCC 7.5 to GCC 10 (though right now I've only tried 7.5). And that should be good enough to build glibc.

Janneke

@civodul @ekaitz_zarraga @stikonas my idea was (is) to enhance mes lib c so that it can build gcc-4; but that's still in progress for x86, and riscv is "waiting" for that.

Janneke

@civodul @ekaitz_zarraga @stikonas in any case, it's always much easier to change or enhance a working solution than to get it working in the first place.

Ekaitz Zárraga 👹

@janneke @civodul @stikonas Using Musl is a very good compromise, too.
It's supereasy to read, and many of the problems we have fixed in meslibc we used musl as a reference so... Somehow meslibc is more similar to musl now. If we continue to do so, maybe it will become musl at some point hehe.

Ludovic Courtès

@ekaitz_zarraga I see, thanks for explaining!

I think it’s great that you found a solution that works. For Guix at least, we also need to look at the bigger picture and see how to best address it with a whole-system approach.

To me that probably means tweaking Meslibc (which, of course, is easier said than done).

@stikonas @janneke

Andrius Štikonas

@civodul @ekaitz_zarraga @janneke Yes, tweaking mes would have required far bigger changes: rewrite all I/O there to use FILE structures, wide character strings and probably other things too. Anyway, it's just another package, not that much more different from GMP, MPFR or MPC that we also added.

Vagrant Cascadian

@ekaitz_zarraga @stikonas

I like how projects like this shake out actual bugs!

Ekaitz Zárraga 👹

@vagrantc @stikonas It's really hard! but we are managing to do it!
We learned a lot in the process, too.

Go Up