You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to build the project on my Mac M1 laptop using the go build grofer.go. But it is failing to build the package with logs like
iostat_darwin.c:28:2: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:143:1: note: 'IOMasterPort' has been explicitly marked deprecated here
github.com/shirou/gopsutil/host
smc_darwin.c:75:41: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
To Reproduce
Steps to reproduce the behavior:
Clone the repo on a Apple Mac book M1/M2 laptop
Goto folder where project is cloned and issue the command go build grofer.go (golang already installed)
Check the logs printed.
Expected behavior
Build should succeed.
Screenshots
Desktop (please complete the following information):
OS: Macbook
Chip Info: Apple M1 Pro
Go Version go1.20.2 darwin/amd64
Additional context
Existing binary with AMD64 architecture doesn't run on M1 machines.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to build the project on my Mac M1 laptop using the
go build grofer.go
. But it is failing to build the package with logs likegithub.com/pesos/grofer/pkg/sink/tui/misc
pkg/sink/tui/misc/signals.go:174:23: undefined: syscall.SIGCLD
pkg/sink/tui/misc/signals.go:184:23: undefined: syscall.SIGPOLL
pkg/sink/tui/misc/signals.go:186:23: undefined: syscall.SIGPWR
pkg/sink/tui/misc/signals.go:189:23: undefined: syscall.SIGSTKFLT
pkg/sink/tui/misc/signals.go:197:23: undefined: syscall.SIGUNUSED
github.com/shirou/gopsutil/disk
iostat_darwin.c:28:2: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:143:1: note: 'IOMasterPort' has been explicitly marked deprecated here
github.com/shirou/gopsutil/host
smc_darwin.c:75:41: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
To Reproduce
Steps to reproduce the behavior:
go build grofer.go
(golang already installed)Expected behavior
Build should succeed.
Screenshots
Desktop (please complete the following information):
Additional context
Existing binary with AMD64 architecture doesn't run on M1 machines.
The text was updated successfully, but these errors were encountered: