You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A build error was reported in one of my projects (IsaacWoods/poplar#54) with recent nightlies (rustc 1.45.0-nightly (fa51f810e 2020-04-29) is the last known good nightly) using the target x86_64-unknown-uefi. The errors were:
Compiling rustc-std-workspace-core v1.99.0 (/home/mtnygard/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
error: <inline asm>:2:33: error: unknown flag
.section .llvmbc,"e"
^
error: <inline asm>:3:34: error: unknown flag
.section .llvmcmd,"e"
^
error: aborting due to 2 previous errors
error: could not compile `rustc-std-workspace-core`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: <inline asm>:2:33: error: unknown flag
.section .llvmbc,"e"
^
error: <inline asm>:3:34: error: unknown flag
.section .llvmcmd,"e"
^
error: <inline asm>:2:33: error: unknown flag
.section .llvmbc,"e"
^
error: <inline asm>:3:34: error: unknown flag
.section .llvmcmd,"e"
^
error: <inline asm>:55:33: error: unknown flag
.section .llvmbc,"e"
^
error: <inline asm>:56:34: error: unknown flag
.section .llvmcmd,"e"
^
It looks like this issue was introduced by #71528. I will submit a PR that I believe fixes this on UEFI targets.
The text was updated successfully, but these errors were encountered:
Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode
This handles UEFI handles when emitting inline assembly for sections containing LLVM bitcode. See details in rust-lang#71880. I have locally confirmed that this change fixes compilation of projects using the `x86_64-unknown-uefi` target compiling with `cargo-xbuild`, but I am not very familiar with LLVM bitcode so this may not be the correct approach.
r? @alexcrichton as they wrote the initial LLVM bitcode emitting code?
A build error was reported in one of my projects (IsaacWoods/poplar#54) with recent nightlies (
rustc 1.45.0-nightly (fa51f810e 2020-04-29)
is the last known good nightly) using the targetx86_64-unknown-uefi
. The errors were:It looks like this issue was introduced by #71528. I will submit a PR that I believe fixes this on UEFI targets.
The text was updated successfully, but these errors were encountered: