Skip to content

Error building rust with -g #20798

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

Closed
Manishearth opened this issue Jan 9, 2015 · 5 comments · Fixed by #21970
Closed

Error building rust with -g #20798

Manishearth opened this issue Jan 9, 2015 · 5 comments · Fixed by #21970
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)

Comments

@Manishearth
Copy link
Member

rustc: /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/llvm/lib/IR/DebugInfo.cpp:159: uint64_t llvm::DIVariable::getPieceOffset() const: Assertion `isVariablePiece()' failed.
Aborted (core dumped)
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.rustc_typeck] Error 134

(I was running RUSTFLAGS="-g" CFG_RUSTC_FLAGS="-g" make -j4, since I forgot which flag works)

I get the same error even after a make clean.

@huonw huonw added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label Jan 9, 2015
@huonw
Copy link
Member

huonw commented Jan 9, 2015

cc @michaelwoerister

@michaelwoerister
Copy link
Member

Seems to be something related to the recent LLVM updates. It's on my radar.

@michaelwoerister
Copy link
Member

Update: It's likely that this particular assertion failure has been resolved by the recent LLVM update. However, I'm hitting a new error now, which seems to be a regression of #17201. I'm looking into it right now.

@michaelwoerister
Copy link
Member

👏 Alright! 👍
With a quick and dirty fix assigning debug locations to lang-time call instructions the regression is gone and isVariablePiece() assertion too. It'll take some time to implement a clean fix but then this issue should be solved.

@steveklabnik
Copy link
Member

🎊

bors added a commit that referenced this issue Feb 8, 2015
…brson

Resolves some issues caused by the recent LLVM update (which itself solved some issues).

Closes #19848
Closes #20798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants