-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
LLVM DIG assertion when running make check
with -g
#12191
Comments
Flashing the big, bright bat signal for @michaelwoerister :) |
That's interesting. We don't generate any global variable info at the moment. I'll try to reproduce this. |
I can't reproduce this. How exactly do you compile and run the tests? I tried with |
export RUSTFLAGS=-g Ubuntu on x64. No fancy cross compiling or anything. I don't think I needed to anything other than that to repro. Maybe need make clean? I could repro on master and a branch. I'll try again later with today's pull just to make sure it sill happens. |
I tried to repro this today in a clean repo (on a new machine) - make chek still fails, but no longer with DIG errors. I get error: compilation failed!
And a few other errors. I'll file a new issue for the general case. I think we should maybe leave this one open for now, since I suspect once we fix those errors, the DIG ones may reappear. |
This error doesn't occur for me anymore. There is another bug related to LTO but that is already document in #13681. With that out of the way, |
make check fails when run with -g with error:
llvm-extract: /home/ncameron/rust2/src/llvm/lib/Transforms/IPO/StripSymbols.cpp:339: virtual bool {anonymous}::StripDeadDebugInfo::runOnModule(llvm::Module&): Assertion `DIG.Verify() && "DIG must verify as DIGlobalVariable."' failed.
In test codegen/iterate-over-array.rs
The text was updated successfully, but these errors were encountered: