Giter VIP home page Giter VIP logo

Comments (3)

LalitMaganti avatar LalitMaganti commented on May 30, 2024

https://r.android.com/3066342 should fix this.

from perfetto.

emrekultursay avatar emrekultursay commented on May 30, 2024

Using perfetto repo at head, the standalone build still fails. Can you take another look?

$ bazel build @perfetto//:trace_processor_shell 
INFO: Analyzed target @@perfetto//:trace_processor_shell (0 packages loaded, 0 targets configured).
ERROR: /usr/local/google/home/emrekultursay/.cache/bazel/_bazel_emrekultursay/5450d8248aaea21aedb8ab7f411448ee/external/perfetto/BUILD:5986:19: Compiling src/trace_processor/export_json.cc failed: (Exit 1): gcc failed: error executing CppCompile command (from target @@perfetto//:trace_processor_shell) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++14' -MD -MF ... (remaining 95 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from bazel-out/k8-fastbuild/bin/external/perfetto/src/trace_processor/tables/android_tables_py.h:37,
                 from external/perfetto/src/trace_processor/storage/trace_storage.h:43,
                 from external/perfetto/src/trace_processor/export_json.h:24,
                 from external/perfetto/src/trace_processor/export_json.cc:18:
bazel-out/k8-fastbuild/bin/external/perfetto/src/trace_processor/tables/metadata_tables_py.h:37:10: fatal error: ../_main/external/perfetto/src/trace_processor/tables/metadata_tables_py.h: No such file or directory
   37 | #include "../_main/external/perfetto/src/trace_processor/tables/metadata_tables_py.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Target @@perfetto//:trace_processor_shell failed to build

The error can be reproduced using the example in the sample attached above, with an updated WORKSPACE that has:

http_archive(
    name = "perfetto",
    url = "https://github.com/google/perfetto/archive/e42fee560e5e33687c275f6ec33d1b0dc9297dff.zip",
    strip_prefix = "perfetto-e42fee560e5e33687c275f6ec33d1b0dc9297dff",
)

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 30, 2024

https://r.android.com/3067905 should fix that: I forgot to also apply the same logic a bit later in the same file.

from perfetto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.