Skip to content

bazel: fix missing framework on macOS#24802

Merged
htuch merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-missing-framework-on-macos
Jan 7, 2023
Merged

bazel: fix missing framework on macOS#24802
htuch merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-fix-missing-framework-on-macos

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Jan 6, 2023

When using only the command line tools (not a full Xcode installation) on macOS, bazel does not pass -fobjc-link-runtime and therefore does not link to the CoreFoundation framework, which is required by absl. This adds the required framework, and makes this a linker error instead of a runtime error for the future.

Fixes #24782

Signed-off-by: Keith Smiley keithbsmiley@gmail.com

When using only the command line tools (not a full Xcode installation)
on macOS, bazel does not pass `-fobjc-link-runtime` and therefore does
not link to the CoreFoundation framework, which is required by absl.
This adds the required framework, and makes this a linker error instead
of a runtime error for the future.

Fixes envoyproxy#24782

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
@htuch htuch enabled auto-merge (squash) January 6, 2023 22:30
@snowp
Copy link
Copy Markdown
Contributor

snowp commented Jan 7, 2023

/retest

@repokitteh-read-only
Copy link
Copy Markdown

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

🐱

Caused by: a #24802 (comment) was created by @snowp.

see: more, trace.

@htuch htuch merged commit 41d0b58 into envoyproxy:main Jan 7, 2023
VishalDamgude pushed a commit to freshworks-oss/envoy that referenced this pull request Feb 1, 2023
When using only the command line tools (not a full Xcode installation) on macOS, bazel does not pass -fobjc-link-runtime and therefore does not link to the CoreFoundation framework, which is required by absl. This adds the required framework, and makes this a linker error instead of a runtime error for the future.

Fixes envoyproxy#24782

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Signed-off-by: VishalDamgude <vishal.damgude@freshworks.com>
@keith keith deleted the ks/bazel-fix-missing-framework-on-macos branch May 23, 2023 16:36
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.

macOS build no longer works: symbol not found in flat namespace '_CFRelease'

3 participants