[英]Gcc Woverloaded-virtual error on PowerPC ppc64le
I am working on building Istio-envoy
on rhel7.6:ppc64le
.我正致力于在
rhel7.6:ppc64le
上构建Istio-envoy
。 The build passes, however there are test failures:构建通过,但是有测试失败:
Error:错误:
In file included from test/server/filter_chain_benchmark_test.cc:19:0:`
`bazel-out/ppc-fastbuild/bin/external/com_github_google_benchmark/_virtual_includes/benchmark/benchmark/benchmark.h:1071:16: error: 'virtual void benchmark::Fixture::SetUp(benchmark::State&)' was hidden [-Werror=overloaded-virtual]`
`virtual void SetUp(State& st) { SetUp(const_cast<const State&>(st)); }`
` ^~~~~`
`test/server/filter_chain_benchmark_test.cc:152:8: error: by 'virtual void` `Envoy::Server::FilterChainBenchmarkFixture::SetUp(const benchmark::State&)' [-Werror=overloaded-virtual]
void SetUp(const ::benchmark::State& state) override {
^~~~~`
The link of the error-ed file https://github.com/istio/envoy/blob/release-1.3/test/server/filter_chain_benchmark_test.cc#L150 error-ed 文件链接https://github.com/istio/envoy/blob/release-1.3/test/server/filter_chain_benchmark_test.cc#L150
Please help me debugging the error.请帮我调试错误。
One key technique used in debugging is the application of the Wolf Fence algorithm .调试中使用的一项关键技术是Wolf Fence 算法的应用。 I would use this debugging algorithm in this case.
在这种情况下,我会使用这种调试算法。 This algorithm is also commonly referred to as bisecting.
该算法通常也称为二分法。
I would recommend starting in this fashion:我建议以这种方式开始:
Most Envoy development happens on amd64 on Ubuntu 18.04.大多数 Envoy 开发发生在 Ubuntu 18.04 上的 amd64 上。 Based on my experience, RHEL7 lags upstream master of the Power toolchain.
根据我的经验,RHEL7 落后于 Power 工具链的上游大师。 Further, based on my experience, Ubuntu's 18.04 has a newer toolchain.
此外,根据我的经验,Ubuntu 18.04 有一个更新的工具链。
You will definitively require at least glibc 2.18 as discussed in the Envoy mailing list thread that I participated directly in, as one of many maintainers of the Istio project.作为 Istio 项目的众多维护者之一,您肯定至少需要 glibc 2.18,正如我直接参与的 Envoy 邮件列表线程中所讨论的那样。 The debugging that took place in that thread had indicated that RHEL7 includes glibc 2.17.
在该线程中进行的调试表明 RHEL7 包含 glibc 2.17。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.