在PowerPC(ppc64le)架构上Bazel测试失败

问题描述 投票:0回答:1

我在rhel7.6 ppc64le上,试图构建一个Istio-Envoy(发行版1.3)。我的系统上安装了devtoolset-7。 Istio-Envoy的构建通过了,但是测试失败:

ERROR: /envoy/test/server/BUILD:331:1: C++ compilation of rule'//test/server:filter_chain_benchmark_test' failed (Exit 1) gcc failed: error executing command /opt/rh/devtoolset-7/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' ... (remaining 490 argument(s) skipped)INFO: Build completed, 14 tests FAILED, 4210 total actions

我已更改某些代码节以使用特定于电源的LuaJIT焦油。我正在使用命令bazel test //test/... --host_javabase=@local_jdk//:jdk --copt "-DENVOY_IGNORE_GLIBCXX_USE_CXX11_ABI_ERROR=1"测试构建。希望在理解方面有所帮助。

linux powerpc rhel7 envoyproxy
1个回答
0
投票

作为Red Hat的前员工已有9年,我可以告诉你CentOS和RHEL共享相同的工具链版本。 CentOS提供了glibc 2.17,显然这永远不会改变。使节的构建可以通过devtoolset-7进行,但是,由于explained here,至少需要glibc 2.18。即使使用更现代的gcc编译器devtoolset-7,使用glibc 2.17也会在测试用例中导致很多失败。

© www.soinside.com 2019 - 2024. All rights reserved.