Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envoy build in ubuntu and need some help #13227

Closed
RuijingGuo opened this issue Sep 23, 2020 · 5 comments
Closed

envoy build in ubuntu and need some help #13227

RuijingGuo opened this issue Sep 23, 2020 · 5 comments
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently

Comments

@RuijingGuo
Copy link

I failed to build envoy in ubuntu:

  1. ubuntu 18.04
    a) container build: ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release'
    still in trying

    b) bare metal build: bazel build //source/exe:envoy-static
    Hit issue Envoy failed on Bazel CI with "unused variable 'factory_name'" #13079

  2. ubuntu 20.04

    a) container build: ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release'

FAILED: Build did NOT complete successfully (894 packages loaded, 25584 targets configured)
ERROR: Couldn't start the build. Unable to run tests
FAILED: Build did NOT complete successfully (894 packages loaded, 25584 targets configured)
./ci/do_ci.sh: line 49: pushd: bazel-testlogs: No such file or directory

b) bare metal build: bazel build  //source/exe:envoy-static

I need to remove some compiler option to build out envoy:

iff --git a/bazel/envoy_internal.bzl b/bazel/envoy_internal.bzl
index 10b3448c0..3404d39f7 100644
--- a/bazel/envoy_internal.bzl
+++ b/bazel/envoy_internal.bzl
@@ -7,7 +7,6 @@ def envoy_copts(repository, test = False):
posix_options = [
"-Wall",
"-Wextra",

  •    "-Werror",
       "-Wnon-virtual-dtor",
       "-Woverloaded-virtual",
       "-Wold-style-cast",
    

diff --git a/bazel/external/quiche.BUILD b/bazel/external/quiche.BUILD
index 6ca8429b3..e3acf9a32 100644
--- a/bazel/external/quiche.BUILD
+++ b/bazel/external/quiche.BUILD
@@ -57,7 +57,6 @@ quiche_common_copts = [
"-Wno-unused-function",
# quic_inlined_frame.h uses offsetof() to optimize memory usage in frames.
"-Wno-invalid-offsetof",

  • "-Wno-range-loop-analysis",
    ]

my questions: what approach is right to build envoy in ubuntu? OS? build command?
I use gcc. how can I change to clang?

@RuijingGuo RuijingGuo added the triage Issue requires triage label Sep 23, 2020
@dio
Copy link
Member

dio commented Sep 23, 2020

How can I change to clang?

@guoruijing, try this: https://gist.github.com/dio/9a7c826a2dbf004a81112db0d167d209?

@mattklein123 mattklein123 added question Questions that are neither investigations, bugs, nor enhancements and removed triage Issue requires triage labels Sep 24, 2020
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Dec 9, 2020
@NomadXD
Copy link
Contributor

NomadXD commented Dec 14, 2020

@dio Have you tried to build it with ubuntu 20.04 with clang ? Appreciate if you could provide some steps to build envoy with clang. I tried with gcc and the build fails due to a known issue that hasn't fixed so far i guess.

https://github.com/envoyproxy/envoy/issues/10422

@github-actions github-actions bot removed the stale stalebot believes this issue/PR has not been touched recently label Dec 14, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 13, 2021
@github-actions
Copy link

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

4 participants