Opened 11 months ago
Last modified 11 months ago
#68918 assigned defect
telegraf @1.28.4: please build with CGO enabled
Reported by: | FranklinYu (Franklin Yu) | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | telegraf |
Description (last modified by FranklinYu (Franklin Yu))
According to GitHub issue 8837 and 14182, if it is compiled on macOS without CGO, then the CPU plugin (one of the most popular plugins) will not work, because it is not yet implemented. It is only implemented with CGO target (with the help of Mach system call). The upstream Makefile only supports no-CGO build; they seem to suggest that we use go build
instead of the Makefile.
Change History (2)
comment:1 Changed 11 months ago by FranklinYu (Franklin Yu)
Description: | modified (diff) |
---|
comment:2 Changed 11 months ago by FranklinYu (Franklin Yu)
Note: See
TracTickets for help on using
tickets.
The DiskIO plugin also requires CGO. The pure-Go standard library on macOS is simply very limited.