PowerPC ppc64le 上的 Gcc Woverloaded-virtual 错误 [英] Gcc Woverloaded-virtual error on PowerPC ppc64le

查看:90
本文介绍了PowerPC ppc64le 上的 Gcc Woverloaded-virtual 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在rhel7.6:ppc64le 上构建Istio-envoy.构建通过,但是有测试失败:

I am working on building Istio-envoy on rhel7.6:ppc64le. The build passes, however there are test failures:

错误:

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 {
        ^~~~~`

错误文件的链接https://github.com/istio/envoy/blob/release-1.3/test/server/filter_chain_benchmark_test.cc#L150

请帮我调试错误.

推荐答案

调试中使用的一项关键技术是 狼栅栏算法.在这种情况下,我会使用这种调试算法.这种算法通常也称为二分法.

One key technique used in debugging is the application of the Wolf Fence algorithm. 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:

大多数 Envoy 开发都在 Ubuntu 18.04 上的 amd64 上进行.根据我的经验,RHEL7 落后于 Power 工具链的上游大师.此外,根据我的经验,Ubuntu 18.04 具有更新的工具链.

Most Envoy development happens on amd64 on Ubuntu 18.04. Based on my experience, RHEL7 lags upstream master of the Power toolchain. Further, based on my experience, Ubuntu's 18.04 has a newer toolchain.

您将绝对需要至少 glibc 2.18 正如我作为 Istio 项目的众多维护者之一直接参与的 Envoy 邮件列表线程中所讨论的那样.在该线程中进行的调试表明 RHEL7 包含 glibc 2.17.

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. The debugging that took place in that thread had indicated that RHEL7 includes glibc 2.17.

这篇关于PowerPC ppc64le 上的 Gcc Woverloaded-virtual 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆