Skip to content

bazel: build failed with --define with_bthread_tracer=true #3110

Description

@icexin

Describe the bug

In file included from <built-in>:402:
<command line>:3:9: error: macro name must be an identifier
#define -DBRPC_BTHREAD_TRACER 1
        ^
src/bthread/task_tracer.cpp:26:10: error: 'absl/debugging/stacktrace.h' file not found with <angled> include; use "quotes" instead
#include <absl/debugging/stacktrace.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "absl/debugging/stacktrace.h"
src/bthread/task_tracer.cpp:27:10: error: 'absl/debugging/symbolize.h' file not found with <angled> include; use "quotes" instead
#include <absl/debugging/symbolize.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "absl/debugging/symbolize.h"

To Reproduce

$ bazel build --define with_bthread_tracer=true :brpc

Expected behavior

Versions
OS: ubuntu 20.04
Compiler: clang-12
brpc: master
protobuf: MODULE.bazel

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions