I do have some documentation posted on how to debug slow issues like this:
https://android.googlesource.com/platform/build/soong/+/master/docs/perf.md
-- It can definitely be caused by $(shell) commands in Android.mk files,
but from the first log here, you may also be hitting a known issue:
https://android.googlesource.com/platform/build/soong/+/master/docs/perf.md#android-8_1-oreo-mr1

You may find it faster to use `mma` rather than `mm` over time, since the
results can be shared between more different invocations (though some of
the regen and loading steps are slower).

- Dan

On Wed, Apr 4, 2018 at 11:45 AM Jacob Abrams <[email protected]> wrote:

> It's not a Google issue. If you checkout pure AOSP 8.1 and build it you
> will see performance of mm is fast. It's a problem with Qualcomm
> modifications to the build system. Search your build directory for the
> string "Fix Later" and run git blame.
>
> Jacob
>
> On Wednesday, April 4, 2018 at 7:43:06 AM UTC-7, Quang Lam wrote:
>>
>> The strungle is real. When I use mmm command on Android 8.1, I spend a
>> lot of time here:
>>
>> [2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
>> [1/1] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
>> [1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
>>
>> in comparation with Android 7.1.
>>
>> On Wednesday, January 10, 2018 at 10:41:56 PM UTC+7, Jeffrey Blattman
>> wrote:
>>>
>>> Here are some numbers. Same code, same makefile. This is from a
>>> non-clean, previously built module in both cases. So there should be
>>> nothing to do at all.
>>>
>>> *On Nougat*
>>>
>>> SetupWizard $ time mm
>>> ============================================
>>> PLATFORM_VERSION_CODENAME=REL
>>> ... cut ...
>>> ============================================
>>> make: Entering directory `...'
>>> Running kati to generate build-d09ceb6bedfc4dba54e0e2e097f22474.ninja...
>>> No need to regenerate ninja file
>>> Starting build with ninja
>>> ninja: Entering directory `.'
>>> [100% 1/1] Ensure Jack server is installed and started
>>> Jack server already installed in "/home/jeff/.jack-server"
>>> Server is already running
>>> Bad request, see Jack server log
>>> make: Leaving directory `...'
>>>
>>> #### make completed successfully (2 seconds) ####
>>>
>>>
>>> *real 0m2.146s*
>>> user 0m0.700s
>>> sys 0m0.268s
>>>
>>>
>>> *On Oreo*
>>>
>>> SetupWizard $ time mm
>>> make: Entering directory `...'
>>> ============================================
>>> PLATFORM_VERSION_CODENAME=REL
>>> ... cut ...
>>> ============================================
>>> [2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
>>> [1/1] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
>>> [1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
>>> Clang SA is not enabled
>>> No need to regenerate ninja file
>>> [100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
>>> Clang SA is not enabled
>>> [100% 1/1] Ensuring Jack server is installed and started
>>> Jack server already installed in "/home/jeff/.jack-server"
>>> Server is already running
>>> make: Leaving directory `...'
>>>
>>> #### make completed successfully (23 seconds) ####
>>>
>>>
>>> *real 0m22.377s*
>>> user 1m4.048s
>>> sys 0m9.104s
>>>
>>> So on Oreo, it takes 22 seconds to perform a build that does nothing?
>>>
>>> ???
>>> Thanks.
>>>
>>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to