<div dir="ltr"><div dir="ltr">On Mon, Jan 20, 2020 at 9:58 AM Lisandro Dalcin <<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Mon, 20 Jan 2020 at 17:07, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From my man page (contradicting the behavior Lisandro observed):<br>
<br>
   -MD -MD is equivalent to -M -MF file, except that -E is not implied.  The driver<br>
       determines file based on whether an -o option is given.  If it is, the driver uses<br>
       its argument but with a suffix of .d, otherwise it takes the name of the input<br>
       file, removes any directory components and suffix, and applies a .d suffix.<br>
<br>
<br>
Lisandro, what does your man page say?<br>
</blockquote></div><div><br></div><div>It says exactly the same. But you are confusing the flag, -MF is about naming the output dep filename, i.e. ompi-optg/obj/sys/objects/init.d in your example, that is just fine, I do get that file with that name.</div><div>My issue is with the contents GCC writes within that dep file, specifically the TARGET, which can be specified with -MT, but it is cumbersome to do, unless you use "-MT $@", though no idea how to update configure for that.</div></div></blockquote><div><br></div><div>Here is the test:</div><div><br></div><div>  <a href="https://gitlab.com/petsc/petsc/blob/master/config/BuildSystem/config/compilers.py#L1345">https://gitlab.com/petsc/petsc/blob/master/config/BuildSystem/config/compilers.py#L1345</a></div><div><br></div><div>We need to update it to break with your compiler, and then add another line with the -MT.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">-- <br><div dir="ltr"><div dir="ltr"><div>Lisandro Dalcin<br>============<br>Research Scientist<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>