Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fix for Mac OS, Apple Silicon #2010

Merged
merged 1 commit into from
Oct 20, 2022
Merged

Conversation

smoofra
Copy link
Contributor

@smoofra smoofra commented Nov 3, 2021

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

Summary

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

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

Signed-off-by: Lawrence D'Anna <[email protected]>
@gsnedders
Copy link

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

@giampaolo giampaolo merged commit b0f780a into giampaolo:master Oct 20, 2022
ddelange added a commit to ddelange/psutil that referenced this pull request Oct 28, 2022
* 'master' of https://github.com/giampaolo/psutil:
  add windows test for free physical mem giampaolo#2074
  fix OSX tests broken by accident
  update HISTORY + give CREDITS for @arossert, @smoofra, @mayeut for giampaolo#2102, giampaolo#2156, giampaolo#2010
  build fix for Mac OS, Apple Silicon (giampaolo#2010)
  Linux: fix missing SPEED_UNKNOWN definition (giampaolo#2156)
  Use system-level values for Windows virtual memory (giampaolo#2077)
  feature: use ABI3 for cp36+ (giampaolo#2102)
  fix py2 compatibility
  improve API speed benchmark script giampaolo#2102
  fix: linter issues from giampaolo#2146 (giampaolo#2155)
  chore: skip test_cpu_freq on macOS arm64 (giampaolo#2146)
  pre-release + give CREDITS to @mayeut (PR giampaolo#2040) and @eallrich (new supporter)
  Fix a typo (giampaolo#2047)
  move isort and coverage config into pyproject.toml
  fix giampaolo#2021, fix giampaolo#1954, provide OSX arm64 bins + add pyproject.toml (giampaolo#2040)
  refactor git_log.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[macOS Apple Silicon] Installation fails due to compiler errors
3 participants