build: fix mac build on xcode 12#17393
build: fix mac build on xcode 12#17393ramaraochavali wants to merge 3 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
|
FWIW, I believe this is a false-positive (see: https://reviews.llvm.org/D73007), so adding |
|
see also #13184 as it is similar |
|
Homebrew/homebrew-core#81490 will try to work around this until merged as currently homebrew is busted |
|
@ramaraochavali what is the status of this? Should we close or revise as per comments? |
|
I am fine with the workaround of removing envoy/bazel/envoy_internal.bzl Line 69 in a12869f Is that fine with every one @rebello95 ? |
|
project team: (for lack of knowing how escalations work @mattklein123 ) I don't know how severity works here, but this should be a dev 1. only thing worse would be all platforms unable to build (dev 0). That os/x doesn't build due to this means no one can upgrade homebrew to envoy 1.19. To understand the full context is basically knowing that many projects rely on github actions, who have finally stopped installing ancient xcode. Note: this is also hurting the homebrew project as it is causing broken builds on the existing versions. In other words envoy's config is causing stalls on unrelated forumulas such as go. Can someone with deep knowledge on the build please pitch in and resolve this! |
|
@ramaraochavali yes let's just disable range-loop-analysis on macOS. cc @keith or @lizan for help on how to do that or just ask them in the #bazel slack room. Thank you! /wait |
The version of clang that ships with Xcode 12 has false positives with this warning that might be fixed by https://reviews.llvm.org/D73007 In the meantime we can disable it entirely as discussed on envoyproxy#17393 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
|
Thanks Keith! Closing this one. |
|
makes sense. Will look forward for the other PR getting merged :-) |
The version of clang that ships with Xcode 12 has false positives with this warning that might be fixed by https://reviews.llvm.org/D73007 In the meantime we can disable it entirely as discussed on #17393 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
The version of clang that ships with Xcode 12 has false positives with this warning that might be fixed by https://reviews.llvm.org/D73007 In the meantime we can disable it entirely as discussed on envoyproxy#17393 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Commit Message: fix mac build on xcode 12
Additional Description:
Build with Xcode 12 on Mac fails with the following error as abseil while constructing map uses non reference range loop.
Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]