Skip to content

Instructions do not work #150

Open
Open

Description

@mschwart

When following the instructions from the README.md I end up with the following error:

$ build/kati/m2n --kati_stats --goma
using /run/user/314079/goma_schwartzmi as tmpdir
Auto update is skipped because latest/MANIFEST was updated recently.
Using goma VERSION=163 (latest)
GOMA version fdabf1b6311be985cf5e8c8483fafab271828dff@1537516851

goma is already running.

*kati*: Stack size: 8376320 bytes
[1/1] initializing build system ...
build/make/core/config.mk:53: *** unknown variable: OUT_DIR

Instrumenting a normal build and passing the variables results in more errors.

Also notable is that both methods provided in README are marked as deprecated.

What is the right way to invoke this tool?

Activity

  1. danw commented on Oct 16, 2018

    @danw
    Collaborator

    That's the deprecated instructions (for Android M or earlier). Newer versions use kati automatically (either from source build/kati for Android-N or as a prebuilt in prebuilts/build-tools/linux-x86/bin/ckati for later versions)

  2. added a commit that references this issue on Oct 16, 2018
    0d8f27c
  3. mschwart commented on Oct 16, 2018

    @mschwart
    Author

    Can we also get instructions on how to use gdb when building Android? That was the intent behind trying to directly invoke anyway... I see that now soong is making the invocation so it looks like it might not be trivial.

  4. danw commented on Oct 16, 2018

    @danw
    Collaborator

    Yeah, that's not necessarily easy, depending on how true you want to keep the environment. It's generally a lot easier to debug a smaller example build if you can create one.

    To debug kati within soong_ui, it's probably best to create an option that pauses execution with SIGSTOP, or spins (etc) waiting for gdb to connect.

  5. danw commented on Oct 17, 2018

    @danw
    Collaborator

    Reopening to handle the gdb request

  6. reopened this on Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions