Skip to content

Envoy on Apple silicon m1 #16482

Closed
Closed

Description

@JCzz

Title: Envoy on Apple silicon m1
Hi

I am trying to get Knative with Istio(or any other Ingress controller based on Envoy) running on a Mac mini with the Apple Silicon m1 chip. And I am told that Istio is not working do to Envoy not supporting Apple m1 chip.

Description:
A working setup on Kubernetes running Istio(Envoy)

Activity

  1. added
    enhancement
    triage
    on May 13, 2021
  2. antoniovicente commented on May 13, 2021

    @antoniovicente
    Contributor

    cc @ggreenway who may know more about any toolchain issues preventing build for m1's

  3. JCzz commented on May 14, 2021

    @JCzz
    Author

    Istio / arm is not supported
    istio/istio#32751 (comment)

    Envoy not supporting arm?
    istio/istio#29596
    istio/istio#21094

  4. ggreenway commented on May 14, 2021

    @ggreenway
    Member

    It's on my TODO list to investigate building envoy for m1, but I don't know when I'll get to it. If someone else wants to take it up, go for it.

  5. antoniovicente commented on May 14, 2021

    @antoniovicente
    Contributor

    One of the challenges is availability of VMs with m1 silicon or physical hardware to test on.

  6. ggreenway commented on May 14, 2021

    @ggreenway
    Member

    I've heard that we could get a single m1 instance for the OSS project from https://www.macstadium.com/opensource. It might be enough to setup a periodic build off of main to post-facto check for breakages. Also on my TODO list to look into.

  7. removed
    triage
    on May 15, 2021
  8. moderation commented on May 21, 2021

    @moderation
    Contributor

    My m1 Mac Mini arrived last night (16GB RAM) and I've got the development environment set up, full xcode installed, the brand new m1 native bazel 4.1.0 etc. ~/.bazelrc is:

    build --announce_rc                                                                      
    build --define deprecated_features=disabled                                              
    build --define disable_object_dump_on_signal_trace=disabled                              
    build --define google_grpc=disabled                                                      
    build --define path_normalization_by_default=true                                        
    build --define quiche=enabled                                                            
    build --define signal_trace=disabled                                                     
    build --define tcmalloc=disabled                                                         
    build --define wasm=disabled                                                             
    build --define zlib=ng                                                                   
    build --override_repository=envoy_build_config=/Users/<username>/Applications/envoy/build
    

    I'm getting the following error on the first thing the process tries to compile. The xcode-locator tool it uses isn't m1 compatible even though I've installed the Darwin arm64 Bazel package.

    ERROR: /private/var/tmp/_bazel_<username>/3335c71f4281d4576473beb63d032778/external/envoy/bazel/foreign_cc/BUILD:345:12: CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include failed: I/O exception during sandboxed execution: com.google.devtools.build.lib.shell.ExecFailedException: java.io.IOException: Cannot run program "/var/tmp/_bazel_<username>/install/d0b631b3e5a643567f221e133629d965/xcode-locator": error=86, Bad CPU type in executable
    

    Now wondering if I should try getting the m1 compatible Azul JDK and building Bazel from source?

  9. moderation commented on May 22, 2021

    @moderation
    Contributor

    I now have a working binary on Apple Silicon. My goal was to not have to install Rosetta:

    This compilation worked and produced a binary that wouldn't run generating a SIGKILL. Using lldb I could see the following error:

    lldb ./envoy      
    (lldb) target create "./envoy"                                                 
    Current executable set to '/Users/<username>/Applications/envoy/envoy' (arm64).
    (lldb) process launch                                                          
    error: Malformed Mach-o file                                                   
    

    That lead me to - https://github.com/wg/wrk/issues/448

     bazel/envoy_binary.bzl | 4 ++--                                                          
     1 file changed, 2 insertions(+), 2 deletions(-)                                          
                                                                                              
    diff --git a/bazel/envoy_binary.bzl b/bazel/envoy_binary.bzl                              
    index 43c52bf7e..3bd40e35d 100644                                                         
    --- a/bazel/envoy_binary.bzl                                                              
    +++ b/bazel/envoy_binary.bzl                                                              
    @@ -57,8 +57,8 @@ def _envoy_linkopts():                                                  
             # The macOS system library transitively links common libraries (e.g., pthread).  
             "@envoy//bazel:apple": [                                                         
                 # See note here: https://luajit.org/install.html                             
    -            "-pagezero_size 10000",                                                      
    -            "-image_base 100000000",                                                     
    +          # "-pagezero_size 10000",                                                      
    +          # "-image_base 100000000",                                                     
             ],                                                                               
             "@envoy//bazel:windows_opt_build": [                                             
                 "-DEFAULTLIB:ws2_32.lib",                                                    

    This will need to be updated with correct logic.

    Lastly I don't know if this is required: This is required:

     bazel/BUILD | 1 +                                  
     1 file changed, 1 insertion(+)                     
                                                        
    diff --git a/bazel/BUILD b/bazel/BUILD              
    index 98be980f8..66f2e364d 100644                   
    --- a/bazel/BUILD                                   
    +++ b/bazel/BUILD                                   
    @@ -540,6 +540,7 @@ selects.config_setting_group(   
         name = "apple",                                
         match_any = [                                  
             ":darwin",                                 
    +        ":darwin_arm64",                           
             ":darwin_x86_64",                          
             ":ios_arm64",                              
             ":ios_arm64e",                             

    Success!

  10. JCzz commented on May 22, 2021

    @JCzz
    Author

    Hi @moderation that is super cool work!
    How is progress on this?
    Thanks and I am looking forward to have this running in Knative and Istio :-)

  11. JCzz commented on Jun 1, 2021

    @JCzz
    Author

    Hi @ggreenway did you see @moderation comments?

  12. vinayreddy commented on Jun 9, 2021

    @vinayreddy

    Hi, I tried building the latest codebase using the patch suggested above. Although that did get me further than before I'm now seeing the following error on M1

    Use --sandbox_debug to see verbose messages from the sandbox
    compilepkg: missing strict dependencies:
    	/private/var/tmp/_bazel_xyz/90f305687f37d42ba5f4826d49344d1b/sandbox/darwin-sandbox/117/execroot/envoy/external/com_github_lyft_protoc_gen_star/init_option.go: import of "github.com/spf13/afero"
    	/private/var/tmp/_bazel_xyz/90f305687f37d42ba5f4826d49344d1b/sandbox/darwin-sandbox/117/execroot/envoy/external/com_github_lyft_protoc_gen_star/persister.go: import of "github.com/spf13/afero"
    No dependencies were provided.
    

    I'm using the latest bazel to build envoy and ran bazel build source/exe:envoy

  13. vinayreddy commented on Jun 12, 2021

    @vinayreddy

    Also, if anyone is able to build envoy on arm64 (as suggested on this issue), can you please share the binary so others can try it out?

  14. 38 remaining items

  15. Patrick0308 commented on Dec 7, 2021

    @Patrick0308
    Contributor

    @keith I fixed the above problem by sudo xcode-select --switch /Applications/Xcode.app. And It has built successfully. GOOD JOB!! THKS!!

  16. codefromthecrypt commented on Dec 7, 2021

    @codefromthecrypt
    Contributor
  17. Patrick0308 commented on Dec 7, 2021

    @Patrick0308
    Contributor

    @codefromthecrypt The need to install XCODE and configure it correctly is probably unavoidable. Fortunately, the configuration is correct after installed XCODE in normal.

  18. carlocab commented on Dec 7, 2021

    @carlocab

    @Patrick0308 would you happen to know what xcode-select --print-path was before you did xcode-select --switch?

    Does doing

    sudo xcode-select --switch /Library/Developer/CommandLineTools

    not work?

  19. Patrick0308 commented on Dec 7, 2021

    @Patrick0308
    Contributor

    @carlocab Sorry, I didn't print the PATH of the active developer directory before did xcode-select --switch. What I know is that before I did bazel build bazel that I updated my XCODE.
    If I did sudo xcode-select --switch /Library/Developer/CommandLineTools, there are something wrong when building enovy.

    ❯ bazel build envoy
    INFO: Analyzed target //:envoy (1 packages loaded, 16986 targets configured).
    INFO: Found 1 target...
    ERROR: /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/external/com_googlesource_chromium_v8/BUILD.bazel:33:8: Executing genrule @com_googlesource_chromium_v8//:build failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
    
    Use --sandbox_debug to see verbose messages from the sandbox
    /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy/external/com_googlesource_chromium_v8 /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy
    ERROR at //build/config/mac/mac_sdk.gni:92:19: Script returned non-zero exit code.
    _mac_sdk_result = exec_script(script_name, sdk_info_args, "scope")
                      ^----------
    Current dir: /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy/external/com_googlesource_chromium_v8/out/wee8/
    Command: python3 /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy/external/com_googlesource_chromium_v8/build/config/apple/sdk_info.py macosx
    Returned 1.
    stderr:
    
    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
    Traceback (most recent call last):
      File "/private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy/external/com_googlesource_chromium_v8/build/config/apple/sdk_info.py", line 167, in <module>
        FillXcodeVersion(settings, args.developer_dir)
      File "/private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/5978/execroot/envoy/external/com_googlesource_chromium_v8/build/config/apple/sdk_info.py", line 80, in FillXcodeVersion
        lines = subprocess.check_output(['xcodebuild',
      File "/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['xcodebuild', '-version']' returned non-zero exit status 1.
    
    See //build/config/sysroot.gni:71:5: whence it was imported.
        import("//build/config/mac/mac_sdk.gni")
        ^--------------------------------------
    See //build/config/BUILDCONFIG.gn:410:23: which caused the file to be included.
      _linker_configs = [ "//build/config/mac:strip_all" ]
                          ^-----------------------------
    Target //source/exe:envoy-static failed to build
    Use --verbose_failures to see the command lines of failed build steps.
    INFO: Elapsed time: 4.012s, Critical Path: 1.80s
    INFO: 3 processes: 3 internal.
    FAILED: Build did NOT complete successfully
    
  20. carlocab commented on Dec 7, 2021

    @carlocab

    Ah. Chromium. The formula probably needs a

    depends_on xcode: :build
  21. codefromthecrypt commented on Dec 7, 2021

    @codefromthecrypt
    Contributor

    ok trying it on both my Macs prior to marking ready for review. 🤞 and thanks folks. seems we're nearly there (pending an envoy release) Homebrew/homebrew-core#90695

  22. codefromthecrypt commented on Dec 8, 2021

    @codefromthecrypt
    Contributor

    The error is now improved, if full Xcode isn't installed. Thanks for figuring this out @Patrick0308 and thanks for the config tip @carlocab!

    $ brew install --build-from-source envoy --HEAD
    envoy: A full installation of Xcode.app is required to compile
    this software. Installing just the Command Line Tools is not sufficient.
    
    Xcode can be installed from the App Store.
    Error: envoy: An unsatisfied requirement failed this build.
    
  23. Patrick0308 commented on Dec 8, 2021

    @Patrick0308
    Contributor

    I almost did nothing except bazel clean. But I built failed again.

    /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/1192/execroot/envoy/external/local_config_cc/wrapped_clang  -O2 -fomit-frame-pointer -Wall  -DLUAJIT_ENABLE_LUA52COMPAT  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE  -DLUA_ROOT=\"/private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/1192/execroot/envoy/bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/luajit.build_tmpdir/luajit\" -DLUA_MULTILIB=\"lib\" -fno-stack-protector  -D_FORTIFY_SOURCE=1 -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG DEBUG_PREFIX_MAP_PWD=. -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks -mmacosx-version-min=12.0 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -target arm64-apple-macosx -fno-function-sections -fno-data-sections -c -o luajit.o luajit.c
    HOSTLINK  host/minilua
    /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/1192/execroot/envoy/external/local_config_cc/wrapped_clang  -lc++ -fobjc-link-runtime -headerpad_max_install_names -no-canonical-prefixes -target arm64-apple-macosx -mmacosx-version-min=12.0   -o host/minilua host/minilua.o -lm
    ld: warning: ignoring file host/minilua.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
    Undefined symbols for architecture arm64:
      "_main", referenced from:
         implicit entry/start for main executable
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Error in child process '/usr/bin/xcrun'. 1
    make[1]: *** [host/minilua] Abort trap: 6
    make: *** [src/luajit] Error 2
    + set +x
    cp: /private/var/tmp/_bazel_patrick/8c59177cb250ffabcb42d9e36319c1f2/sandbox/darwin-sandbox/1192/execroot/envoy/bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/luajit.build_tmpdir/luajit: No such file or directory
    _____ END BUILD LOGS _____
    rules_foreign_cc: Build wrapper script location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/luajit_foreign_cc/wrapper_build_script.sh
    rules_foreign_cc: Build script location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/luajit_foreign_cc/build_script.sh
    rules_foreign_cc: Build log location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/luajit_foreign_cc/Configure.log
    
    Target //source/exe:envoy-static failed to build
    Use --verbose_failures to see the command lines of failed build steps.
    INFO: Elapsed time: 433.514s, Critical Path: 216.65s
    INFO: 3005 processes: 1726 internal, 1278 darwin-sandbox, 1 worker.
    FAILED: Build did NOT complete successfully
    
  24. codefromthecrypt commented on Dec 8, 2021

    @codefromthecrypt
    Contributor

    After installing, switching to, and accepting the license of full Xcode, the current main branch works for me on my M1 laptop!

    Looking forward to 1.21 as it will allow homebrew to remove the arm64 exception!

    $ brew install --HEAD envoy
    ==> Cloning https://github.com/envoyproxy/envoy.git
    Updating /Users/thebots/Library/Caches/Homebrew/envoy--git
    ==> Checking out branch main
    Already on 'main'
    Your branch is up to date with 'origin/main'.
    HEAD is now at e246aec1d Update presubmit.yml for Bazel CI (#19197)
    ==> /opt/homebrew/opt/bazelisk/bin/bazelisk build --compilation_mode=opt --curses=no --show_task_finish --verbose_failures --action_
    
    
    🍺  /opt/homebrew/Cellar/envoy/HEAD-e246aec: 321 files, 92.6MB, built in 33 minutes 4 seconds
    ==> Running `brew cleanup envoy`...
    Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
    Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
    
    $ envoy --version
    
    envoy  version: e246aec1d8e84b7c99402c7b15f34e04088347b1/1.21.0-dev/Modified/RELEASE/BoringSSL
    
    $ brew test --HEAD envoy
    ==> Testing envoy
    [2021-12-08 20:47:28.509][177845][info][main] [source/server/server.cc:381] initializing epoch 0 (base id=0, hot restart version=disabled)
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:383] statically linked extensions:
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.access_loggers: envoy.access_loggers.file, envoy.access_loggers.http_grpc, envoy.access_loggers.open_telemetry, envoy.access_loggers.stderr, envoy.access_loggers.stdout, envoy.access_loggers.tcp_grpc, envoy.access_loggers.wasm, envoy.file_access_log, envoy.http_grpc_access_log, envoy.open_telemetry_access_log, envoy.stderr_access_log, envoy.stdout_access_log, envoy.tcp_grpc_access_log, envoy.wasm_access_log
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.request_id: envoy.request_id.uuid
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.upstream_options: envoy.extensions.upstreams.http.v3.HttpProtocolOptions, envoy.upstreams.http.http_protocol_options
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.compression.decompressor: envoy.compression.brotli.decompressor, envoy.compression.gzip.decompressor
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.retry_priorities: envoy.retry_priorities.previous_priorities
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.grpc_credentials: envoy.grpc_credentials.aws_iam, envoy.grpc_credentials.default, envoy.grpc_credentials.file_based_metadata
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.transport_sockets.downstream: envoy.transport_sockets.alts, envoy.transport_sockets.quic, envoy.transport_sockets.raw_buffer, envoy.transport_sockets.starttls, envoy.transport_sockets.tap, envoy.transport_sockets.tcp_stats, envoy.transport_sockets.tls, raw_buffer, starttls, tls
    [2021-12-08 20:47:28.510][177845][info][main] [source/server/server.cc:385]   envoy.filters.http: envoy.bandwidth_limit, envoy.buffer, envoy.cors, envoy.csrf, envoy.ext_authz, envoy.ext_proc, envoy.fault, envoy.filters.http.adaptive_concurrency, envoy.filters.http.admission_control, envoy.filters.http.alternate_protocols_cache, envoy.filters.http.aws_lambda, envoy.filters.http.aws_request_signing, envoy.filters.http.bandwidth_limit, envoy.filters.http.buffer, envoy.filters.http.cache, envoy.filters.http.cdn_loop, envoy.filters.http.composite, envoy.filters.http.compressor, envoy.filters.http.cors, envoy.filters.http.csrf, envoy.filters.http.decompressor, envoy.filters.http.dynamic_forward_proxy, envoy.filters.http.dynamo, envoy.filters.http.ext_authz, envoy.filters.http.ext_proc, envoy.filters.http.fault, envoy.filters.http.grpc_http1_bridge, envoy.filters.http.grpc_http1_reverse_bridge, envoy.filters.http.grpc_json_transcoder, envoy.filters.http.grpc_stats, envoy.filters.http.grpc_web, envoy.filters.http.header_to_metadata, envoy.filters.http.health_check, envoy.filters.http.ip_tagging, envoy.filters.http.jwt_authn, envoy.filters.http.local_ratelimit, envoy.filters.http.lua, envoy.filters.http.oauth2, envoy.filters.http.on_demand, envoy.filters.http.original_src, envoy.filters.http.ratelimit, envoy.filters.http.rbac, envoy.filters.http.router, envoy.filters.http.set_metadata, envoy.filters.http.tap, envoy.filters.http.wasm, envoy.grpc_http1_bridge, envoy.grpc_json_transcoder, envoy.grpc_web, envoy.health_check, envoy.http_dynamo_filter, envoy.ip_tagging, envoy.local_rate_limit, envoy.lua, envoy.rate_limit, envoy.router, match-wrapper
    [2021-12-08 20:47:28.511][177845][info][main] [source/server/server.cc:385]   envoy.bootstrap: envoy.bootstrap.wasm, envoy.extensions.network.socket_interface.default_socket_interface
    [2021-12-08 20:47:28.512][177845][info][main] [source/server/server.cc:385]   envoy.dubbo_proxy.protocols: dubbo
    [2021-12-08 20:47:28.512][177845][info][main] [source/server/server.cc:385]   envoy.rbac.matchers: envoy.rbac.matchers.upstream_ip_port
    [2021-12-08 20:47:28.512][177845][info][main] [source/server/server.cc:385]   envoy.formatter: envoy.formatter.metadata, envoy.formatter.req_without_query
    [2021-12-08 20:47:28.512][177845][info][main] [source/server/server.cc:385]   envoy.resource_monitors: envoy.resource_monitors.fixed_heap, envoy.resource_monitors.injected_resource
    [2021-12-08 20:47:28.512][177845][info][main] [source/server/server.cc:385]   envoy.filters.listener: envoy.filters.listener.http_inspector, envoy.filters.listener.original_dst, envoy.filters.listener.original_src, envoy.filters.listener.proxy_protocol, envoy.filters.listener.tls_inspector, envoy.listener.http_inspector, envoy.listener.original_dst, envoy.listener.original_src, envoy.listener.proxy_protocol, envoy.listener.tls_inspector
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.matching.input_matchers: envoy.matching.matchers.consistent_hashing, envoy.matching.matchers.ip
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.retry_host_predicates: envoy.retry_host_predicates.omit_canary_hosts, envoy.retry_host_predicates.omit_host_metadata, envoy.retry_host_predicates.previous_hosts
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.tracers: envoy.dynamic.ot, envoy.lightstep, envoy.tracers.datadog, envoy.tracers.dynamic_ot, envoy.tracers.lightstep, envoy.tracers.opencensus, envoy.tracers.skywalking, envoy.tracers.xray, envoy.tracers.zipkin, envoy.zipkin
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.http.cache: envoy.extensions.http.cache.simple
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.http.original_ip_detection: envoy.http.original_ip_detection.custom_header, envoy.http.original_ip_detection.xff
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.filters.udp_listener: envoy.filters.udp.dns_filter, envoy.filters.udp_listener.udp_proxy
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.stats_sinks: envoy.dog_statsd, envoy.graphite_statsd, envoy.metrics_service, envoy.stat_sinks.dog_statsd, envoy.stat_sinks.graphite_statsd, envoy.stat_sinks.hystrix, envoy.stat_sinks.metrics_service, envoy.stat_sinks.statsd, envoy.stat_sinks.wasm, envoy.statsd
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.resolvers: envoy.ip
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.matching.http.input: request-headers, request-trailers, response-headers, response-trailers
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.common.key_value: envoy.key_value.file_based
    [2021-12-08 20:47:28.513][177845][info][main] [source/server/server.cc:385]   envoy.network.dns_resolver: envoy.network.dns_resolver.apple, envoy.network.dns_resolver.cares
    [2021-12-08 20:47:28.514][177845][info][main] [source/server/server.cc:385]   envoy.quic.server.crypto_stream: envoy.quic.crypto_stream.server.quiche
    [2021-12-08 20:47:28.514][177845][info][main] [source/server/server.cc:385]   envoy.matching.common_inputs: envoy.matching.common_inputs.environment_variable
    [2021-12-08 20:47:28.514][177845][info][main] [source/server/server.cc:385]   envoy.tls.cert_validator: envoy.tls.cert_validator.default, envoy.tls.cert_validator.spiffe
    [2021-12-08 20:47:28.514][177845][info][main] [source/server/server.cc:385]   envoy.guarddog_actions: envoy.watchdog.abort_action, envoy.watchdog.profile_action
    [2021-12-08 20:47:28.514][177845][info][main] [source/server/server.cc:385]   envoy.transport_sockets.upstream: envoy.transport_sockets.alts, envoy.transport_sockets.quic, envoy.transport_sockets.raw_buffer, envoy.transport_sockets.starttls, envoy.transport_sockets.tap, envoy.transport_sockets.tcp_stats, envoy.transport_sockets.tls, envoy.transport_sockets.upstream_proxy_protocol, raw_buffer, starttls, tls
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.access_logger.extension_filters: envoy.access_loggers.extension_filters.cel
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.thrift_proxy.filters: envoy.filters.thrift.header_to_metadata, envoy.filters.thrift.rate_limit, envoy.filters.thrift.router
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.dubbo_proxy.filters: envoy.filters.dubbo.router
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.upstreams: envoy.filters.connection_pools.tcp.generic
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.health_checkers: envoy.health_checkers.redis
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.rate_limit_descriptors: envoy.rate_limit_descriptors.expr
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.thrift_proxy.transports: auto, framed, header, unframed
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.clusters: envoy.cluster.eds, envoy.cluster.logical_dns, envoy.cluster.original_dst, envoy.cluster.static, envoy.cluster.strict_dns, envoy.clusters.aggregate, envoy.clusters.dynamic_forward_proxy, envoy.clusters.redis
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.matching.action: composite-action, skip
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.internal_redirect_predicates: envoy.internal_redirect_predicates.allow_listed_routes, envoy.internal_redirect_predicates.previous_routes, envoy.internal_redirect_predicates.safe_cross_scheme
    [2021-12-08 20:47:28.517][177845][info][main] [source/server/server.cc:385]   envoy.http.stateful_header_formatters: preserve_case
    [2021-12-08 20:47:28.518][177845][info][main] [source/server/server.cc:385]   envoy.filters.network: envoy.client_ssl_auth, envoy.echo, envoy.ext_authz, envoy.filters.network.client_ssl_auth, envoy.filters.network.connection_limit, envoy.filters.network.direct_response, envoy.filters.network.dubbo_proxy, envoy.filters.network.echo, envoy.filters.network.ext_authz, envoy.filters.network.http_connection_manager, envoy.filters.network.local_ratelimit, envoy.filters.network.mongo_proxy, envoy.filters.network.ratelimit, envoy.filters.network.rbac, envoy.filters.network.redis_proxy, envoy.filters.network.sni_cluster, envoy.filters.network.sni_dynamic_forward_proxy, envoy.filters.network.tcp_proxy, envoy.filters.network.thrift_proxy, envoy.filters.network.wasm, envoy.filters.network.zookeeper_proxy, envoy.http_connection_manager, envoy.mongo_proxy, envoy.ratelimit, envoy.redis_proxy, envoy.tcp_proxy
    [2021-12-08 20:47:28.518][177845][info][main] [source/server/server.cc:385]   envoy.compression.compressor: envoy.compression.brotli.compressor, envoy.compression.gzip.compressor
    [2021-12-08 20:47:28.519][177845][info][main] [source/server/server.cc:385]   envoy.dubbo_proxy.serializers: dubbo.hessian2
    [2021-12-08 20:47:28.519][177845][info][main] [source/server/server.cc:385]   envoy.thrift_proxy.protocols: auto, binary, binary/non-strict, compact, twitter
    [2021-12-08 20:47:28.519][177845][info][main] [source/server/server.cc:385]   envoy.dubbo_proxy.route_matchers: default
    [2021-12-08 20:47:28.519][177845][info][main] [source/server/server.cc:385]   envoy.wasm.runtime: envoy.wasm.runtime.null, envoy.wasm.runtime.v8
    [2021-12-08 20:47:28.519][177845][info][main] [source/server/server.cc:385]   envoy.quic.proof_source: envoy.quic.proof_source.filter_chain
    [2021-12-08 20:47:28.521][177845][info][main] [source/server/server.cc:433] HTTP header map info:
    [2021-12-08 20:47:28.521][177845][info][main] [source/server/server.cc:436]   request header map: 640 bytes: :authority,:method,:path,:protocol,:scheme,accept,accept-encoding,access-control-request-method,authentication,authorization,cache-control,cdn-loop,connection,content-encoding,content-length,content-type,expect,grpc-accept-encoding,grpc-timeout,if-match,if-modified-since,if-none-match,if-range,if-unmodified-since,keep-alive,origin,pragma,proxy-connection,referer,te,transfer-encoding,upgrade,user-agent,via,x-client-trace-id,x-envoy-attempt-count,x-envoy-decorator-operation,x-envoy-downstream-service-cluster,x-envoy-downstream-service-node,x-envoy-expected-rq-timeout-ms,x-envoy-external-address,x-envoy-force-trace,x-envoy-hedge-on-per-try-timeout,x-envoy-internal,x-envoy-ip-tags,x-envoy-max-retries,x-envoy-original-path,x-envoy-original-url,x-envoy-retriable-header-names,x-envoy-retriable-status-codes,x-envoy-retry-grpc-on,x-envoy-retry-on,x-envoy-upstream-alt-stat-name,x-envoy-upstream-rq-per-try-timeout-ms,x-envoy-upstream-rq-timeout-alt-response,x-envoy-upstream-rq-timeout-ms,x-envoy-upstream-stream-duration-ms,x-forwarded-client-cert,x-forwarded-for,x-forwarded-host,x-forwarded-proto,x-ot-span-context,x-request-id
    [2021-12-08 20:47:28.521][177845][info][main] [source/server/server.cc:436]   request trailer map: 128 bytes: 
    [2021-12-08 20:47:28.521][177845][info][main] [source/server/server.cc:436]   response header map: 424 bytes: :status,access-control-allow-credentials,access-control-allow-headers,access-control-allow-methods,access-control-allow-origin,access-control-expose-headers,access-control-max-age,age,cache-control,connection,content-encoding,content-length,content-type,date,etag,expires,grpc-message,grpc-status,keep-alive,last-modified,location,proxy-connection,server,transfer-encoding,upgrade,vary,via,x-envoy-attempt-count,x-envoy-decorator-operation,x-envoy-degraded,x-envoy-immediate-health-check-fail,x-envoy-ratelimited,x-envoy-upstream-canary,x-envoy-upstream-healthchecked-cluster,x-envoy-upstream-service-time,x-request-id
    [2021-12-08 20:47:28.522][177845][info][main] [source/server/server.cc:436]   response trailer map: 152 bytes: grpc-message,grpc-status
    [2021-12-08 20:47:28.523][177845][info][main] [source/server/server.cc:772] runtime: {}
    [2021-12-08 20:47:28.523][177845][info][admin] [source/server/admin/admin.cc:134] admin address: 0.0.0.0:49898
    [2021-12-08 20:47:28.523][177845][info][config] [source/server/configuration_impl.cc:127] loading tracing configuration
    [2021-12-08 20:47:28.523][177845][info][config] [source/server/configuration_impl.cc:87] loading 0 static secret(s)
    [2021-12-08 20:47:28.523][177845][info][config] [source/server/configuration_impl.cc:93] loading 1 cluster(s)
    [2021-12-08 20:47:28.524][177845][info][config] [source/server/configuration_impl.cc:97] loading 1 listener(s)
    [2021-12-08 20:47:28.525][177845][warning][config] [source/server/listener_impl.cc:932] reuse_port was configured for TCP listener 'listener_0' and is being force disabled because Envoy is not running on Linux. See the documentation for more information.
    [2021-12-08 20:47:28.525][177845][info][config] [source/server/configuration_impl.cc:109] loading stats configuration
    [2021-12-08 20:47:28.526][177845][info][main] [source/server/server.cc:868] starting main dispatch loop
    [2021-12-08 20:47:28.638][177845][info][runtime] [source/common/runtime/runtime_impl.cc:448] RTDS has finished initialization
    [2021-12-08 20:47:28.638][177845][info][upstream] [source/common/upstream/cluster_manager_impl.cc:207] cm init: all clusters initialized
    [2021-12-08 20:47:28.638][177845][info][main] [source/server/server.cc:849] all clusters initialized. initializing init manager
    [2021-12-08 20:47:28.638][177845][info][config] [source/server/listener_manager_impl.cc:784] all dependencies initialized. starting workers
    [2021-12-08 20:47:28.639][177845][warning][main] [source/server/server.cc:747] there is no configured limit to the number of allowed active connections. Set a limit via the runtime key overload.global_downstream_max_connections
    ==> curl -s 127.0.0.1:49898/clusters?format=json
    Killing child processes...
    [2021-12-08 20:47:38.539][177845][warning][main] [source/server/server.cc:807] caught ENVOY_SIGTERM
    [2021-12-08 20:47:38.539][177845][info][main] [source/server/server.cc:933] shutting down server instance
    [2021-12-08 20:47:38.539][177845][info][main] [source/server/server.cc:873] main dispatch loop exited
    [2021-12-08 20:47:38.540][177845][info][main] [source/server/server.cc:925] exiting
    
  25. removed their assignment
    on Jan 4, 2022
  26. Patrick0308 commented on Feb 7, 2022

    @Patrick0308
    Contributor

    I build successfully now. I'm not quite sure what the problem was that caused built failed. I just uninstalled anaconda and it works. I think this issue can be closed.

  27. keith commented on Mar 4, 2022

    @keith
    Member

    In general I think we should close this one and encourage folks to file new issues as they pop up

  28. davinci26 commented on May 3, 2022

    @davinci26
    Member

    hey folks, is m1 fast at compiling envoy? Do people have a good dev experience with m1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions