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

cppcheck: Bad CPU type in executable on macOS arm64 #808

Closed
loozhengyuan opened this issue Oct 25, 2024 · 1 comment
Closed

cppcheck: Bad CPU type in executable on macOS arm64 #808

loozhengyuan opened this issue Oct 25, 2024 · 1 comment

Comments

@loozhengyuan
Copy link

Similar to #436, cppcheck is not correctly installed on macOS arm64.

$ pio pkg uninstall -g -t platformio/tool-cppcheck             
Tool Manager: Removing tool-cppcheck @ 1.21100.230717
Tool Manager: [email protected] has been removed!
$ pio pkg install -g -t platformio/tool-cppcheck          
Tool Manager: Installing platformio/tool-cppcheck
Unpacking  [####################################]  100%
Tool Manager: [email protected] has been installed!
$ file ~/.platformio/packages/tool-cppcheck/cppcheck 
~/.platformio/packages/tool-cppcheck/cppcheck: Mach-O 64-bit executable x86_64

This results in the following error when the pio check command is ran:

$ pio check
...
OSError: [Errno 86] Bad CPU type in executable: '~/.platformio/packages/tool-cppcheck/cppcheck'
@valeros
Copy link
Member

valeros commented Oct 30, 2024

tool-cppcheck package for MacOS ARM64 has been added to the registry.

@valeros valeros closed this as completed Oct 30, 2024
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

No branches or pull requests

2 participants