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

Compile compiler_builtins with abort panic strategy #43258

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

petrochenkov
Copy link
Contributor

A workaround for #43095

In case this causes unexpected consequences, I use a simpler workaround locally:

--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -175,7 +175,9 @@ fn main() {
         }

         if let Ok(s) = env::var("RUSTC_CODEGEN_UNITS") {
-            cmd.arg("-C").arg(format!("codegen-units={}", s));
+            if crate_name != "compiler_builtins" {
+                cmd.arg("-C").arg(format!("codegen-units={}", s));
+            }
         }

         // Emit save-analysis info.

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Jul 16, 2017

📌 Commit 5f37110 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 16, 2017

⌛ Testing commit 5f37110 with merge 06c5abb...

bors added a commit that referenced this pull request Jul 16, 2017
Compile `compiler_builtins` with `abort` panic strategy

A workaround for #43095

In case this causes unexpected consequences, I use a simpler workaround locally:
```diff
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -175,7 +175,9 @@ fn main() {
         }

         if let Ok(s) = env::var("RUSTC_CODEGEN_UNITS") {
-            cmd.arg("-C").arg(format!("codegen-units={}", s));
+            if crate_name != "compiler_builtins" {
+                cmd.arg("-C").arg(format!("codegen-units={}", s));
+            }
         }

         // Emit save-analysis info.
```

r? @alexcrichton
@bors
Copy link
Contributor

bors commented Jul 16, 2017

💔 Test failed - status-travis

@petrochenkov
Copy link
Contributor Author

[00:46:54] thread 'main' panicked at 'downloaded openssl sha256 different
[00:46:54] expected: 6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
[00:46:54] found:    8994db88cbed6b6a610c9f08f74a6b5dc1dd20e5cfdbf75fc34535cb21323e2f
[00:46:54] ', /checkout/src/bootstrap/native.rs:302
[00:46:54] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:46:54] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host x86_64-unknown-linux-gnu --target x86_64-unknown-linux-gnu
[00:46:54] Build completed unsuccessfully in 0:45:26

@Mark-Simulacrum
Copy link
Member

I'm going to retry this since it feels possibly spurious, though it also doesn't seem that way. Shouldn't be related to this though...

@bors retry

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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 17, 2017
@bors
Copy link
Contributor

bors commented Jul 17, 2017

⌛ Testing commit 5f37110 with merge 08652ec...

bors added a commit that referenced this pull request Jul 17, 2017
Compile `compiler_builtins` with `abort` panic strategy

A workaround for #43095

In case this causes unexpected consequences, I use a simpler workaround locally:
```diff
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -175,7 +175,9 @@ fn main() {
         }

         if let Ok(s) = env::var("RUSTC_CODEGEN_UNITS") {
-            cmd.arg("-C").arg(format!("codegen-units={}", s));
+            if crate_name != "compiler_builtins" {
+                cmd.arg("-C").arg(format!("codegen-units={}", s));
+            }
         }

         // Emit save-analysis info.
```

r? @alexcrichton
@bors
Copy link
Contributor

bors commented Jul 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 08652ec to master...

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.

4 participants