-
Notifications
You must be signed in to change notification settings - Fork 459
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
Compilation in a macOS GitHub runner fails with cc v1.0.84 #902
Comments
I think it is related to #900 . |
The |
We have the same issue with CXX-Qt, 1.0.83 works but 1.0.84 doesn't ( KDAB/cxx-qt#733 ). I'll see if |
So the issue changed using
and
|
@ahayzen-kdab Do you have a @twistedfall that's the same behavior |
@BlackHoleFox Thanks you are correct adding Look forward to 1.0.85 thanks! |
Hmm, the goal with that PR was to avoid the breakage we might have when rustc bumps it's deployment target from 10.7 to 10.12, if it has the side effect of requiring the ecosystem to set their deployment targets, that's unintentional. Most people will have no clue -- it's not like there's an easy way to map between C++ stdlib features and the version of macOS they were added. This seems like a big and unintentional regression. I'm away for the week (still working, but without access to an Intel mac, and with limited time for non-$dayjob work like Sorry for all the issues, everyone. |
1.0.84 has been yanked. |
Ah, yeah, we should cache this result. Does that actually cause problems though? It's from a different change. |
Not really, it's just a new behavior that I noticed which seems suboptimal. |
It should be cached. |
This comment was marked as outdated.
This comment was marked as outdated.
@thomcc Would it makes sense to bump the default That might help reduce the regression introduced. |
Setting an environment variable isn't a great solution for downstream builders of crates that require deployment target minimums above cc's defaults. Unfortunately the existing |
hello @BlackHoleFox , I think we need to fix this regression and release a new version due to amount of commits/PRs unreleased. However I'm not sure how to handle this issue, hence I'm asking for your help here. |
Would it be possible to revert the commit that caused this issue to unblock a new release of |
I mentioned this to @NobodyXu in a Zulip DM but I will be opening a PR shortly to revert the specific behavior change of querying rustc for the default version if nothing is supplied instead of using the SDKs' |
The fixing PR is up now if anyone is interested in manually testing it. |
Hello!
For my crate
opencv
I see that starting withcc
version 1.0.84 the macOS runners are failing: https://github.com/twistedfall/opencv-rust/actions/runs/6853515550I must also note that I haven't used
cc
versions1.0.80..=1.0.83
because of the another issue that was causing hangs due to the interaction ofjobserver
in bothcc
andopencv
(#844)The specific error is:
it is caused by the missing stdlib which clang warns about too:
As far as I can see between version 1.0.79 and 1.0.84 the C++ compiler is called with different arguments:
1.0.79
1.0.84
The main differences I see is the
-arch
,--target
,-mmacosx-version-min
and a bunch of-W
flags. The compiler identity looks different too:1.0.79
identifiers asGnu
1.0.84
identifies asClang
:The compiler is created as follows in
opencv
code: https://github.com/twistedfall/opencv-rust/blob/730cc64955ab4ad5286bee891e795a1322b053c0/build.rs#L223-L276The text was updated successfully, but these errors were encountered: