-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Undefined symbols in fmt with i386-uefi-msvc #3530
Comments
Changing this line to |
But why would we want this code in an EFI application? Shouldn't we get llvm to not require these symbols? |
For the same reason you want those in a standard Win32 non-EFI application, LLVM expects those to be defined by the Microsoft compiler runtime and so makes use of them. |
I wrote a tiny bit about the purpose of compiler-rt here: https://ziglang.org/download/0.5.0/release-notes.html#compiler-rt |
LLVM expects those because we're currently telling LLVM to compile EFI applications as Windows applications. See here EDIT: Seems like we don't have much of a choice. As I understand the situation, LLVM can't generate COFF files for non-windows OSes right now. |
When compiling this program:
I get linker errors when building for UEFI 32-bit:
It does work on x86_64-uefi-msvc and i386-windows-msvc, however.
The text was updated successfully, but these errors were encountered: