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

Copy libgcc as well after building musl #52157

Closed
wants to merge 2 commits into from

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Jul 8, 2018

This is needed for rust-lang/libc#1034.

r? @alexcrichton

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

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 9, 2018

📌 Commit 7ec188b has been approved by alexcrichton

@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 9, 2018
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 10, 2018
Copy libgcc as well after building musl

This is needed for rust-lang/libc#1034.

r? @alexcrichton
@bors
Copy link
Contributor

bors commented Jul 10, 2018

⌛ Testing commit 7ec188b with merge b3cc007073312b83a1d4dd0eeb65a0ed042631eb...

@bors
Copy link
Contributor

bors commented Jul 10, 2018

💔 Test failed - status-travis

@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 10, 2018
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-netbsd 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:23:25]    Compiling libc v0.0.0 (file:///checkout/src/rustc/libc_shim)
[00:23:25]    Compiling alloc v0.0.0 (file:///checkout/src/liballoc)
[00:23:25]    Compiling std_unicode v0.0.0 (file:///checkout/src/libstd_unicode)
[00:23:25] [RUSTC-TIMING] std_unicode test:false 0.062
[00:23:25] error[E0658]: The attribute `target_vendor` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
[00:23:25]    --> rustc/libc_shim/../../liblibc/src/unix/mod.rs:313:42
[00:23:25]     |
[00:23:25] 313 |         #[cfg_attr(feature = "stdbuild", target_vendor = "rumprun")]
[00:23:25]     |
[00:23:25]     |
[00:23:25]     = help: add #![feature(custom_attribute)] to the crate attributes to enable
[00:23:25] error: aborting due to previous error
[00:23:25] 
[00:23:25] For more information about this error, try `rustc --explain E0658`.
[00:23:25] [RUSTC-TIMING] libc test:false 0.281
[00:23:25] [RUSTC-TIMING] libc test:false 0.281
[00:23:25] error: Could not compile `libc`.
[00:23:25] Caused by:
[00:23:25] Caused by:
[00:23:25]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name libc rustc/libc_shim/../../liblibc/src/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 --cfg feature="default" --cfg feature="stdbuild" -C metadata=f5b8757d317d0230 -C extra-filename=-f5b8757d317d0230 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps --target x86_64-unknown-netbsd -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern compiler_builtins=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps/libcompiler_builtins-5d3c8e5b32757e07.rlib --extern core=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps/libcore-d2548b8f6f05a2b3.rlib -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/build/compiler_builtins-7c3380c919672e95/out` (exit code: 101)
[00:23:31] [RUSTC-TIMING] alloc test:false 5.895
[00:23:31] error: build failed
[00:23:31] error: build failed
[00:23:31] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-j" "4" "--release" "--locked" "--color" "always" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "--message-format" "json"
[00:23:31] expected success, got: exit code: 101
[00:23:31] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1117:9
[00:23:31] travis_fold:end:stage1-std

[00:23:31] travis_time:end:stage1-std:start=1531203412015802341,finish=1531203475107645919,duration=63091843578

---
travis_time:end:0f589ba9:start=1531203475778754059,finish=1531203475785643246,duration=6889187
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:18cb48e3
$ 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:01f26fc3
$ 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)

1 similar comment
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-netbsd 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:23:25]    Compiling libc v0.0.0 (file:///checkout/src/rustc/libc_shim)
[00:23:25]    Compiling alloc v0.0.0 (file:///checkout/src/liballoc)
[00:23:25]    Compiling std_unicode v0.0.0 (file:///checkout/src/libstd_unicode)
[00:23:25] [RUSTC-TIMING] std_unicode test:false 0.062
[00:23:25] error[E0658]: The attribute `target_vendor` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
[00:23:25]    --> rustc/libc_shim/../../liblibc/src/unix/mod.rs:313:42
[00:23:25]     |
[00:23:25] 313 |         #[cfg_attr(feature = "stdbuild", target_vendor = "rumprun")]
[00:23:25]     |
[00:23:25]     |
[00:23:25]     = help: add #![feature(custom_attribute)] to the crate attributes to enable
[00:23:25] error: aborting due to previous error
[00:23:25] 
[00:23:25] For more information about this error, try `rustc --explain E0658`.
[00:23:25] [RUSTC-TIMING] libc test:false 0.281
[00:23:25] [RUSTC-TIMING] libc test:false 0.281
[00:23:25] error: Could not compile `libc`.
[00:23:25] Caused by:
[00:23:25] Caused by:
[00:23:25]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name libc rustc/libc_shim/../../liblibc/src/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 --cfg feature="default" --cfg feature="stdbuild" -C metadata=f5b8757d317d0230 -C extra-filename=-f5b8757d317d0230 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps --target x86_64-unknown-netbsd -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern compiler_builtins=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps/libcompiler_builtins-5d3c8e5b32757e07.rlib --extern core=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/deps/libcore-d2548b8f6f05a2b3.rlib -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-netbsd/release/build/compiler_builtins-7c3380c919672e95/out` (exit code: 101)
[00:23:31] [RUSTC-TIMING] alloc test:false 5.895
[00:23:31] error: build failed
[00:23:31] error: build failed
[00:23:31] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-j" "4" "--release" "--locked" "--color" "always" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "--message-format" "json"
[00:23:31] expected success, got: exit code: 101
[00:23:31] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1117:9
[00:23:31] travis_fold:end:stage1-std

[00:23:31] travis_time:end:stage1-std:start=1531203412015802341,finish=1531203475107645919,duration=63091843578

---
travis_time:end:0f589ba9:start=1531203475778754059,finish=1531203475785643246,duration=6889187
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:18cb48e3
$ 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:01f26fc3
$ 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 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 10, 2018
@alexcrichton
Copy link
Member

I believe that's rust-lang/libc#1037

@Amanieu
Copy link
Member Author

Amanieu commented Jul 10, 2018

I updated the libc submodule to include that change.

@alexcrichton
Copy link
Member

@bors: r+ delegate=Amanieu

@bors
Copy link
Contributor

bors commented Jul 10, 2018

✌️ @Amanieu can now approve this pull request

@bors
Copy link
Contributor

bors commented Jul 10, 2018

📌 Commit d190482666cb031a04ef9067333dec55af380843 has been approved by alexcrichton

@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 10, 2018
@malbarbo
Copy link
Contributor

@Amanieu you can r+ now.

@Amanieu
Copy link
Member Author

Amanieu commented Jul 11, 2018

@bors r+

@alexcrichton
Copy link
Member

Thanks for tracking that down @Amanieu! Feel free to update libc and re-approve when the libc PR goes through

@Amanieu
Copy link
Member Author

Amanieu commented Jul 12, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Jul 12, 2018

📌 Commit 3ad6ff5 has been approved by Amanieu

@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 12, 2018
@bors
Copy link
Contributor

bors commented Jul 13, 2018

⌛ Testing commit 3ad6ff5 with merge a6b301ecdd80bca567adfc4fef5c1107b4ce6152...

@bors
Copy link
Contributor

bors commented Jul 13, 2018

💔 Test failed - status-travis

@rust-highfive
Copy link
Collaborator

The job dist-x86_64-musl 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:53:14] ---- [run-pass] run-pass/panic-runtime/link-to-abort.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/link-to-abort.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.link_to_abort0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.link_to_abort1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/panic-runtime/abort-link-to-unwinding-crates.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] warning: unused variable: `me`
[00:53:14]   --> /checkout/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs:24:9
[00:53:14]    |
[00:53:14] 24 |     let me = args.next().unwrap();
[00:53:14]    |         ^^ help: consider using `_me` instead
[00:53:14]    = note: #[warn(unused_variables)] on by default
[00:53:14] 
[00:53:14] 
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates10-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates11-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates12-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates13-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates14-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates15-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates2-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates3-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates4-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates5-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates6-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates7-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates8-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates9-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary/libexit_success_if_unwind.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/panic-runtime/abort.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/abort.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] warning: unused variable: `me`
[00:53:14]   --> /checkout/src/test/run-pass/panic-runtime/abort.rs:29:9
[00:53:14]    |
[00:53:14] 29 |     let me = args.next().unwrap();
[00:53:14]    |         ^^ help: consider using `_me` instead
[00:53:14]    = note: #[warn(unused_variables)] on by default
[00:53:14] 
[00:53:14] 
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort10-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort11-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort12-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort13-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort14-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort15-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort2-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort3-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort4-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort5-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort6-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort7-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort8-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort9-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/u128.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/u128.rs" "--target=x86_64-unknown-linux-musl" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-Z" "borrowck=compare" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1280-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1281-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12810-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12811-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12812-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1282-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1283-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1284-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1285-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1286-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1287-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1288-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1289-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-90fc31f12cb0f418.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libterm-b5850cd4b401f301.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-ee1ed08213c2947b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-95c67d05470cf7fd.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] test result: FAILED. 3030 passed; 4 failed; 12 ignored; 0 measured; 0 filtered out
[00:53:14] 
[00:53:14] 
[00:53:14] 
[00:53:14] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/run-pass" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass" "--stage-id" "stage2-x86_64-unknown-linux-musl" "--mode" "run-pass" "--target" "x86_64-unknown-linux-musl" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--linker" "/musl-x86_64/bin/musl-gcc" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:53:14] 
[00:53:14] 
[00:53:14] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target x86_64-unknown-linux-musl
[00:53:14] Build completed unsuccessfully in 0:50:41
---
travis_time:end:124d700e:start=1531453165301266795,finish=1531453165307716287,duration=6449492
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:03dccd82
$ 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:06ef0d11
$ 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)

@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 13, 2018
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-musl 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:53:14] ---- [run-pass] run-pass/panic-runtime/link-to-abort.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/link-to-abort.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.link_to_abort0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.link_to_abort1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/link-to-abort/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/panic-runtime/abort-link-to-unwinding-crates.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] warning: unused variable: `me`
[00:53:14]   --> /checkout/src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs:24:9
[00:53:14]    |
[00:53:14] 24 |     let me = args.next().unwrap();
[00:53:14]    |         ^^ help: consider using `_me` instead
[00:53:14]    = note: #[warn(unused_variables)] on by default
[00:53:14] 
[00:53:14] 
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates10-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates11-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates12-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates13-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates14-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates15-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates2-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates3-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates4-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates5-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates6-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates7-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates8-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.abort_link_to_unwinding_crates9-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort-link-to-unwinding-crates/auxiliary/libexit_success_if_unwind.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/panic-runtime/abort.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/panic-runtime/abort.rs" "--target=x86_64-unknown-linux-musl" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-C" "panic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] warning: unused variable: `me`
[00:53:14]   --> /checkout/src/test/run-pass/panic-runtime/abort.rs:29:9
[00:53:14]    |
[00:53:14] 29 |     let me = args.next().unwrap();
[00:53:14]    |         ^^ help: consider using `_me` instead
[00:53:14]    = note: #[warn(unused_variables)] on by default
[00:53:14] 
[00:53:14] 
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort10-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort11-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort12-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort13-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort14-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort15-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort2-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort3-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort4-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort5-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort6-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort7-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort8-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.abort9-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/panic-runtime/abort/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "-Wl,--start-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-bd7ffe73b455c8a8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] ---- [run-pass] run-pass/u128.rs stdout ----
[00:53:14] 
[00:53:14] error: compilation failed!
[00:53:14] status: exit code: 101
[00:53:14] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-pass/u128.rs" "--target=x86_64-unknown-linux-musl" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-Clinker=/musl-x86_64/bin/musl-gcc" "-Z" "borrowck=compare" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/auxiliary"
[00:53:14] ------------------------------------------
[00:53:14] 
[00:53:14] ------------------------------------------
[00:53:14] stderr:
[00:53:14] stderr:
[00:53:14] ------------------------------------------
[00:53:14] error: linking with `/musl-x86_64/bin/musl-gcc` failed: exit code: 1
[00:53:14]   |
[00:53:14]   = note: "/musl-x86_64/bin/musl-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-Wl,-(" "-m64" "-nostdlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1280-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1281-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12810-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12811-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u12812-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1282-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1283-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1284-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1285-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1286-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1287-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1288-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.u1289-317d481089b8c8fe83113de504472633.rs.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/a.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/u128/auxiliary" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_jemalloc-86bc1dafabb3ade8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-90fc31f12cb0f418.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libterm-b5850cd4b401f301.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-ee1ed08213c2947b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-a7c006ac4b175409.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-95c67d05470cf7fd.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-272400c19790dda3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc_system-577d33836a2c6d2e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-1bbad065154a9ba5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-aba6f99bdb657419.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib" "-static" "-Wl,-rpath,/checkout/obj/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" "-Wl,-)"
[00:53:14]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-b79a5ad26413def1.rlib(compiler_builtins-b79a5ad26413def1.compiler_builtins3-97bb45e2830a704fdf81cc410f151e0.rs.rcgu.o): In function `__udivti3':
[00:53:14]           /checkout/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/src/int/udiv.rs:250: multiple definition of `__udivti3'
[00:53:14]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-b86f4b7e7a1807a3.rlib(_udivdi3.o):(.text+0x0): first defined here
[00:53:14]           
[00:53:14] 
[00:53:14] error: aborting due to previous error
[00:53:14] 
---
[00:53:14] test result: FAILED. 3030 passed; 4 failed; 12 ignored; 0 measured; 0 filtered out
[00:53:14] 
[00:53:14] 
[00:53:14] 
[00:53:14] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-musl/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/run-pass" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass" "--stage-id" "stage2-x86_64-unknown-linux-musl" "--mode" "run-pass" "--target" "x86_64-unknown-linux-musl" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--linker" "/musl-x86_64/bin/musl-gcc" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-musl/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:53:14] 
[00:53:14] 
[00:53:14] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target x86_64-unknown-linux-musl
[00:53:14] Build completed unsuccessfully in 0:50:41
---
travis_time:end:124d700e:start=1531453165301266795,finish=1531453165307716287,duration=6449492
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:03dccd82
$ 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:06ef0d11
$ 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 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 13, 2018
@Amanieu
Copy link
Member Author

Amanieu commented Jul 13, 2018

Hmm, so apparently just linking in libgcc leads to duplicated symbols with the ones in compiler-builtins, which causes a linker error.

Any ideas?

@alexcrichton
Copy link
Member

Hm I'm not sure how to solve that :(

I thought this was tested ahead of time though to work?

@Amanieu
Copy link
Member Author

Amanieu commented Jul 13, 2018

I only tested the aarch64 musl toolchain, which worked fine. It seems that the x86_64 one is failing.

Maybe we should just include the needed symbols directly in compiler-builtins?

@alexcrichton
Copy link
Member

We can, yes, but I think this is likely to eventually bite us for aarch64, no?

@Amanieu
Copy link
Member Author

Amanieu commented Jul 13, 2018

Not really. This is the issue for aarch64: rust-lang/compiler-builtins#201
If we just add the __addtf3, __subtf3 and __multf3 builtins then it will be enough to fix the bug.

Another possibility would be to mark all the builtins in compiler-builtins as weak, which will resolve the linking issue since it will use the version from libgcc instead in all cases.

@alexcrichton
Copy link
Member

We may want to just have aarch64 specific build logic in that case (vendored into this repository) which statically links libgcc but a stripped down version (one that we don't ship as well). That would only contain the objects needed to get libc iteslf linking and compiling correctly, and it'd only be intrinsics that aren't already provided by compiler-builtins. Is that possible?

@Amanieu
Copy link
Member Author

Amanieu commented Jul 13, 2018

This feels very fragile. What about other architectures that may depend on libgcc functions?

I had a quick look at the musl source code, the only other architectures which need libgcc support for long double are mips64 and s390x, but we don't currently have musl targets for those.

FWIW, the reason that compiler-rt includes support for many builtins that are never called by LLVM is for link-time compatibility with GCC-generated code. Maybe we should be doing the same with compiler-builtins?

@Amanieu
Copy link
Member Author

Amanieu commented Jul 13, 2018

Looking at aarch64 musl, it calls all of the following long double builtins:

__addtf3
__divtf3
__multf3
__subtf3
__eqtf2
__extenddftf2
__extendsftf2
__getf2
__gttf2
__letf2
__lttf2
__netf2

It is purely by coincidence that when we link to libc we only need 3 of these for a small test program.

@alexcrichton
Copy link
Member

It's true that it's fragile but I'm not really sure if there's a better solution here? I'm up for whatever if it's more robust

@stokhos
Copy link

stokhos commented Jul 21, 2018

Ping from triage! @Amanieu we haven't heard from you for a while, will you have time to work on this PR?

@Amanieu
Copy link
Member Author

Amanieu commented Jul 21, 2018

I think that we will have to revert the libc changes and try another approach. I'm closing this PR.

@Amanieu Amanieu closed this Jul 21, 2018
bors added a commit to rust-lang/libc that referenced this pull request Jul 22, 2018
Revert "Link to libgcc when statically linking musl"

This causes linker errors due to duplicated symbols. See rust-lang/rust#52157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants