Skip to content

build: failed to build Envoy after recent commit #18707

Closed

Description

@zhxie

Title: failed to build Envoy after commit b404746

Description:
Envoy cannot been built after commit b404746, and the failure also happened in CI for incoming commits and PRs.

Repro steps:

# gcc --version
# gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
# uname -a
# Linux 5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
# git rev-parse --short HEAD
# b4047464f

bazel build -c fastbuild envoy

Logs:

ERROR: /envoy/source/extensions/clusters/dynamic_forward_proxy/BUILD:11:19: Compiling source/extensions/clusters/dynamic_forward_proxy/cluster.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 188 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
source/extensions/clusters/dynamic_forward_proxy/cluster.cc: In member function 'virtual absl::optional<Envoy::Upstream::SelectedPoolAndConnection> Envoy::Extensions::Clusters::DynamicForwardProxy::Cluster::LoadBalancer::selectPool(Envoy::Upstream::LoadBalancerContext*, const Envoy::Upstream::Host&, std::vector<unsigned char>&)':
source/extensions/clusters/dynamic_forward_proxy/cluster.cc:197:68: error: 'dnsNameMatch' is not a member of 'Envoy::Extensions::TransportSockets::Tls::DefaultCertValidator'
  197 |       if (Extensions::TransportSockets::Tls::DefaultCertValidator::dnsNameMatch(hostname, san)) {
      |                                                                    ^~~~~~~~~~~~
Target //source/exe:envoy-static failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2549.175s, Critical Path: 1405.51s
INFO: 4830 processes: 157 internal, 4672 linux-sandbox, 1 worker.
FAILED: Build did NOT complete successfully

Activity

  1. added
    triage
    on Oct 21, 2021
  2. alyssawilk commented on Oct 21, 2021

    @alyssawilk
    Contributor
  3. self-assigned this
    on Oct 21, 2021
  4. added a commit that references this issue on Oct 21, 2021
    0513653
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugtriage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions