Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Aug 2021 18:42:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257616] WITH_META_MODE=yes, toolchain is rebuilt each make buildworld
Message-ID:  <bug-257616-227-3JT6CT0agg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257616-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257616-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257616

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #3 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
I'll note that if

#define __FreeBSD_version

in src/tree/sys/sys/param.h has changed, rebuilds
are expected behavior. So I'm assuming that has
not changed.

Are you saying that the following wort of sequence
rebuilds the toolchain 3 times?

# cd /usr/src/
# env WITH_META_MODE=3Dyes make buildworld
# env WITH_META_MODE=3Dyes make buildworld
# env WITH_META_MODE=3Dyes make buildworld

Note that lack of any other activity between buildworld's.
I do not expect the above would rebuild the toolchain
3 times.

By constrast it is expected that the below sort of
sequence will rebuild (or relink) more than the
the above would overall:

# cd /usr/src/
# env WITH_META_MODE=3Dyes make buildworld
# env WITH_META_MODE=3Dyes make installworld
# env WITH_META_MODE=3Dyes make buildworld
# env WITH_META_MODE=3Dyes make installworld
# env WITH_META_MODE=3Dyes make buildworld

This is because the installworld activity will update
file dates on files that WITH_META_MODE checks as an
example of a dependency. WITH_META_MODE has some examples
of dependency recording that could be avoided with
appropriate safety. An example would be avoiding checking
in the rm command having been updated, even when rm was
used in the command sequence for regenerating a file.

You may need to be more explicit about your sequence of
steps that leads to the rebuilds that you object to.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257616-227-3JT6CT0agg>