Skip to content

Comments

bazel: fix macOS build#18920

Merged
yanavlasov merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-macos-build
Nov 10, 2021
Merged

bazel: fix macOS build#18920
yanavlasov merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-macos-build

Conversation

@keith
Copy link
Member

@keith keith commented Nov 6, 2021

It seems that some combination of macOS Monterey and Xcode 13 started
causing a build issue. The problem is that mach/boolean.h adds macros
for TRUE and FALSE which conflicts with some of Envoy's own uses of
these. We never import this directly so it's possible these macros are
not new, but just exposed through headers in a new way.

The core fix here is to update cel-cpp to fix google/cel-cpp#121

The secondary fix is to remove this macro as envoy already did for
windows. This stops any code that imports the platform header from
hitting this in the future.

This fixes: #18842

Signed-off-by: Keith Smiley [email protected]

@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Nov 6, 2021
@repokitteh-read-only
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @moderation

🐱

Caused by: #18920 was opened by keith.

see: more, trace.

@belyalov
Copy link
Contributor

belyalov commented Nov 6, 2021

Confirm, it does complete on M1-Pro, with golang set to 1.17

@keith
Copy link
Member Author

keith commented Nov 9, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18920 (comment) was created by @keith.

see: more, trace.

It seems that some combination of macOS Monterey and Xcode 13 started
causing a build issue. The problem is that `mach/boolean.h` adds macros
for `TRUE` and `FALSE` which conflicts with some of Envoy's own uses of
these. We never import this directly so it's possible these macros are
not new, but just exposed through headers in a new way.

The core fix here is to patch cel-cpp working around google/cel-cpp#121

The secondary fix is to remove this macro as envoy already did for
windows. This stops any code that imports the platform header from
hitting this in the future.

This fixes: envoyproxy#18842

Signed-off-by: Keith Smiley <[email protected]>
@keith keith force-pushed the ks/bazel-fix-macos-build branch from 2a5933a to f026826 Compare November 9, 2021 16:38
@yanavlasov yanavlasov assigned moderation and ggreenway and unassigned moderation Nov 10, 2021
@yanavlasov
Copy link
Contributor

@moderation can you LGTM deps, please?

@moderation
Copy link
Contributor

/lgtm deps

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Nov 10, 2021
@yanavlasov yanavlasov merged commit 1a8b09f into envoyproxy:main Nov 10, 2021
mpuncel added a commit to mpuncel/envoy that referenced this pull request Nov 10, 2021
* main: (71 commits)
  bazel: fix macOS build (envoyproxy#18920)
  http: switching from 100 to 1xx (envoyproxy#18904)
  grpc: implement BufferedAsyncClient for bidirectional gRPC stream (envoyproxy#18129)
  bazel: add repository arg to benchmark_test (envoyproxy#18795)
  rocketmq_proxy: Improvement for map find (envoyproxy#18909)
  tls: unit test: spiffe signed by intermediate cert (envoyproxy#18914)
  Test for FilterConfigPerRoute dtor called on worker thread. (envoyproxy#18927)
  deps: Bump `com_google_protobuf` -> 3.19.1 (envoyproxy#18930)
  deps: Bump `com_googlesource_code_re2` -> 2021-11-01 (envoyproxy#18933)
  cvescan: Move cvescan data to yaml (envoyproxy#18947)
  remove unnecessary file level not unimplemented hide annotation (envoyproxy#18924)
  test: moving echo test (envoyproxy#18938)
  test: fixing a test flake (envoyproxy#18899)
  deps: Revert pyparsing bump (envoyproxy#18946)
  deps: Bump `build_bazel_rules_apple` -> 0.32.0 (envoyproxy#18932)
  deps: Bump `com_github_bazelbuild_buildtools` -> 4.2.3 (envoyproxy#18931)
  build(deps): bump pycparser from 2.20 to 2.21 in /tools/dependency (envoyproxy#18936)
  quic: supporting connections with zero initial available streams (envoyproxy#18775)
  test: moving proxy proto (envoyproxy#18939)
  build(deps): bump pyparsing from 3.0.4 to 3.0.5 in /tools/dependency (envoyproxy#18937)
  ...

Signed-off-by: Michael Puncel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails in macOS Monterey Not use "TRUE" and "FALSE" for token name?

5 participants