Comments (6)
We still have this problem. See: pingcap/tidb#39526 (comment)
from gosigar.
This is a bit weird. This build runs fine on an AMD64 Linux machine (running go 1.18.2), but not on an AMD64 Darwin machine (running go 1.18.3).
I'm not very familiar with how go handles cross-compiling, and why it might decide to do that differently depending on the OS of the host compiler, but I'll see what I can learn on Friday.
In the meantime, if you have the time, energy, and interest required to figure out what's wrong, please do feel free to let us know what you discover.
For what it's worth, 7d5fe18 appears to be the commit that converted the repo to go mod
style dependency management... and the ARM64 build failed to build on Darwin with the same error you are reporting here. So, this isn't a very new failure.
from gosigar.
https://old.reddit.com/r/golang/comments/ltaega/cross_compiling_to_darwinarm64_apple_silicon_m1/
CGO_ENABLED=1
is needed to enable cgo when cross-compiling in Darwin. (There is some "C" code in sigar_darwin.go).
from gosigar.
Ah. That's a confusing requirement, but it does make the build succeed on Darwin.
Is there anything that you would like us to do here, or can this Issue be closed?
from gosigar.
This issue was marked as Stale
because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale
label or comment below.
from gosigar.
This issue was closed because it has been labeled Stale
for 7 days without subsequent activity. Feel free to re-open this issue at any time by commenting below.
from gosigar.
Related Issues (20)
- Crashes on Windows XP on init HOT 2
- macOS Sierra crash HOT 1
- Make Memory calculations use MemAvailable HOT 1
- Does not work on Linux HOT 3
- Darwin: no get 'syscall.NOTE_EXEC' event, and how get pid and ppid in one event? HOT 3
- psnotify can't work on Darwin platform HOT 2
- Weird package dependency
- Issue with uintptr size HOT 2
- showing wrong uptime in windows machine HOT 2
- Memory calculation inside containerized environments HOT 2
- Resolve vulnerability CVE-2020-14040 in outdated golang.org/x/text HOT 3
- More examples HOT 1
- Error when run the code HOT 4
- Gosigar explodes when cgroup controllers are mounted in multiple FS locations HOT 2
- sigar.Mem not reporting correctly inside Docker container HOT 9
- security issue from dependency on gopkg.in/yaml.v2 HOT 2
- Support for darwin arm64? HOT 1
- Readme needs updating HOT 1
- Security vulnerabilities in dependencies of latest release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosigar.