Open jonathanfoster opened 10 months ago
Looks like the issue is with the tool-clangtidy
registry config, the files for darwin_amd46
appear to be misconfigured. darwin_arm64
should be a different download URL than darwin_x86_64
.
"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 tool-clangtidy
package config and provide an arm64 download URL? Is there anywhere I can make the change and submit a PR? I'm happy to help however I can.
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.
[X] 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.Run static code analysis.
Actual Results
Expected Results
pio check
should run without error.