-
Notifications
You must be signed in to change notification settings - Fork 13k
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
binaries built in debug mode want to import __CxxFrameHandler3 #45492
Comments
Fascinating! Out of curiosity, are you compiling with panic=abort or panic=unwind? |
Nothing explicitly, i just added
for now. After adding
to Cargo.toml it works, thanks for the hint! Shall i close this issue or is this unwanted behaviour nevertheless? Do non-abort no-std crates make sense? |
Ah thanks for testing! Yeah this is being referenced because of |
Imho this is not a documentation issue, but a rustc one: If we build a |
Perhaps yeah! It's technically not impossible but certainly quite hard to get working |
It would indeed be nice to get it working, but until it does I really recommend a decisive error message. Should I create a seperate issue for that? |
Sure! |
This issue is not resolved by adding References: |
I am building windows kernel drivers with rust (
no_std
and no libc), and debug builds fail because the linker can't find__CxxFrameHandler3
in the kernel libraries (which makes sense).However, when building with --release the function apparently is optimized out, and linking is successfull.
My target.json:
Maybe related: #38641
The text was updated successfully, but these errors were encountered: