https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976

--- Comment #156 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Peter Dyballa from comment #155)
> Would it make sense to add for a new try -H and -Wl,-t plus possibly -Wl,-v
> to CFLAGS respectively LDFLAGS?

Well, YMMV, but it would not make sense to me .. that would generate an almost
unimaginably large log file .. the -H output is huge and so is the linker
debug.

> This way we would see which header files and which libraries are used for
> build plus possibly what is the linkage editor each time…

I'd expect it to be easier to look at one or two build cases in each stage ..
and manually add the -H (or whatever).

There are various targets (e.g. make configure-gcc .. or all-stage1) that allow
one to inspect on the way ..

.. and the log file contains the invocations for each built object .. so you
can reasonably easily pick one at random and repeat it (with or without
additional output)

the key to debugging issues in a system this complex is to narrow things down
to something manageable.

Reply via email to