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 : Type Unsized #22465

Closed
mark3982 opened this issue Feb 17, 2015 · 5 comments
Closed

LLVM Assertion : Type Unsized #22465

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

Comments

@mark3982
Copy link

rustc 1.0.0-dev (e29f42025 2015-02-11 17:59:37 +0000)
rustc: /mnt/host/kmcg3413.net/rust/src/llvm/lib/IR/DataLayout.cpp:655: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
@dotdash
Copy link
Contributor

dotdash commented Feb 17, 2015

I can't tell for sure because there's no code sample, but this might be the same problem as #21533

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

I do not have time at the moment to further reduce this, and I hate to link a ton of code, but just because it might really be useful to someone to reproduce this error I am linking the source that will produce the error on my machine.

https://www.dropbox.com/s/x0fz07ywt8wh12j/droid_ffi_21.rs?dl=0

The offending line is 1250. If you comment that out it will not abort. Also, that line is incorrect. I was generating the bindings incorrectly, so this problem is no longer holding my project up!

But, like I said, if someone really needs to fix this bug that there should reproduce it.

@GyrosOfWar
Copy link

I've encountered the same error myself, commenting out line 111 in that file stops it from happening:
https://github.com/GyrosOfWar/sickness-sim-rs/blob/7af8adee48ed5d243008f9993cce7529bf94add9/src/quadtree.rs#L111

edit: I'm using rustc 1.0.0-nightly (b63cee4a1 2015-02-14 17:01:11 +0000)

@tamird
Copy link
Contributor

tamird commented Apr 22, 2015

Hi @kmcallister, @GyrosOfWar - do you guys have an example of this with otherwise-compiling code?

@arielb1
Copy link
Contributor

arielb1 commented Oct 27, 2015

looks like a duplicate of #19001

@arielb1 arielb1 closed this as completed Oct 27, 2015
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

6 participants