-
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
[beta] rustc_const_math: undefined reference to `rust_eh_personality' #40251
Comments
Here are the two libraries, where llvm38 fails and llvm39 works: |
That commit describes this only happening with optimizations turned off, but I do have optimization on. I also have debuginfo on, in case that matters. I also see a |
@cuviper can you upload the binary somewhere? EDIT: oh, seems you did. Debuginfo turned on is really great, it can help us nail down the offender. Also, have you turned debug assertions on? If yes, maybe try turning them off. |
I don't think I have debug assertions - at least not in config.mk, just |
It is. That’s the thing which preserves the only reference to |
…=alexcrichton Fix personality_fn within the compiler_builtins compiler_builtins may not have any unwinding within it to link correctly. This is notoriously finicky, and this small piece of change removes yet another case where personality function happens to get introduced. Side note: I do remember solving the exact same thing before. I wonder why it has reappered... @cuviper, could you please try building beta with this patch applied? It should apply cleanly. If it works, I’ll nominate to land this into beta. Fixes(?) rust-lang#40251
While testing 1.16.0-beta.3 builds on Fedora, I'm getting a link error for
rust_eh_personality
on i686 and armv7hl, but not on the rest of arches which are all 64-bit. I'm also seeing this only on Fedora 24/25 with LLVM-3.8, not on Fedora rawhide with LLVM-3.9.The problem seems exactly like that described in commit 92e6c53, part of #38482. On the F25 system, the stage1
libcompiler_builtins.rlib
contains undefined references torust_eh_personality
, and the working rawhide system does not. I don't know how they identified where the reference is coming from, but since this seems dependent on the LLVM version, I guess there's still some missing optimization or analysis that needs to be cleaned up.cc @est31 @nagisa
The text was updated successfully, but these errors were encountered: