-
Notifications
You must be signed in to change notification settings - Fork 450
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
Regression in 1.1.32 - unable to build on mac m1 #1278
Comments
All later versions are broken rust-lang/cc-rs#1278
cc @madsmtm I guess this is probably due to passing apple minimum os in target? |
All later versions are broken rust-lang/cc-rs#1278
I can't see how that would make I.e. I think that the workaround done below is wrong, and we should just always pass Line 2544 in 2050013
That said, still don't understand why people's builds weren't broken before this? Don't have the time rn, but will try to take a closer look soon. |
If it helps on my machine I have
to make things work |
The headers like |
So, the change to the commandline options that we pass between I wonder if homebrew's Clang has special handling for the |
Ah, indeed it does! Homebrew installs a config file for |
Hmm, though that's only since Homebrew/homebrew-core#196094, which was merged a week ago. Which version of Homebrew do you have? |
I've tried to fix this in https://github.com/madsmtm/homebrew-core/tree/clang-macosx, but am unsure at this point that that's the correct way forwards. In any case, I feel like this is really a Homebrew issue (and the method that they're using feels brittle for many reasons). |
I tried to skim #1252, but I couldn't find the answer. Is there any reason why you don't want to use
|
Because semantically, it makes it very clear to Clang that the target is macOS, and not one of the other Darwin platforms. If you use And because practically, it's easier to exactly specify the macOS deployment target that way (otherwise we need to maintain a mapping from macOS to Darwin versions). (Though I guess we could set |
Having such a mapping isn't that bad: https://github.com/Homebrew/brew/blob/40f4ab25468bce1640b5ec7ff34fed271cad6e4f/Library/Homebrew/macos_version.rb#L34-L43 |
Starting with
1.1.32
I am unable to buildring
on my machine. Downgrading to1.1.31
fixes the issue.Rust version both 1.82 stable and nightlies reproduce the error for me.
Also other crates fail to build for me, eg blake3 fails with missing
assert.h
System:
Some more error details can be found in briansmith/ring#1942
Error output:
The text was updated successfully, but these errors were encountered: