-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 with missing -C prefer-dynamic on plugin crates #18671
Comments
I am seeing this error when compiling |
I can't reproduce with |
I reproduced it on that version exactly, on Debian GNU/Linux. Verbose output:
|
Here is a backtrace:
So there's a static constructor in part of LLVM that got linked into the |
@kmc that looks like something statically linked to LLVM and we're dlopen()ing another copy which is causing a panic in LLVM itself, not quite sure where that's coming from though... |
I got this error with libhoare (syntax extension) when building as a static lib. Changing to build as dynamic lib fixed it ( |
I'm still seeing this, now on rustc 0.13.0-dev (c8d6e3b 2014-11-18 19:11:43 +0000). We have [lib]
name = "string_cache_macros"
plugin = true under #![crate_type="dylib"] in |
@alexcrichton, @nick29581: What information from me would be helpful in reproducing this problem? |
I fixed this by upgrading to a version of Cargo that passes I'm keeping this bug open because we should handle it more gracefully than an LLVM assertion (which is UB in a no-asserts build). |
Traige: since cargo does this correctly now, I'm guessing that's why nobody has hit this, but I am not aware of any improvements, and agree with @kmcallister that it'd be better to handle this more gracefully. |
Triage; with no comments here since 2014, I'm going to give this a close. If you're still running into this today, please let me know! |
Fix typo in error message for invalid casting
The text was updated successfully, but these errors were encountered: