GCC 16, the -MD -MF<file-for-dependencies> is not filled when compilation fails.
Basile STARYNKEVITCH
basile@starynkevitch.net
Wed May 27 06:24:35 GMT 2026
Hello all,
(see https://github.com/RefPerSys/RefPerSys compiled on RaspBerryPi
Linux for an example)
When compiling a source code with GCC 16.1 (on RaspberryPi
Linux/Debian, using GNU make 4.4 with guile) the file written for
dependencies with -MF is not filled on compilation failure
Is there any way (without patching GCC 16 source code or writing a
plugin for it) to get the dependency file filled?
It would be very useful to help debugging rather complex makefiles.
Thanks
--
Basile STARYNKEVITCH
<basile@starynkevitch.net>
8 rue de la Faïencerie
http://starynkevitch.net/Basile/
92340 Bourg-la-Reine
https://github.com/bstarynk
France
https://github.com/RefPerSys/RefPerSys
https://orcid.org/0000-0003-0908-5250
More information about the Gcc
mailing list