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

Using a plugin that was built without -C prefer-dynamic causes LLVM error #28434

Closed
pczarn opened this issue Sep 16, 2015 · 4 comments
Closed
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@pczarn
Copy link
Contributor

pczarn commented Sep 16, 2015

I forgot to add plugin = true to Cargo.toml and got this when building an external test:

: CommandLine Error: Option 'interpreter-print-volatile' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

For reference, this is an incorrect way to build a plugin:
rustc src/lib.rs --crate-type dylib -g
This is added by plugin = true:
rustc src/lib.rs --crate-type dylib -C prefer-dynamic -g --test -C metadata=7ede684f643fceb6 -C extra-filename=-7ede684f643fceb6

@pczarn pczarn changed the title Using a plugin that was built without prefer-dynamic causes LLVM error Using a plugin that was built without -C prefer-dynamic causes LLVM error Sep 16, 2015
@steveklabnik steveklabnik added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-frontend Area: Compiler frontend (errors, parsing and HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Sep 28, 2015
@steveklabnik
Copy link
Member

Is there any way we can get a full reproduction here? Does this work with any plugin code at all?

@Yamakaky
Copy link
Contributor

I have a similar problem with bindgen_plugin.

@Mark-Simulacrum
Copy link
Member

Could someone provide a quick summary of how to reproduce this? Otherwise I think we should close.

@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. and removed C-bug Category: This is a bug. labels Jul 22, 2017
@steveklabnik
Copy link
Member

With no reproduction instructions in almost two years, I'm going to close this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants