So that time was mostly spent initializing the find emulator: verbose: *kati*: init find emulator time: 1311.781312
What that's doing is walking through your source tree and building up a data structure to more efficiently (normally!) run `find` commands. This can become very slow if you've added a symlink into your source tree pointing to elsewhere on your filesystem (or a network filesystem). We've also had reports that this can get very slow when you have a lot of output trees under your source tree (being discussed in https://github.com/google/kati/issues/184), but 20 minutes seems excessive for that -- it claims that there are ~3M nodes in the cache: verbose: *kati*: 3071468 find nodes One of my AOSP trees (after removing out/) is closer to 1M nodes (~2s), and after a hikey960 build it has ~1.5M nodes (3.4s). - Dan On Sat, Mar 28, 2020 at 8:36 AM Yongqin Liu <[email protected]> wrote: > Hi, All > > Anyone knows what's the problem with the step of "including > out/soong/Android-hikey960.mk ..." > and how to work around this problem? > > it took about 20 minutes to include during the build, which is almost half > of the entire build time. > > The build was an incremental build after did repo sync. > > here is some information from the out/verbose.log.gz > > out/soong/make_vars-hikey960.mk was modified, regenerating... > verbose: *kati*: regen check time: 0.079827 > verbose: *kati*: Stack size: 8376320 bytes > [287/287] initializing build system ... > verbose: *kati*: slow included makefiles (4.618866): build/make/core/ > base_rules.mk > verbose: *kati*: slow included makefiles (4.618982): build/make/core/ > soong_cc_prebuilt.mk > verbose: *kati*: slow included makefiles (4.604702): build/make/core/ > base_rules.mk > verbose: *kati*: slow included makefiles (4.605250): build/make/core/ > soong_cc_prebuilt.mk > verbose: *kati*: slow included makefiles (43.432355): > out/soong/Android-hikey960.mk > [288/491] including out/soong/Android-hikey960.mk ... > verbose: *kati*: 3071468 find nodes > verbose: *kati*: init find emulator time: 1311.781312 > verbose: *kati*: slow included makefiles (1311.898633): art/build/ > Android.cpplint.mk > verbose: *kati*: slow included makefiles (1312.676836): art/Android.mk > [289/491] including art/Android.mk ... > > > For details, please check the attached build log. > > > Thanks in advance! > > > Best Regards, > Yongqin Liu > > -- > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/eebd86b2-83c0-460e-a26d-6cd5af31fb20%40googlegroups.com > <https://groups.google.com/d/msgid/android-building/eebd86b2-83c0-460e-a26d-6cd5af31fb20%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CALQgHdmUPw9Gg-fTmv8q4kwy0-5Mk7nMx3rW2jOvJ0rP%2BURvxA%40mail.gmail.com.
