Skip to content

envoy 1.20 build fails due to unknown warning option '-Wno-maybe-uninitialized #18986

@eoregua

Description

@eoregua

Title: envoy 1.20 build fails using clang due to unknown warning option '-Wno-maybe-uninitialized'

Description:

We are trying to build new envoy binary based envoy 1.20 source code but we are facing some issues:

error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Werror,-Wunknown-warning-option]
Target //source/exe:envoy-static failed to build

We are compiling using CLANG. Below is a section of our Dockerfile used for the build:


WORKDIR /tmp
--
  | RUN	git clone https://"${GERRIT_USERNAME}:${GERRIT_PASSWORD}"@gerrit.ericsson.se/a/3pp/foss/github.com/envoyproxy/envoy
  | #RUN git clone https://github.com/envoyproxy/envoy.git
  | WORKDIR /tmp/envoy
  | RUN	git checkout ${ENVOY_VERSION}
  | RUN	CC=clang CXX=clang++ bazel build --fission=no -c opt //source/exe:envoy-static
  | RUN	strip bazel-bin/source/exe/envoy-static -o bazel-bin/source/exe/envoy

Compiling exactly in the same way with envoy 1.18.4 source code we didn't have any issue.

Can you please suggest how to fix it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/buildquestionQuestions that are neither investigations, bugs, nor enhancementsstalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions