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

Make globals with private linkage unnamed. Fixes #50862. #51007

Merged
merged 2 commits into from
Aug 7, 2018

Conversation

AstralSorceress
Copy link
Contributor

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 23, 2018
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 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:13]    Compiling rustc_tsan v0.0.0 (file:///checkout/src/librustc_tsan)
[00:24:00] error: Could not compile `core`.
[00:24:00] 
[00:24:00] Caused by:
[00:24:00]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name core libcore/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=9b2cf3afb370a473 -C extra-filename=-9b2cf3afb370a473 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps` (signal: 11, SIGSEGV: invalid memory reference)
[00:24:00] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "--message-format" "json"
[00:24:00] expected success, got: exit code: 101
[00:24:00] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
[00:24:00] travis_fold:end:stage1-std

[00:24:00] travis_time:end:stage1-std:start=1527105181756462254,finish=1527105243989398103,duration=62232935849


[00:24:00] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:24:00] Build completed unsuccessfully in 0:18:49
[00:24:00] make: *** [all] Error 1
[00:24:00] Makefile:28: recipe for target 'all' failed

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:00748137
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

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)

@nikic
Copy link
Contributor

nikic commented May 24, 2018

I'm not sure if doing this unconditionally (i.e. even under --emit=llvm-ir for example) is a good idea. While @byte_str is not terribly informative, @vtable for example does make it more obvious what a global is for.

@oli-obk
Copy link
Contributor

oli-obk commented May 24, 2018

r? @nagisa

@rust-highfive rust-highfive assigned nagisa and unassigned nikomatsakis May 24, 2018
/// Use this function when you intend to define a global without a name.
pub fn define_private_global(cx: &CodegenCx, ty: Type) -> ValueRef {
unsafe {
llvm::LLVMRustGetOrInsertGlobal(cx.llmod, ptr::null(), ty.to_ref())
Copy link
Member

Choose a reason for hiding this comment

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

This should probably also set the appropriate linkage, so that the users of this function don’t need to do that.

@nagisa
Copy link
Member

nagisa commented May 24, 2018

@AstralSorcerer can you make elision of names addr_of conditional over Session::fewer_names()?

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 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:21:47]    Compiling rustc_msan v0.0.0 (file:///checkout/src/librustc_msan)
[00:22:38] error: Could not compile `core`.
[00:22:38] 
[00:22:38] Caused by:
[00:22:38]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name core libcore/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=9b2cf3afb370a473 -C extra-filename=-9b2cf3afb370a473 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps` (signal: 11, SIGSEGV: invalid memory reference)
[00:22:38] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "--message-format" "json"
[00:22:38] expected success, got: exit code: 101
[00:22:38] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
[00:22:38] travis_fold:end:stage1-std

[00:22:38] travis_time:end:stage1-std:start=1527182358876959248,finish=1527182424845474199,duration=65968514951


[00:22:38] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:22:38] Build completed unsuccessfully in 0:18:05
[00:22:38] Makefile:28: recipe for target 'all' failed
[00:22:38] make: *** [all] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0297630d
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

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)

@nagisa
Copy link
Member

nagisa commented May 25, 2018

@bors r+

@bors
Copy link
Contributor

bors commented May 25, 2018

📌 Commit f464e66 has been approved by nagisa

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

bors commented May 25, 2018

⌛ Testing commit f464e66ecf75032a873173e609af7a428cc2d75b with merge 087dd0b6a5feb6349368ae17efe6433bc6e3867e...

@bors
Copy link
Contributor

bors commented May 25, 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 May 25, 2018
@kennytm
Copy link
Member

kennytm commented May 25, 2018

i686-msvc-2 failed at issue-38226.rs.

---- [run-pass] run-pass\issue-38226.rs stdout ----
error: compilation failed!
status: exit code: 3
command: PATH="C:\projects\rust\build\i686-pc-windows-msvc\stage2\bin;C:\projects\rust\build\i686-pc-windows-msvc\llvm\build\bin;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\x86;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;C:\projects\rust\build\i686-pc-windows-msvc\stage0-tools\i686-pc-windows-msvc\release\deps;C:\projects\rust\build\i686-pc-windows-msvc\stage0-sysroot\lib\rustlib\i686-pc-windows-msvc\lib;C:\Program Files (x86)\Inno Setup 5;C:\Python27;C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer;C:\Tools\GitVersion;C:\Tools\PsTools;C:\Program Files\Git LFS;C:\Program Files (x86)\Subversion\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Tools\WebDriver;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\Ruby193\bin;C:\Tools\NUnit\bin;C:\Tools\xUnit;C:\Tools\MSpec;C:\Tools\Coverity\bin;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Python27;C:\Program Files\nodejs;C:\Program Files (x86)\iojs;C:\Program Files\iojs;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Tools\NuGet;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Apache\Maven\bin;C:\Python27\Scripts;C:\Tools\NUnit3;C:\Program Files\Mercurial;C:\Program Files\dotnet;C:\Tools\curl\bin;C:\Program Files\Amazon\AWSCLI;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140;C:\Tools\vcpkg;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\erl9.2\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files (x86)\Yarn\bin;C:\Program Files (x86)\NSIS;C:\Tools\Octopus;C:\Program Files\PowerShell\6.0.2;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\nodejs;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\LLVM\bin;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\AppVeyor\BuildAgent;C:\projects\rust;C:\projects\rust\handle" "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\stage2\\bin\\rustc.exe" "C:\\projects\\rust\\src/test\\run-pass\\issue-38226.rs" "--target=i686-pc-windows-msvc" "-C" "prefer-dynamic" "-o" "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\test\\run-pass\\issue-38226\\a.exe" "-Crpath" "-O" "-Zunstable-options" "-Lnative=C:\\projects\\rust\\build\\i686-pc-windows-msvc\\native\\rust-test-helpers" "-Cno-prepopulate-passes" "-L" "C:\\projects\\rust\\build\\i686-pc-windows-msvc\\test\\run-pass\\issue-38226\\auxiliary"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
thread '[run-pass] run-pass\issue-38226.rs' panicked at 'explicit panic', tools\compiletest\src\runtest.rs:3053:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.

@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 May 25, 2018
@AstralSorceress
Copy link
Contributor Author

ping @QuietMisdreavus

@QuietMisdreavus
Copy link
Member

...so, this is what happened when i ran the test on my Windows laptop:

image

Since i don't know much about what's going on the PR, i don't know how well this helps, but if need be i can try to dig farther by running rustc through Visual Studio to see whether i can get it to break on that assertion.

let using_thin_buffers = config.emit_bc || config.obj_is_bitcode
|| config.emit_bc_compressed || config.embed_bitcode;
let prepare_for_thin_lto = cgcx.lto == Lto::Thin || cgcx.lto == Lto::ThinLocal
|| using_thin_buffers;
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that PrepareForThinLTO also disables various unrolling / vectorization passes. That's desired if ThinLTO is actually used, but I suspect it's not what you want if we're just embedding bitcode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's probably sufficient for this case to just run the NameAnonGlobals pass (the unnamed globals are what's causing problems with the thin buffers).

Copy link
Contributor

Choose a reason for hiding this comment

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

That should indeed be sufficient. I'm wondering though why bytecode emission is still done using ThinLTOBitcodeWriter, even if ThinLTO is not used.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 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:51:10] i..............................................................................i....................
[00:51:15] ....................................................................................................
[00:51:21] ....................................................................................................
[00:51:27] ....................................................................................................
[00:51:32] ............i..................iiiiiiiii..................................................
[00:51:32] 
[00:51:32] travis_fold:start:test_ui_nll
travis_time:start:test_ui_nll
Check compiletest suite=ui mode=ui compare_mode=nll (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
[00:52:23] i..............................................................................i....................
[00:52:28] ....................................................................................................
[00:52:33] ....................................................................................................
[00:52:39] ....................................................................................................
[00:52:43] ............i.................iiiiiiiii...................................................
[00:52:43] 
[00:52:43]  finished in 71.494
[00:52:43] travis_fold:end:test_ui_nll

---
travis_time:start:test_codegen-units
Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[01:05:18] 
[01:05:18] running 39 tests
[01:05:21] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:498:22
[01:05:21] i.......i.................FFFFFiFFFFFF.
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/extern-drop-glue.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/extern-drop-glue.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-drop-glue/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/extern-drop-glue" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-drop-glue/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<cgu_extern_drop_glue::Struct[0]> @@ extern_drop_glue[Internal] extern_drop_glue-mod1[Internal]
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::LocalStruct[0]> @@ extern_drop_glue[Internal]
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::mod1[0]::LocalStruct[0]> @@ extern_drop_glue-mod1[Internal]
[01:05:21] MONO_ITEM fn extern_drop_glue::mod1[0]::user[0] @@ extern_drop_glue-mod1[External]
[01:05:21] MONO_ITEM fn extern_drop_glue::user[0] @@ extern_drop_glue[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
---
[01:05:21] ---- [codegen-units] codegen-units/partitioning/local-drop-glue.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-drop-glue.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-drop-glue/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/local-drop-glue" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-drop-glue/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<(u32, local_drop_glue::Struct[0])> @@ local_drop_glue-mod1[Internal]
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::Outer[0]> @@ local_drop_glue[Internal]
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::Struct[0]> @@ local_drop_glue[Internal] local_drop_glue-mod1[Internal]
[01:05:21] MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::mod1[0]::Struct2[0]> @@ local_drop_glue-mod1[Internal]
[01:05:21] MONO_ITEM fn local_drop_glue::mod1[0]::user[0] @@ local_drop_glue-mod1[External]
[01:05:21] MONO_ITEM fn local_drop_glue::user[0] @@ local_drop_glue[External]
[01:05:21] MONO_ITEM fn local_drop_glue::{{impl}}[0]::drop[0] @@ local_drop_glue[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] error: aborting due to previous error
[01:05:21] 
[01:05:21] 
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] 
[01:05:21] thread '[codegen-units] codegen-units/partitioning/local-drop-glue.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3096:9
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/inlining-from-extern-crate.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/inlining-from-extern-crate.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/inlining-from-extern-crate/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/inlining-from-extern-crate" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/inlining-from-extern-crate/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn cgu_explicit_inlining::always_inlined[0] @@ inlining_from_extern_crate[Internal] inlining_from_extern_crate-mod2[Internal]
[01:05:21] MONO_ITEM fn cgu_explicit_inlining::inlined[0] @@ inlining_from_extern_crate[Internal] inlining_from_extern_crate-mod1[Internal]
[01:05:21] MONO_ITEM fn inlining_from_extern_crate::mod1[0]::user[0] @@ inlining_from_extern_crate-mod1[External]
[01:05:21] MONO_ITEM fn inlining_from_extern_crate::mod2[0]::user[0] @@ inlining_from_extern_crate-mod2[External]
[01:05:21] MONO_ITEM fn inlining_from_extern_crate::user[0] @@ inlining_from_extern_crate[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread 'thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:05:21] <unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] error: aborting due to previous error
[01:05:21] 
[01:05:21] 
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] 
[01:05:21] thread '[codegen-units] codegen-units/partitioning/inlining-from-extern-crate.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3096:9
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/extern-generic.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/extern-generic.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-generic/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Zincremental=tmp/partitioning-tests/extern-generic" "-Zshare-generics=y" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-generic/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn cgu_generic_function::bar[0]<&str> @@ cgu_generic_function.volatile[External]
[01:05:21] MONO_ITEM fn cgu_generic_function::foo[0]<&str> @@ cgu_generic_function.volatile[External]
[01:05:21] MONO_ITEM fn extern_generic::mod1[0]::mod1[0]::user[0] @@ extern_generic-mod1-mod1[Internal]
[01:05:21] MONO_ITEM fn extern_generic::mod1[0]::user[0] @@ extern_generic-mod1[Internal]
[01:05:21] MONO_ITEM fn extern_generic::mod2[0]::user[0] @@ extern_generic-mod2[Internal]
[01:05:21] MONO_ITEM fn extern_generic::mod3[0]::non_user[0] @@ extern_generic-mod3[Internal]
[01:05:21] MONO_ITEM fn extern_generic::user[0] @@ extern_generic[Internal]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] error: aborting due to previous error
[01:05:21] 
[01:05:21] 
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] 
[01:05:21] thread '[codegen-units] codegen-units/partitioning/extern-generic.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3096:9
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/local-generic.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-generic.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-generic/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Zincremental=tmp/partitioning-tests/local-generic" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-generic/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn local_generic::generic[0]<&str> @@ local_generic.volatile[External]
[01:05:21] MONO_ITEM fn local_generic::generic[0]<char> @@ local_generic.volatile[External]
[01:05:21] MONO_ITEM fn local_generic::generic[0]<u32> @@ local_generic.volatile[External]
[01:05:21] MONO_ITEM fn local_generic::generic[0]<u64> @@ local_generic.volatile[External]
[01:05:21] MONO_ITEM fn local_generic::mod1[0]::mod1[0]::user[0] @@ local_generic-mod1-mod1[Internal]
[01:05:21] MONO_ITEM fn local_generic::mod1[0]::user[0] @@ local_generic-mod1[Internal]
[01:05:21] MONO_ITEM fn local_generic::mod2[0]::user[0] @@ local_generic-mod2[Internal]
[01:05:21] MONO_ITEM fn local_generic::user[0] @@ local_generic[Internal]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
---
[01:05:21] ---- [codegen-units] codegen-units/partitioning/local-inlining-but-not-all.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-inlining-but-not-all.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining-but-not-all/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/local-inlining-but-not-all" "-Zinline-in-all-cgus=no" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining-but-not-all/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn local_inlining_but_not_all::inline[0]::inlined_function[0] @@ local_inlining_but_not_all-inline[External]
[01:05:21] MONO_ITEM fn local_inlining_but_not_all::non_user[0]::baz[0] @@ local_inlining_but_not_all-non_user[External]
[01:05:21] MONO_ITEM fn local_inlining_but_not_all::user1[0]::foo[0] @@ local_inlining_but_not_all-user1[External]
[01:05:21] MONO_ITEM fn local_inlining_but_not_all::user2[0]::bar[0] @@ local_inlining_but_not_all-user2[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
[01:05:21] 
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] ------------------------------------------
[01:05:21] 
[01:05:21] thread '[codegen-units] codegen-units/partitioning/local-inlining-but-not-all.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3096:9
[01:05:21] 
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/local-inlining.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-inlining.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/local-inlining" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn local_inlining::inline[0]::inlined_function[0] @@ local_inlining-user1[Internal] local_inlining-user2[Internal]
[01:05:21] MONO_ITEM fn local_inlining::non_user[0]::baz[0] @@ local_inlining-non_user[External]
[01:05:21] MONO_ITEM fn local_inlining::user1[0]::foo[0] @@ local_inlining-user1[External]
[01:05:21] MONO_ITEM fn local_inlining::user2[0]::bar[0] @@ local_inlining-user2[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
---
[01:05:21] ---- [codegen-units] codegen-units/partitioning/local-transitive-inlining.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-transitive-inlining.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-transitive-inlining/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/local-transitive-inlining" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-transitive-inlining/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn local_transitive_inlining::direct_user[0]::foo[0] @@ local_transitive_inlining-indirect_user[Internal]
[01:05:21] MONO_ITEM fn local_transitive_inlining::indirect_user[0]::bar[0] @@ local_transitive_inlining-indirect_user[External]
[01:05:21] MONO_ITEM fn local_transitive_inlining::inline[0]::inlined_function[0] @@ local_transitive_inlining-indirect_user[Internal]
[01:05:21] MONO_ITEM fn local_transitive_inlining::non_user[0]::baz[0] @@ local_transitive_inlining-non_user[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
---
[01:05:21] ---- [codegen-units] codegen-units/partitioning/regular-modules.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/regular-modules.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/regular-modules/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Zincremental=tmp/partitioning-tests/regular-modules" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/regular-modules/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn regular_modules::bar[0] @@ regular_modules[Internal]
[01:05:21] MONO_ITEM fn regular_modules::foo[0] @@ regular_modules[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::bar[0] @@ regular_modules-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::foo[0] @@ regular_modules-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::mod1[0]::bar[0] @@ regular_modules-mod1-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::mod1[0]::foo[0] @@ regular_modules-mod1-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::mod2[0]::bar[0] @@ regular_modules-mod1-mod2[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod1[0]::mod2[0]::foo[0] @@ regular_modules-mod1-mod2[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::bar[0] @@ regular_modules-mod2[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::foo[0] @@ regular_modules-mod2[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::mod1[0]::bar[0] @@ regular_modules-mod2-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::mod1[0]::foo[0] @@ regular_modules-mod2-mod1[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::mod2[0]::bar[0] @@ regular_modules-mod2-mod2[Internal]
[01:05:21] MONO_ITEM fn regular_modules::mod2[0]::mod2[0]::foo[0] @@ regular_modules-mod2-mod2[Internal]
[01:05:21] MONO_ITEM static regular_modules::BAZ[0] @@ regular_modules[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod1[0]::BAZ[0] @@ regular_modules-mod1[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod1[0]::mod1[0]::BAZ[0] @@ regular_modules-mod1-mod1[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod1[0]::mod2[0]::BAZ[0] @@ regular_modules-mod1-mod2[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod2[0]::BAZ[0] @@ regular_modules-mod2[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod2[0]::mod1[0]::BAZ[0] @@ regular_modules-mod2-mod1[Internal]
[01:05:21] MONO_ITEM static regular_modules::mod2[0]::mod2[0]::BAZ[0] @@ regular_modules-mod2-mod2[Internal]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] 
[01:05:21] thread 'thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] <unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] 
[01:05:21] 
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] ------------------------------------------
[01:05:21] 
[01:05:21] thread '[codegen-units] codegen-units/partitioning/regular-modules.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3096:9
[01:05:21] 
[01:05:21] 
[01:05:21] ---- [codegen-units] codegen-units/partitioning/statics.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/statics.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/statics/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Zincremental=tmp/partitioning-tests/statics" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/statics/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn statics::function[0] @@ statics[External]
[01:05:21] MONO_ITEM fn statics::mod1[0]::function[0] @@ statics-mod1[External]
[01:05:21] MONO_ITEM static statics::BAR[0] @@ statics[Internal]
[01:05:21] MONO_ITEM static statics::FOO[0] @@ statics[Internal]
[01:05:21] MONO_ITEM static statics::function[0]::BAR[0] @@ statics[Internal]
[01:05:21] MONO_ITEM static statics::function[0]::FOO[0] @@ statics[Internal]
[01:05:21] MONO_ITEM static statics::mod1[0]::BAR[0] @@ statics-mod1[Internal]
[01:05:21] MONO_ITEM static statics::mod1[0]::FOO[0] @@ statics-mod1[Internal]
[01:05:21] MONO_ITEM static statics::mod1[0]::function[0]::BAR[0] @@ statics-mod1[Internal]
[01:05:21] MONO_ITEM static statics::mod1[0]::function[0]::FOO[0] @@ statics-mod1[Internal]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] warning: static item is never used: `FOO`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 19 | static FOO: u32 = 0;
[01:05:21]    |
[01:05:21]    = note: #[warn(dead_code)] on by default
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `BAR`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 22 | static BAR: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `FOO`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 27 |     static FOO: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `BAR`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 30 |     static BAR: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `FOO`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 35 |     static FOO: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `BAR`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 38 |     static BAR: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `FOO`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 43 |         static FOO: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] warning: static item is never used: `BAR`
[01:05:21]    |
[01:05:21]    |
[01:05:21] 46 |         static BAR: u32 = 0;
[01:05:21] 
[01:05:21] 
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] 
[01:05:21] error: aborting due to previous error
[01:05:21] 
---
[01:05:21] ---- [codegen-units] codegen-units/partitioning/shared-generics.rs stdout ----
[01:05:21] 
[01:05:21] error: compilation failed!
[01:05:21] status: exit code: 101
[01:05:21] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/shared-generics.rs" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/shared-generics/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Zshare-generics=yes" "-Zincremental=tmp/partitioning-tests/shared-generics-exe" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/shared-generics/auxiliary"
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] MONO_ITEM fn shared_generics::foo[0] @@ shared_generics[External]
[01:05:21] MONO_ITEM fn shared_generics_aux::generic_fn[0]<u16> @@ shared_generics_aux.volatile[External]
[01:05:21] ------------------------------------------
[01:05:21] stderr:
[01:05:21] ------------------------------------------
[01:05:21] ------------------------------------------
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:05:21] thread '<unnamed>' panicked at 'assertion failed: addpass("name-anon-globals")', librustc_codegen_llvm/back/write.rs:557:17
[01:05:21] error: aborting due to worker thread failure
[01:05:21] error: aborting due to previous error
[01:05:21] 
[01:05:21] 
[01:05:21] ------------------------------------------
---
[01:05:21] test result: FAILED. 25 passed; 11 failed; 3 ignored; 0 measured; 0 filtered out
[01:05:21] 
[01:05:21] 
[01:05:21] 
[01:05:21] 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-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/codegen-units" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "codegen-units" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-3.9/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "3.9.1\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[01:05:21] 
[01:05:21] 
[01:05:21] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:05:21] Build completed unsuccessfully in 0:16:31
[01:05:21] Build completed unsuccessfully in 0:16:31
[01:05:21] Makefile:58: recipe for target 'check' failed
[01:05:21] make: *** [check] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0fe0f7c0
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

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)

@nagisa
Copy link
Member

nagisa commented Jun 11, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Jun 11, 2018

📌 Commit e146f3c has been approved by nagisa

@bors bors removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 11, 2018
@pietroalbini pietroalbini removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 30, 2018
@pietroalbini
Copy link
Member

Ping from triage @AstralSorcerer! It's been a while since we heard from you, will you have time to work on this again?

@AstralSorceress
Copy link
Contributor Author

AstralSorceress commented Jul 30, 2018 via email

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

The job x86_64-gnu-llvm-5.0 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:03:36] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:03:36] tidy error: /checkout/src/librustc_codegen_llvm/back/write.rs:591: line longer than 100 chars
[00:03:36] tidy error: /checkout/src/librustc_codegen_llvm/back/write.rs:593: line longer than 100 chars
[00:03:36] tidy error: /checkout/src/librustc_codegen_llvm/back/write.rs:596: line longer than 100 chars
[00:03:37] some tidy checks failed
[00:03:37] 
[00:03:37] 
[00:03:37] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:03:37] 
[00:03:37] 
[00:03:37] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:03:37] Build completed unsuccessfully in 0:00:45
[00:03:37] Build completed unsuccessfully in 0:00:45
[00:03:37] make: *** [tidy] Error 1
[00:03:37] Makefile:79: recipe for target 'tidy' failed

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:05a6e497
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_time:end:06d22d18:start=1533096678361193571,finish=1533096678366847778,duration=5654207
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:01954ff6
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:10ffdfa2
travis_time:start:10ffdfa2
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:1ef3c97e
$ 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)

Emitting LLVM bitcode uses ThinLTOBuffers, so we need to prepare for
thin LTO or we will likely cause errors in LLVM.
@nagisa
Copy link
Member

nagisa commented Aug 6, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Aug 6, 2018

📌 Commit 3da7c65 has been approved by nagisa

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

bors commented Aug 6, 2018

⌛ Testing commit 3da7c65 with merge 15e6466dbe623959e65ac3d456ccda44671e67fb...

@bors
Copy link
Contributor

bors commented Aug 6, 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 Aug 6, 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:26:02] [RUSTC-TIMING] proc_macro test:false 11.486
[00:26:02]    Compiling syntax_ext v0.0.0 (file:///checkout/src/libsyntax_ext)
[00:26:29] [RUSTC-TIMING] syntax_ext test:false 26.959

Broadcast message from root@travis-job-0d17746e-2f5c-4960-8cec-cf35752378cc
 (unknown) at 16:57 ...
The system is going down for power off NOW!
[00:31:38] 
[00:31:38] Session terminated, terminating shell... ...terminated.

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 143.
travis_time:start:0422ce37
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

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 Aug 6, 2018

@bors retry travis-ci/travis-ci#4924

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

bors commented Aug 7, 2018

⌛ Testing commit 3da7c65 with merge 11a9024...

bors added a commit that referenced this pull request Aug 7, 2018
Make globals with private linkage unnamed. Fixes #50862.

cc @oli-obk @nagisa
@bors
Copy link
Contributor

bors commented Aug 7, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nagisa
Pushing 11a9024 to master...

@bors bors merged commit 3da7c65 into rust-lang:master Aug 7, 2018
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.