Elektrine lite

← Feed

@thephd@pony.social

Post #1494704

2026-04-20 18:41 UTC

How do I get the damn g++/gcc I get from make install to be properly debuggable? This shit is atrocious to step through, jumping all over the damn place and optimizing out all the fucking variables.

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???

    Open ##1494703

  • @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.

    Open ##2027336

  • @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

    Open ##2027338