Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2019 15:30:26 -0400
From:      mike tancsa <mike@sentex.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Buildworld times (was Re: svn commit: r350256 - in stable/12: . contrib/compiler-rt/lib/sanitizer_common contrib/libunwind/src contrib/llvm/lib/DebugInfo/DWARF contrib/llvm/lib/MC contrib/llvm/lib/Object contrib/llvm/lib/Ta...)
Message-ID:  <e3640ffa-be06-3ecb-4748-0f3767a661fb@sentex.net>
In-Reply-To: <2B4E531D-F26E-4615-8F46-0869ED951138@FreeBSD.org>
References:  <201907231840.x6NIeWeq024894@repo.freebsd.org> <b085970b-4e20-6802-182a-c6c976b4fc05@sentex.net> <0CB72C19-405C-41F0-8967-96F363228ED6@FreeBSD.org> <f428eb69-ae82-2255-19ce-3b81e8c68f6e@sentex.net> <8373E39A-46E7-41AB-BC1F-8CDF65F47287@FreeBSD.org> <b07742fd-2d3a-3ada-7066-6e5762e64473@sentex.net> <801c0dd8-7a50-d93f-77f6-999aaa91a295@sentex.net> <C9E884D6-0FA1-4F3B-A3C5-3ECD2E01FD0F@FreeBSD.org> <2B4E531D-F26E-4615-8F46-0869ED951138@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 7/25/2019 12:09 PM, Dimitry Andric wrote:
> Hmmm, is the logic reversed somehow ? The good news is if nothing is
>>> defined, it does the right thing.
>> The idea is that the default is to *not* bootstrap the compiler, if the
>> system compiler is new enough.  E.g. if you build r350256 from a system
>> built before r350256, it will normally automatically bootstrap
>> everything.
>>
>> E.g., your previous builds did not have to bootstrap, and now they do,
>> which is why they take longer.
>>
>> So the only good way to compare is to force MK_SYSTEM_COMPILER=yes and
>> MK_SYSTEM_LINKER=yes, so both buildworlds will do the same thing.
>>
>> I did a few tests on a relatively fast machine, and buildworld with
>> those settings on took approximately the same time at r350255 and
>> r350256.  I'm now repeating those experiments to feed the results to
>> ministat.

Thanks again for verifying and explaining all this.  I was interpreting

MK_SYSTEM_LINKER=yes

as "along with building world, build the compiler and linker from scratch first"

vs

"using the existing installed system linker and compiler to build world"

and as you pointed out, when its a version difference it gets overridden. 

> Repeating buildworld 3 times for r350255 and r350256 (with both


The times on my machines all look normal now too!


    ---Mike





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e3640ffa-be06-3ecb-4748-0f3767a661fb>