build: make dynamic modules work on macos#38437
Merged
mattklein123 merged 17 commits intoenvoyproxy:mainfrom Feb 16, 2025
Merged
build: make dynamic modules work on macos#38437mattklein123 merged 17 commits intoenvoyproxy:mainfrom
mattklein123 merged 17 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
11 tasks
Member
Author
the error seems to have originated from the compilation of dynamic modules with rust toolchain and this issue must be something to do with this rust-lang/rust#62874 I tried adding the flag build.rs but no luck. I think i will give up for now - in case someone interested cc @zirain |
Member
|
maybe we can highlight somewhere that it's not available on mac. |
Member
Author
|
ok almost there.. |
Member
Author
|
finally only problem is symbol resolution at runtime it seems there's some weird "_" prefix |
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
mathetake
commented
Feb 16, 2025
| "abi.h", | ||
| "dynamic_modules.h", | ||
| ], | ||
| linkopts = select({ |
Member
Author
There was a problem hiding this comment.
note: we no longer need to manually list callback symbols here!
mathetake
commented
Feb 16, 2025
| "//test/integration:protocol_integration_test" | ||
| "//test/integration:tcp_proxy_integration_test" | ||
| "//test/integration:extension_discovery_integration_test" | ||
| "//test/extensions/dynamic_modules/http:filter_test" |
Member
Author
There was a problem hiding this comment.
note: this is the minimal test that ensures the dynamic loading/symbol resolution working
Member
Author
|
working!!!!!!!! |
Member
Author
|
/assign @mattklein123 |
mattklein123
approved these changes
Feb 16, 2025
agrawroh
pushed a commit
to agrawroh/envoy
that referenced
this pull request
Apr 9, 2025
Commit Message: build: make dynamic modules work on macos Additional Description: This tweaks a build setting on macos especially around symbol exports to enable dynamic modules work on macos. Notably, this adds the macos compatible symbols list which has a different format than linux platform. Risk Level: low Testing: existing ones Docs Changes: n/a Release Notes: n/a Platform Specific Features: n/a --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: build: make dynamic modules work on macos
Additional Description:
This tweaks a build setting on macos especially around symbol exports to enable dynamic modules work on macos. Notably, this adds the macos compatible symbols list which has a different format than linux platform.
Risk Level: low
Testing: existing ones
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a