-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to build on non-glibc env #32943
base: main
Are you sure you want to change the base?
Conversation
Add an build option (`--non-glibc`) to build the agent on non-glibc environment like musl libc. The option disables system-probe gpu module and corechecks gpu collector using `github.com/NVIDIA/go-nvml` which depends on a glibc-extended definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small edits, but approving to not block.
--- | ||
enhancements: | ||
- | | ||
Add an build option (`--non-glibc`) to build the agent on non-glibc environment like musl libc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an build option (`--non-glibc`) to build the agent on non-glibc environment like musl libc. | |
Add an build option (`--non-glibc`) to build the Agent on `non-glibc` environment like musl libc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments
Waiting for results of internal CI pipeline. I'll report back once it is complete. |
Co-authored-by: Bryce Kahle <[email protected]>
What does this PR do?
Add an build option (
--non-glibc
--no-glibc
) to build the agent on non-glibc environment like musl libc.The option disables system-probe gpu module and corechecks gpu collector using
github.com/NVIDIA/go-nvml
which depends on a glibc-extended definition.Motivation
(reported at #32942)
Recently added system-probe gpu module and corechecks gpu collector use github.com/NVIDIA/go-nvml which requires glibc.
So, agent can't be built for non-glibc environments like Alpine Linux and Arch Linux which use musl libc.
Describe how you validated your changes
I applied this change as a patch to seqsense/datadog-agent-alpine#134 and confirmed that the build is fixed by setting the option
--non-glibc
--no-glibc
.Possible Drawbacks / Trade-offs
The doesn't take effect unless setting the option.
Additional Notes