-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Bump boostrap cc
to 1.2.17 and cmake
to 0.1.54
#138784
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please add |
85502fc
to
673b519
Compare
Ah, that's why, I really couldn't understand why it didn't work (and failing in Have added to |
@bors try |
…try> Bump boostrap `cc` to 1.2.17 and `cmake` to 0.1.54 The `cc` version in `bootstrap` was reverted down to 1.1.22 in rust-lang#137460 (previously at 1.2.0). The offending issue has since then been resolved in rust-lang/cc-rs#1413, and a new version of `cc` has been released in rust-lang/cc-rs#1435, so let's try to update the version again. See [the changelog](https://github.com/rust-lang/cc-rs/blob/d9dd20e376368c7535f6ef89b809098f5f203c1a/CHANGELOG.md) for exact details on what has changed here. r? jieyouxu who tried this last in rust-lang#137022. `@rustbot` label T-bootstrap try-job: dist-apple-various
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors delegate+ (for try-jobs only, I haven't looked at the cc diff) |
ce6caef
to
c93efd1
Compare
Okay so the failure comes from all the way back in rust-lang/cmake-rs#158, see also rust-lang/cmake-rs#228. I've added a workaround in bootstrap, though ideally this should be fixed in @bors try |
c93efd1
to
061eda1
Compare
Bump boostrap `cc` to 1.2.17 and `cmake` to 0.1.54 The `cc` version in `bootstrap` was reverted down to 1.1.22 in rust-lang#137460 (previously at 1.2.0). The offending issue has since then been resolved in rust-lang/cc-rs#1413, and a new version of `cc` has been released in rust-lang/cc-rs#1435, so let's try to update the version again. See [the changelog](https://github.com/rust-lang/cc-rs/blob/d9dd20e376368c7535f6ef89b809098f5f203c1a/CHANGELOG.md) for exact details on what has changed here. r? jieyouxu who tried this last in rust-lang#137022. `@rustbot` label T-bootstrap try-job: dist-apple-various
This comment has been minimized.
This comment has been minimized.
Hmm, seems like it failed while testing Failure:
|
Hmm. Looking at the test, I think that it doesn't really make sense anymore after #138704. |
Should wait few days for pr, maybe it will be merged? |
I'd rather file a follow-up later, it can take time for a new
Do you think I should remove it, then? |
I will do it in a separate PR. |
Sent #139015. |
…ozkan Remove unneeded LLVM CI test assertions The `download_ci_llvm` bootstrap test was checking implementation details of the LLVM CI download check, which isn't very useful. It was essentially testing "if function_that_checks_if_llvm_ci_is_available returns true, we enable CI LLVM", but the usage of the function was an implementation detail. After rust-lang#138704, the inner implementation has changed, so the test now breaks if LLVM is updated. I don't think that it's very useful to test implementation details like this, without taking the outside git state into account. Ideally, we should mock the git state for the test, otherwise the test will randomly break when executed in environments which the test does not control (e.g. on CI when a LLVM change happens). I only kept the part of the test that checks that LLVM CI isn't used when we specify `download-ci-llvm = false`, as that should hold under all conditions, CI/local, and all git states. I also kept the `if-unchanged` assertion, but only on CI, and as a temporary measure. After rust-lang#138591, we should have a proper way of mocking the git state to make the test robust, and make it test what we actually want. Fixes [this](rust-lang#138784 (comment)). r? `@ghost`
Rollup merge of rust-lang#139015 - Kobzol:llvm-ci-test-fixes, r=onur-ozkan Remove unneeded LLVM CI test assertions The `download_ci_llvm` bootstrap test was checking implementation details of the LLVM CI download check, which isn't very useful. It was essentially testing "if function_that_checks_if_llvm_ci_is_available returns true, we enable CI LLVM", but the usage of the function was an implementation detail. After rust-lang#138704, the inner implementation has changed, so the test now breaks if LLVM is updated. I don't think that it's very useful to test implementation details like this, without taking the outside git state into account. Ideally, we should mock the git state for the test, otherwise the test will randomly break when executed in environments which the test does not control (e.g. on CI when a LLVM change happens). I only kept the part of the test that checks that LLVM CI isn't used when we specify `download-ci-llvm = false`, as that should hold under all conditions, CI/local, and all git states. I also kept the `if-unchanged` assertion, but only on CI, and as a temporary measure. After rust-lang#138591, we should have a proper way of mocking the git state to make the test robust, and make it test what we actually want. Fixes [this](rust-lang#138784 (comment)). r? `@ghost`
Uh, I think this got closed by the "fixes" sentence in that PR, and I can't re-open it myself. Can someone else do that, or should I make a new PR? EDIT: |
To avoid a panic in cmake-rs that was introduced in: rust-lang/cmake-rs#158
compiler-rt's CMake setup seems to have special logic for Apple platforms that works poorly when this is not set.
Similarly to what was previously done for the `llvm` step.
This PR makes a fairly large version update to CMake and cc, so it is likely that LLVM is built differently.
81ac7b4
to
7a6a324
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It is indeed very nice if we no longer have to pin bootstrap cc
/cmake
to old versions that are quite a ways away from the compiler cc
versions.
I'm semi-expecting this to maybe cause issues in obscure cases, so I'm going to mark this as rollup-never for bisection purposes, but we should definitely try this.
@bors r+ rollup=never |
The
cc
version inbootstrap
was reverted down to 1.1.22 in #137460 (previously at 1.2.0). The offending issue has since then been resolved in rust-lang/cc-rs#1413, and a new version ofcc
has been released in rust-lang/cc-rs#1435, so let's try to update the version again.See the
cc-rs
changelog and thecmake-rs
changelog for details on what has changed here.r? jieyouxu who tried this last in #137022.
@rustbot label T-bootstrap
try-job: apple