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

Update crates in Cargo.lock #51917

Merged
merged 2 commits into from
Jul 5, 2018
Merged

Update crates in Cargo.lock #51917

merged 2 commits into from
Jul 5, 2018

Conversation

alexcrichton
Copy link
Member

This is a "hopefully routine" update of our crates.io-based crates in
Cargo.lock, and let's see how it fares on CI...

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 29, 2018
@alexcrichton
Copy link
Member Author

r? @kennytm

@rust-highfive

This comment has been minimized.

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 29, 2018
@kennytm
Copy link
Member

kennytm commented Jun 29, 2018

Can't use regex 1.0.1 to build stage0-rustbook? But std::arch should exist on 1.27 (current stage0).

@Mark-Simulacrum
Copy link
Member

The problem is that we build libraries like this with a freshly compiled stage0 libstd which is not compiled with stdsimd, because we want to be able to change simd implementations without worrying about the bootstrap compiler.

I think the best solution here is to change how we build these libraries such that they are compiled with the raw bootstrap compiler, essentially equivalent to cargo +beta build in their directories.

@alexcrichton
Copy link
Member Author

My thoughts exactly! I've pushed up a commit to do that, and let's see how it fares

@rust-highfive
Copy link
Collaborator

The job mingw-check of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:07:18] For more information about this error, try `rustc --explain E0463`.
[00:07:18] error: Could not compile `rustdoc`.
[00:07:18] 
[00:07:18] Caused by:
[00:07:18]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustdoc librustdoc/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,metadata -C opt-level=2 -C metadata=60bcdc9d496c403c -C extra-filename=-60bcdc9d496c403c --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/release/deps --extern tempfile=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libtempfile-449a781a9e9fafa1.rmeta --extern minifier=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libminifier-f7f1f75a773ab025.rmeta --extern pulldown_cmark=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libpulldown_cmark-fc247946a373a811.rmeta` (exit code: 101)
[00:07:18] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--color" "always" "--manifest-path" "/checkout/src/tools/rustdoc/Cargo.toml" "--message-format" "json"
[00:07:18] expected success, got: exit code: 101
[00:07:18] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
[00:07:18] travis_fold:end:stage0-rustdoc

[00:07:18] travis_time:end:stage0-rustdoc:start=1530308667568885844,finish=1530308676124850806,duration=8555964962

---
travis_time:end:0aa36c77:start=1530308676661917320,finish=1530308676668292089,duration=6374769
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:254d9eea
$ head -30 ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
head: cannot open ‘./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers’ for reading: No such file or directory
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:04f4a570
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@kennytm
Copy link
Member

kennytm commented Jun 30, 2018

[00:07:17]     Checking rustdoc v0.0.0 (file:///checkout/src/librustdoc)
[00:07:18] error[E0463]: can't find crate for `rustc_codegen_utils`
[00:07:18]   --> librustdoc/lib.rs:36:1
[00:07:18]    |
[00:07:18] 36 | extern crate rustc_codegen_utils;
[00:07:18]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

@bors
Copy link
Contributor

bors commented Jun 30, 2018

☔ The latest upstream changes (presumably #51717) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton alexcrichton force-pushed the update branch 2 times, most recently from c2146f7 to f19f2ac Compare July 2, 2018 16:33
@alexcrichton
Copy link
Member Author

Ok should be fixed now!

/// "other" here is for miscellaneous sets of tools that are built using the
/// stage0 compiler in its entirety (target libraries and all). Typically
/// these tools compile with stable Rust.
ToolOther,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we rename this to ToolBootstrap and update the comment above to say "bootstrap compiler" instead of stage0 compiler to avoid the potential ambiguity?

/// Compile a tool which uses all libraries we compile (up to rustc).
/// Doesn't use the stage0 compiler libraries like "other", and includes
/// tools like rustdoc, cargo, rls, etc.
ToolAllLocalLibs,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer that we keep the split here between ToolStd/Test/Rustc since I'm hoping to use it later for #50509 -- we want to keep Mode closely matched with dependency information where possible.

Looking through this though it looks like we'd only need to keep ToolRustc in that case (the rest would appear unused); mind renaming this to that? It would help in future tool additions too, I think, since the distinction we're making is between tools that have dependencies beyond a beta compiler; should also enable fewer rebuilds for some tools...

@@ -547,7 +553,7 @@ impl Build {
Mode::Test => "-test",
Mode::Codegen => "-rustc",
Mode::Rustc => "-rustc",
Mode::ToolStd | Mode::ToolTest | Mode::ToolRustc => "-tools",
Mode::ToolOther | Mode::ToolAllLocalLibs => "-tools",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a bad idea -- likely to cause problems: tools built with different std's will conflict and generally not work, we should have a -bootstrap-tools dir for them probably.

(That'll also mean updating the cleaning code, I think, since it shouldn't need to clean out that dir except on bootstrap compiler change)

@alexcrichton
Copy link
Member Author

@Mark-Simulacrum ok applied changes, although are you sure the cleaning needs to be updated? I've double-checked that cleaning happens for the ToolsRustc mode but for the bootstrap tools they're never cleared out otherwise and cargo will already recompile when the bootstrap compiler changes

@Mark-Simulacrum
Copy link
Member

Looking at it again I don't think it needs to be, and I guess people can file bugs if we're wrong :)

@bors r+

@bors
Copy link
Contributor

bors commented Jul 2, 2018

📌 Commit 13d15ea88d1ab34920eabaf61b0b1c6cdf2c1bbb has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 2, 2018
@bors
Copy link
Contributor

bors commented Jul 3, 2018

⌛ Testing commit 13d15ea88d1ab34920eabaf61b0b1c6cdf2c1bbb with merge a815e2997bc9561a4ebafb3ca160a30295ce036d...

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
  0     0    0     0    0     0      0      0 --:--:--  0:00:51 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:52 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:53 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:54 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:55 --:--:--     0curl: (6) Could not resolve host: s3-us-west-1.amazonaws.com
[00:59:07] thread 'main' panicked at 'failed to download openssl source: exit code: 6', bootstrap/native.rs:589:17
[00:59:07] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --no-fail-fast src/doc/book src/doc/nomicon src/doc/reference src/doc/rust-by-example src/tools/rls src/tools/rustfmt src/tools/miri src/tools/clippy
[00:59:07] Build completed unsuccessfully in 0:56:45
[00:59:07] {"miri":"test-pass","rust-by-example":"test-pass","nomicon":"test-fail","rls":"test-pass","book":"test-pass","rustfmt":"test-pass","reference":"test-pass","clippy-driver":"test-pass"}
[00:59:07] Verifying status of book...
---
travis_time:end:0209efa0:start=1530773000182376185,finish=1530773000189246605,duration=6870420
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:034cb8a8
$ head -30 ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
head: cannot open ‘./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers’ for reading: No such file or directory
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:1d7277fe
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@kennytm
Copy link
Member

kennytm commented Jul 5, 2018

@bors retry

[01:00:03] fatal: unable to access 'https://github.com/rust-lang-nursery/rust-toolstate.git/': Could not resolve host: github.com

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 5, 2018
@bors
Copy link
Contributor

bors commented Jul 5, 2018

⌛ Testing commit 66273e622abf5df74efa213f3729bb99f54a7c37 with merge 5efb980ef0cd7fa54ad72922e3219830fb27f485...

@bors
Copy link
Contributor

bors commented Jul 5, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 5, 2018
@kennytm
Copy link
Member

kennytm commented Jul 5, 2018

Legit (winapi 0.3.5 has an extra userenv feature for cargo compared with clippy-driver.)

  winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` enabled features ["consoleapi", "dbghelp", "errhandlingapi", "fileapi", "handleapi", "ioapiset", "jobapi", "jobapi2", "lmcons", "minschannel", "minwinbase", "minwindef", "namedpipeapi", "ntdef", "ntsecapi", "ntstatus", "processenv", "processthreadsapi", "profileapi", "psapi", "schannel", "securitybaseapi", "std", "synchapi", "sysinfoapi", "timezoneapi", "winbase", "wincon", "wincrypt", "winerror", "winnt", "winsock2", "ws2def", "ws2ipdef", "ws2tcpip"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libwinapi-8c0c5d47a5b636f9.rlib"
    `cargo` enabled features ["consoleapi", "dbghelp", "errhandlingapi", "fileapi", "handleapi", "ioapiset", "jobapi", "jobapi2", "lmcons", "minschannel", "minwinbase", "minwindef", "namedpipeapi", "ntdef", "ntsecapi", "ntstatus", "processenv", "processthreadsapi", "profileapi", "psapi", "schannel", "securitybaseapi", "std", "synchapi", "sysinfoapi", "timezoneapi", "userenv", "winbase", "wincon", "wincrypt", "winerror", "winnt", "winsock2", "ws2def", "ws2ipdef", "ws2tcpip"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libwinapi-555a599ddb494bb2.rlib"
  backtrace 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` enabled features ["backtrace-sys", "coresymbolication", "dbghelp", "default", "dladdr", "libbacktrace", "libunwind", "winapi"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libbacktrace-24ffbf5db7896ea0.rlib"
    `cargo` enabled features ["backtrace-sys", "coresymbolication", "dbghelp", "default", "dladdr", "libbacktrace", "libunwind", "winapi"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libbacktrace-1e8793b68761971a.rlib"
  error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` enabled features ["backtrace"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\liberror_chain-896b15f7371571fd.rlib"
    `rls` enabled features ["backtrace"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\liberror_chain-99a6e8de0647e88e.rlib"
  cargo_metadata 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` enabled features ["backtrace", "default", "error-chain"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libcargo_metadata-46868adfe4c70f0d.rlib"
    `rls` enabled features ["backtrace", "default", "error-chain"] at "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2-tools\\i686-pc-windows-msvc\\release\\deps\\libcargo_metadata-901e68a0fa268593.rlib"

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 5, 2018
Run `cargo update` and let's see how far we can get!
@alexcrichton
Copy link
Member Author

@bors: r=Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Jul 5, 2018

📌 Commit d825115 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 5, 2018
@bors
Copy link
Contributor

bors commented Jul 5, 2018

⌛ Testing commit d825115 with merge 2d5a295...

bors added a commit that referenced this pull request Jul 5, 2018
Update crates in `Cargo.lock`

This is a "hopefully routine" update of our crates.io-based crates in
`Cargo.lock`, and let's see how it fares on CI...
@bors
Copy link
Contributor

bors commented Jul 5, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 2d5a295 to master...

@bors bors merged commit d825115 into rust-lang:master Jul 5, 2018
@alexcrichton alexcrichton deleted the update branch July 5, 2018 22:30
@o01eg
Copy link
Contributor

o01eg commented Jul 13, 2018

Looks like it broke custom libdir support.

kennytm pushed a commit to kennytm/rust that referenced this pull request Jul 18, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Jul 18, 2018
Revert some changes from rust-lang#51917 to fix custom libdir

Should fix rust-lang#52317 also adds `libdir` value to output.
bors added a commit that referenced this pull request Jul 19, 2018
Rollup of 13 pull requests

Successful merges:

 - #51628 (use checked write in `LineWriter` example)
 - #52116 (Handle array manually in str case conversion methods)
 - #52218 (Amend option.take examples)
 - #52418 (Do not use desugared ident when suggesting adding a type)
 - #52439 (Revert some changes from #51917 to fix custom libdir)
 - #52455 (Fix doc comment: use `?` instead of `.unwrap()`)
 - #52458 (rustc: Fix a suggestion for the `proc_macro` feature)
 - #52464 (Allow clippy to be installed with make install)
 - #52472 (rustc: Enable `use_extern_macros` in 2018 edition)
 - #52477 (Clarify short-circuiting behvaior of Iterator::zip.)
 - #52480 (Cleanup #24958)
 - #52487 (Don't build twice the sanitizers on Linux)
 - #52510 (rustdoc: remove FIXME about macro redirects)

Failed merges:

r? @ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants