-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Describe the bug
Compiling src/brpc/builtin/sorttable_js.o
In file included from /usr/include/absl/base/config.h:86,
from /usr/include/absl/debugging/stacktrace.h:34,
from src/bthread/task_tracer.cpp:26:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
79 | #error "C++ versions less than C++14 are not supported."
| ^~~~~
Compiling src/brpc/policy/nacos_naming_service.o
In file included from /usr/include/absl/debugging/internal/symbolize.h:27,
from /usr/include/absl/debugging/symbolize.h:55,
from src/bthread/task_tracer.cpp:27:
/usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
52 | using string_view = std::string_view;
| ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards
52 | using string_view = std::string_view;
| ^~~
To Reproduce
sh config_brpc.sh --with-rdma --headers="/usr/include" --libs="/usr/lib64 /usr/bin" --with-bthread-tracer
make -j
Expected behavior
编译成功。
Versions
OS: openEuler 24.03 (LTS-SP2)
Compiler: gcc (GCC) 12.3.1
brpc: 1.15.0
protobuf: 3.14.0
Additional context/screenshots