Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLLVM 5.0 Tracking Issue #43370
Comments
This comment has been minimized.
This comment has been minimized.
|
cc @nagisa, @michaelwoerister, @arielb1, @eddyb: You have been recommend as familiar with the rust llvm wrapper, would one of you mind looking into the attributes changes? |
TimNN
self-assigned this
Jul 21, 2017
This comment has been minimized.
This comment has been minimized.
|
With #43387 looks like rustc can bootstrap on x86_64-unknown-linux-gnu, but there's a lot of test failures. A full stage2 test run has tons of errors, lots of compiler segfaults. A stage1 test run has much fewer errors:
|
This comment has been minimized.
This comment has been minimized.
|
@eddyb indicated on IRC that this function call may be responsible for the |
This comment has been minimized.
This comment has been minimized.
|
I've filed https://bugs.llvm.org/show_bug.cgi?id=33883 related to the |
This comment has been minimized.
This comment has been minimized.
|
So LLVM got even worse (the current implementation sometimes creates an The proper solution here at this point is to produce a pointer to every single closure capture (which means loading the respective pointer from the environment, if the capture is already by-ref), and then use Using Which means we need one But with one |
This comment has been minimized.
This comment has been minimized.
|
The
Do you think that this may have regressed in upstream LLVM? |
This comment has been minimized.
This comment has been minimized.
|
I think I fixed |
This comment has been minimized.
This comment has been minimized.
|
Edit: Nevermind this comment, those tests are expected to fail on stage 1. Original commentFor a stage 1 test run, I get the same failures as @alexcrichton, for compile-fail proc macro derive:
I'm not sure about the initial panic message, but the "failed to initiate panic" seems kind of bad ( For
That also seems bad. |
This comment has been minimized.
This comment has been minimized.
|
@TimNN oh no need to worry about those, that's a benign failure. Procedural macros don't work in stage1 and not all tests are flagged as |
bors
added a commit
that referenced
this issue
Jul 23, 2017
Mark-Simulacrum
added
A-LLVM
C-enhancement
labels
Jul 23, 2017
This comment has been minimized.
This comment has been minimized.
|
Filed an upstream bug for the segfaults in rustc I've been seeing. (segfaults were happening on all platforms) |
This comment has been minimized.
This comment has been minimized.
Sure. That's probably https://bugs.llvm.org/show_bug.cgi?id=33470 |
This comment has been minimized.
This comment has been minimized.
|
Ok thanks @arielb1! Do you think it'd be safe to ignore that test during the LLVM upgrade in favor of that upstream bug? Or do you think we should block the upgrade on fixing that? |
This comment has been minimized.
This comment has been minimized.
|
The bug looks quite bad. Let's ignore it for now to see all the other bugs. I bet I can get it fixed first. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 24, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 25, 2017
This comment has been minimized.
This comment has been minimized.
|
This tree of commits passes |
This comment has been minimized.
This comment has been minimized.
|
I've done a full travis run against a tree with a number of workarounds, and I believe all open issues are listed under "Open Tasks" above. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 28, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 30, 2017
alexcrichton
added a commit
that referenced
this issue
Jul 30, 2017
This comment has been minimized.
This comment has been minimized.
|
@eddyb commenting out the call site you indicated fixes the debuginfo related asserts in LLVM, but it doesn't actually cause any tests in Rust to fail. Do you know of an example of a test that would fail if we don't emit that debuginfo? |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton Erm, that means we don't have tests for closures... without that call no closure captures can be seen from a debugger as a local variable (from within the closure body). |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 30, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 30, 2017
bors
added a commit
that referenced
this issue
Feb 5, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 6, 2018
bors
added a commit
that referenced
this issue
Feb 6, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 6, 2018
bors
added a commit
that referenced
this issue
Feb 6, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 7, 2018
bors
added a commit
that referenced
this issue
Feb 7, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 7, 2018
bors
added a commit
that referenced
this issue
Feb 7, 2018
alexcrichton
added a commit
that referenced
this issue
Feb 7, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 8, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 8, 2018
bors
added a commit
that referenced
this issue
Feb 8, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 8, 2018
bors
added a commit
that referenced
this issue
Feb 9, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2018
bors
added a commit
that referenced
this issue
Feb 9, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 10, 2018
bors
added a commit
that referenced
this issue
Feb 10, 2018
bors
closed this
in
#47828
Feb 10, 2018
This comment has been minimized.
This comment has been minimized.
|
This will first appear in Rust 1.25, correct? |
This comment has been minimized.
This comment has been minimized.
|
It will actually be LLVM 6, but yes, starting in 1.25. |
raimue
added a commit
to raimue/macports-ports
that referenced
this issue
Mar 27, 2018
g5pw
added a commit
to macports/macports-ports
that referenced
this issue
Mar 28, 2018
This comment has been minimized.
This comment has been minimized.
gaming-hacker
commented
Apr 7, 2018
|
What's the status on implementing fixes for llvm-6.0? |
This comment has been minimized.
This comment has been minimized.
|
@gaming-hacker llvm 6.0 support was already shipped in 1.25. |
This comment has been minimized.
This comment has been minimized.
gaming-hacker
commented
Apr 14, 2018
•
|
@martell, thanks my bad. there was a nagging bug in Macports i was trying to nail down. |
TimNN commentedJul 20, 2017
•
edited by BatmanAoD
The time has come again, LLVM is releasing 5.0 soon and Rust wants to / needs to follow.
I have started work on the upgrade in these branches:
rust-lang/rust: https://github.com/alexcrichton/rust/tree/llvm50rust-lang/llvm: https://github.com/rust-lang/llvm/tree/rust-llvm-2017-07-20rust-lang/compiler-rt: https://github.com/rust-lang/compiler-rt/tree/rust-2017-07-20rust-lang-nursery/compiler-builtins: https://github.com/rust-lang-nursery/compiler-builtins/tree/llvm50Open tasks
JSBackendas a targetCompleted tasks
Next steps:
rustllvmto compile (error log)Current issues:
SynchronizationScopechanged / was renamed? (#43387)LLVMMetadataRefwas added, this can / should likely replaceLLVMRustMetadataRef(#43387)createPointerTypegained a new parameter (#43387)createNameSpacelost some parameters (#43387)DebugLocwas replaced byDiagnosticLocationin LLVMDiagnosticInfo(#43387)x86_64-gnuimagetemporary workaround) - commit1, commit2upstream buglocal fix/workaroundupstream fixupstream buglocal workaroundupstream fixcodegen/issue-37945.rs- info belowignore it)std::to_stringreferencesrun-make/sanitizer-leak- apparently hit a fatal error when run locally?--privilegedneeded when running the docker container #43536run-make/simd-ffidebuginfo-gdbtest failures - #47610All but the first issues seem straight forward to fix, so I'll try to send PRs for those soon.