-
Notifications
You must be signed in to change notification settings - Fork 2
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
[MacOS] Wrong executable architecture in package .._macosx_11_0_arm64 #52
Comments
The issue still appears in the latest clang_tidy-18.1.1-py2.py3-none-macosx_11_0_arm64.whl package where the packaged binary is still |
Trying to address this in #74 |
You're potentially forcing me to upgrade to Sonoma (macos-14) now 🥲, up to now, I could still use Ventura (macos-13) without too much of a hassle 😄 |
Unfortunately, the build was still targeting
As we are crosscompiling, the
A set of options was copied from the manual build job you referenced with additional options to direct cmake to actually cross compile.
I hope this helps you figuring out the correct options to set for the build. |
Thanks for that @marcelhuberfoo ! |
I played around a bit more and even found a configuration where you could reduce to one build job, producing a so called universal binary containing code for both architectures in the same file. This file is actually more or less double the size but at least executable out of the box on both architectures.
and you could leave out |
Might actually be much simpler in that we've hit this |
Thanks @renefritze, a proper arm64 binary was provided by the generated wheel 🎉 |
New wheels for tidy 18.1.8 should hit PyPi in a few hours |
I discovered that the distribution package clang_tidy-15.0.2.1-py2.py3-none-macosx_11_0_arm64.whl falsely contains the x86_64 binary.
I extracted the downloaded wheel using unzip and used the
file
utility to examine the architecture.file clang_tidy-15.0.2.1-py2.py3-none-macosx_11_0_arm64/clang_tidy/data/bin/clang-tidy
showsMach-O 64-bit executable x86_64
instead ofMach-O 64-bit executable arm64
.As I am explicitly not wanting to use the rosetta emulator on my MacOS M1 machine, I am not able to use clang-tidy for now.I downgraded to using 15.0.2 which seems to properly install the arm64 binary.
The text was updated successfully, but these errors were encountered: