-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Aarch64-Windows: Cannot build libcore with exception handling enabled #54291
Copy link
Copy link
Open
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Trying to cross-compile libcore for
aarch64-pc-windows-msvcfails with (see also #54190 (comment)):(Note, one has to use
link.exeinstead of LLD as the linker (see #54290) in order to get that far.)The underlying problem is (probably) that
aarch64-pc-windows-msvcdefaults topanic_abort, whilelibstdis unconditionally compiled withpanic_unwind. All other targets that hard-codepanic_abortare probably#[no_std]?Making
aarch64-pc-windows-msvcusepanic_unwindlike the other non-embedded platforms leads to LLVM running into an error while trying to compilelibcore: