Post #1494704
2026-04-20 18:41 UTC
Replies (3)
-
@thephd@pony.social 2026-04-20 18:45
Is the BOOT_CFLAGS, STAGE1_CFLAGS, etc... variables from the building/installing instructions outdated??? WHy is everything building with -g -O2???
-
@zygoon@fosstodon.org 2026-04-20 18:45
@thephd how to build gcc from scratch so that the (final) result does not depend on host libc, host ld.so? Is that kernel headers with host compiler, libc with host compiler, binutils with host compiler, gcc, and then with the new compiler, repeat the process? The goal is to bootstrap minimal C compiler without having to worry about host ABI / files in the end Sorry to steal your thread, this just prompted me that this is something I find confusing and you seem to know this bit well.
-
@pinskia@hachyderm.io 2026-04-20 18:47
@thephd https://gcc.gnu.org/wiki/GCC101 is a good place to start. I need to add a part about debugging cc1plus