-
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
Error compiling core
with LLVM CFI enabled
#90546
Comments
@rustbot claim |
The issue seems to be with LLVM trying to generate the type tests for functions marked to be inlined---which if they're going to be inlined, there shouldn't be a branch, and a type test in the first place:
|
This was actually a combination of issues:
I'll send a PR with these fixes soon. Rebuilding std and all its dependencies (not just core and alloc) now bumps into #100778, which I'll fix next. |
…eywiser CFI: Fix error compiling core with LLVM CFI enabled Fix rust-lang#90546 by filtering out global value function pointer types from the type tests, and adding the LowerTypeTests pass to the rustc LTO optimization pipelines.
Code
Meta
rustc --version --verbose
:Error output
~/hello-rust$ RUSTFLAGS="-Cembed-bitcode -Clto -Zsanitizer=cfi" RUSTDOCFLAGS="-Cembed-bitcode -Clto -Zsanitizer=cfi" cargo run -Zbuild-std --target x86_64-unknown-linux-gnu
Backtrace
RUSTFLAGS="-Cembed-bitcode -Clto -Zsanitizer=cfi" RUSTDOCFLAGS="-Cembed-bitcode -Clto -Zsanitizer=cfi" RUST_BACKTRACE="1" cargo run -Zbuild-std --target x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered: