Re: 'make depend' or 'make' bug on recent --current

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 1 Jun 2016 11:18:56 -0700
On 6/1/2016 6:11 AM, Andrey Chernov wrote:
> Steps to reproduce:
> 
> cd /usr/src/lib/libc/stdlib
> touch *div*.c
> cd ..
> make depend
> make
> 
> And see how imaxdiv.o only is recompiled.
> No div.o ldiv.o lldiv.o are recompiled.

My dev system is busy at the moment. I'll test it and get back to you.

> 
> P.S. new make depend is simple disgusting. It tends to recompile
> everything in the system if some minor header file is touched, but

If the header is used by all source files then that is expected.

However if you do not have a .depend.obj.o file then it is quite
aggressive with building.  If you touch any header it will rebuild
everything.  But you shouldn't get into that situation unless you rm -f
.depend* first.

> completely forget to recompile source code changes. I suggest to back
> out all AI in that area.
> 'make depend' is not time-consuming task and good old way never made
> mistakes.

The graph in the original commit for WITH_FAST_DEPEND disagrees.
https://svnweb.freebsd.org/base?view=revision&revision=290433

We run the preprocessor once now, not twice.


-- 
Regards,
Bryan Drewery


Received on Wed Jun 01 2016 - 16:19:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC