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

Possibly non-isolated build on macOS #512

Open
uwu-420 opened this issue Feb 3, 2025 · 0 comments
Open

Possibly non-isolated build on macOS #512

uwu-420 opened this issue Feb 3, 2025 · 0 comments

Comments

@uwu-420
Copy link

uwu-420 commented Feb 3, 2025

Hi, thanks for maintaining this wonderful project :)

If I understood correctly, one of this project's goals is to isolate as good as possible for builds on macOS, which is why a fixed version of LLVM is pulled in during build time.

I wanted to try making specific builds for the various Apple M processors by adding e.g. -mcpu=apple-m3 to the target_cflags and target_ldflags in the aarch64-apple-darwin target in targets.yml. (Btw, is that a cursed thing to try?)

For -mcpu=apple-m2 everything works nicely, but for -mcpu=apple-m3 (or m4) the build fails. I couldn't find anything informative in the logs that would point to the issue, so maybe someone can reproduce this?

But that kind of fits a suspicion I have, namely that the LLVM from XCode is notably involved in the build process (which it shouldn't?) and it does not know about M3 or M4 processors, which is why the build fails. When I run clang --version I get Apple clang version 16.0.0 (clang-1600.0.26.3) and I'm using macOS 15.1.1 (24B91) on a M3 MacBook so the LLVM version indeed does not know about M3 and M4. See https://releases.llvm.org/ and https://en.wikipedia.org/wiki/Apple_M3 for the according dates.

Don't know how relevant this is to you but maybe this points to some unintended non-isolation.

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

1 participant