-
-
Notifications
You must be signed in to change notification settings - Fork 772
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
Bad CPU type in executable clang-tidy on Apple M3 Pro #4833
Comments
Looks like the issue is with the "files": [
{
"name": "tool-clangtidy-darwin_x86_64-1.150005.0.tar.gz",
"size": 19220346,
"checksum": {
"sha256": "dd2b0f982558194a4d0bda3fd15e084af42fabe495aac7805e458b496ea6587d"
},
"system": [
"darwin_x86_64",
"darwin_arm64"
],
"download_url": "https://dl.registry.platformio.org/download/platformio/tool/tool-clangtidy/1.150005.0/tool-clangtidy-darwin_x86_64-1.150005.0.tar.gz"
}
] |
There is no native binary for Mac ARM. Do you have Rosetta installed? |
@ivankravets It looks like LLVM does have native binaries for Mac ARM now. I can install Rosetta or even copy an arm64 binary from LLVM's repo as a work around, but it would be a better experience if this was supported in the registry. Any idea what's required to update the package config and provide an arm64 download URL? |
I agree with you. There is another problem. 95% of all toolchains are NOT native ARM. You will still need Rosetta. |
In my case, I'm using the espressif toolchain and clang-tidy is the only tool that isn't native ARM. Would it make sense to update packages incrementally as arm64 is supported? What's required to update the |
What kind of issue is this?
Question.
This issue tracker is not the place for questions. If you want to ask how to do something,
or to understand why something isn't working the way you expect it to,
use Community Forums or Premium Support
PlatformIO IDE.
All issues related to PlatformIO IDE should be reported to the
PlatformIO IDE for VSCode repository
Development Platform or Board.
All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
should be reported to appropriate repository related to your hardware
https://github.com/topics/platformio-platform
Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
PlatformIO Core.
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system:
PlatformIO Version (
platformio --version
):Description of problem
When running
pio check
withclangtidy
on an Apple M3 Pro, the following error is returned:It appears the incorrect architecture is choosen when installing
tool-clangtidy
.Uninstalling and reinstalling
tool-clandtidy
produces the same error.Steps to Reproduce
Configure
platformio.ini
to use clang-tidy.check_tool = clangtidy
Run static code analysis.
Actual Results
Expected Results
pio check
should run without error.The text was updated successfully, but these errors were encountered: