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

LLVM assertion error (llvm/lib/IR/Instructions.cpp:1086) #21275

Closed
Ericson2314 opened this issue Jan 17, 2015 · 9 comments
Closed

LLVM assertion error (llvm/lib/IR/Instructions.cpp:1086) #21275

Ericson2314 opened this issue Jan 17, 2015 · 9 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Ericson2314
Copy link
Contributor

Sorry, but I have no idea how to reduce this.

git clone https://github.com/RustOS-Fork-Holding-Ground/rust-net
cd rust-net/network
cargo build
Compiling rust-net-network v0.0.1 (file:///winhome/John/Code/git/rust-net/network)
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:1086: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
Could not compile `rust-net-network`.
@tomjakubowski
Copy link
Contributor

Can you post the SHA of the commit when you observed this for future reference?

@Ericson2314
Copy link
Contributor Author

Gladly, 170c4399e614fe599c3d41306b3429ca8b3b68c6. I just had the idea of emitting byte code and then running llc on that, to try to get a better error message.

@Ericson2314
Copy link
Contributor Author

No such, I was hoping rustc could produce IR (meant that, not bytecode) entirely in rustland, but alas that is not the case.

@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jan 17, 2015
@jdm
Copy link
Contributor

jdm commented Jan 17, 2015

What's the output of rustc --version?

@Ericson2314
Copy link
Contributor Author

Not sure. I know it was some nightly not more than two days old at the time, but that computer ran out of batteries and I don't have its charger with me.

On a different computer using latest rust nightly I hit the same error. That rustc -vV is:

rustc 1.0.0-nightly (ed530d7a3 2015-01-16 22:41:16 +0000)
binary: rustc
commit-hash: ed530d7a3b67989047e6fe61fe101b9d8158585f
commit-date: 2015-01-16 22:41:16 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly

@dotdash
Copy link
Contributor

dotdash commented Feb 28, 2015

170c4399e614fe599c3d41306b3429ca8b3b68c6 doesn't seem to be present in the repo when I use the given clone command.

I suspect this is the same issue as #22346 which is fixed by now. Can you confirm that this is fixed?

@frewsxcv
Copy link
Member

@Ericson2314 Are you able to reproduce this issue with the latest beta Rust?

@steveklabnik
Copy link
Member

Given that we don't have a way to reproduce this, I'm going to give it a close. If anyone can, please let me know!

@Ericson2314
Copy link
Contributor Author

Sorry the code needs to be updated a lot to compile for post 1.0. When I get around to that, I'll report back here. But yeah this is probably fixed by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

8 participants