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

rustc fails with "Assertion `Ty == resolve(Ty->getRef()) && "type was not uniqued, possible ODR violation." #34649

Closed
apanda opened this issue Jul 4, 2016 · 3 comments

Comments

@apanda
Copy link

apanda commented Jul 4, 2016

Hi
When trying to build a project with Rust nightly (rustc 1.11.0-nightly (696b703 2016-07-03)), I get the LLVM ODR violation exception.

For my project I set lto=true and debug=true, turning either of them off seems to resolve the issue (i.e., any case where only lto=true or only debug=true builds fine). Furthermore, building rust from scratch using flags --enable-optimize --disable-valgrind --disable-docs produces a rustc that does not suffer from this failure.

I am happy to run any diagnostics that might help. I have also packaged a reproducible version at https://hub.docker.com/r/apanda/rustc-build-fail/, to hit the failure just use the following steps (assuming you are on Linux and have Docker installed, this can be adopted to both OS X and Windows as appropriate):

sudo docker pull apanda/rustc-build-fail
sudo docker run -ti apanda/rustc-build-fail # At this time a bash shell should show up
cd /opt/netbricks/test/framework-test
cargo build --release

I tried debugging this but the fact that it doesn't show up when I build rust made that a bit hard.

Thank you!!

Panda

@jonas-schievink
Copy link
Contributor

Looks like #25270

@apanda
Copy link
Author

apanda commented Jul 4, 2016

Ah, sorry I mistakenly throught #25270 was closed, sorry for the duplicate bug.

@luqmana
Copy link
Member

luqmana commented Jul 5, 2016

Closing as dupe of #25270. Feel free to reopen if it's not.

@luqmana luqmana closed this as completed Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants