Skip to content

Agent is not buildable for non-glibc environments due to NVIDIA/go-nvml #32942

@at-wat

Description

@at-wat

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.

# github.com/NVIDIA/go-nvml/pkg/dl
/go/pkg/mod/github.com/!n!v!i!d!i!a/[email protected]/pkg/dl/dl_linux.go:25:18: could not determine kind of name for C.RTLD_DEEPBIND

RTLD_DEEPBIND is a glibc extension since glibc 2.3.4.

IMO, it's better to add an option to disable system-probe gpu module and corechecks gpu collector to workaround this.
I'm going to open a PR.


Hit this problem at seqsense/datadog-agent-alpine#134

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions