简体   繁体   English

PowerPC ppc64le 上的 Gcc Woverloaded-virtual 错误

[英]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.

相关问题 gcc Woverloaded-virtual warnings - gcc Woverloaded-virtual warnings 通常的方法上的Woverloaded-virtual警告 - Woverloaded-virtual warning on usual method 如何在ppc64le上调试// tensorflow / compiler / xla / tests:array_elementwise_ops_test_cpu_parallel测试失败 - How to debug //tensorflow/compiler/xla/tests:array_elementwise_ops_test_cpu_parallel test failure on ppc64le (PPC64le)链接到protobuf的模块的节点gyp重建失败,并显示“缺少nop,无法还原toc; 用-fPIC重新编译” - (PPC64le) node-gyp rebuild of a module that links to protobuf fails with “lacks nop, can't restore toc; recompile with -fPIC” 使用 gcc 编译时 PowerPC 上的 long doubles 错误 - Error with long doubles on PowerPC when compiling with gcc 在PowerPC编译器上删除的函数,而不在gcc上 - Deleted function on powerPC compiler, not on gcc 使用gcc进行纯虚函数调用时链接器错误 - Linker error on pure virtual function call with gcc long double cast to int 数据类型影响双除法精度(powerpc,ppc32) - long double cast to int data type effects double division precision (powerpc, ppc32) GCC拒绝在PowerPC上发出长期调用new / delete的操作 - GCC refuses to emit long calls for operator new/delete on PowerPC gcc-7:错误:无法识别的命令行选项“-m64” - gcc-7: error: unrecognized command line option ‘-m64’
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM