psutil icon indicating copy to clipboard operation
psutil copied to clipboard

build fix for Mac OS, Apple Silicon

Open smoofra opened this issue 3 years ago • 1 comments

On MacOS, arm64 IFM_1000_TX and IFM_1000_T are the same value, causing a build failure.

Summary

  • OS: Mac OS, on Apple Silicon (arm64)
  • Bug fix: yes
  • Type: build failure
  • Fixes: https://github.com/giampaolo/psutil/issues/1945

Description

When building on MacOS,arm64:

    psutil/_psutil_posix.c:514:21: error: duplicate case value '16'
                    case(IFM_1000_T):
                        ^
    psutil/_psutil_posix.c:508:21: note: previous case defined here
                    case(IFM_1000_TX):
                        ^
    1 error generated.
    error: command '/usr/bin/xcrun' failed with exit code 1

smoofra avatar Nov 03 '21 20:11 smoofra

@giampaolo what needs to happen for this to get reviewed?

gsnedders avatar Feb 16 '22 19:02 gsnedders