'make depend' or 'make' bug on recent --current
Bryan Drewery
bdrewery at FreeBSD.org
Wed Jun 1 18:19:04 UTC 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160601/d9a0eed2/attachment.sig>
More information about the freebsd-current
mailing list