Closed p-linnane closed 1 year ago
I don't know how you built the binary, but that error probably means that the build process was not run on an ARM Apple chip. Please note that the program will only work for ARM/Apple if it was built in such an environment.
If you believe it was built inside the right environment, I suggest downloading and compiling manually, like in the README. If you build it following those instructions and you encounter the same problem, then it is a problem of cpufetch itself and I should investigate further - otherwise is a problem with your setup.
The job was run on a macOS Ventura VM running on a 2020 Mac mini with an M1 chip. The program builds fine, we are just running make
as described in the README. FWIW, this is only happening on the arm64 version of macOS Ventura. We have no issues on 2 other arm64 and 4 other Intel versions of macOS.
cpufetch uses sysctlbyname to query cpu_family in ARM/macOS, which is the function failing in this case. It is not clear what is the problem - whether it's because of the latest macOS version or because it is running in a VM (VMs typically affect this kind of function) in the latest macOS version.
I would suggest copying the generated executable to a non-vm macOS Ventura and checking if it still fails.
I can confirm building locally on my machine returned the expected results. I will need to do some more research into why that particular version of macOS is having issues when virtualized. Thank you.
Thanks.
If you find something relevant I would appreciate it if you could post it here so I can warn future users about that to avoid confusion.
Hello. I am a maintainer for Homebrew project. While attempting to package
cpufetch
for the arm64 version of macOS Ventura, we are encountering a test failure.The full GitHub Actions run can be found here. This job was run on a 2020 Mac mini with an M1 chip.