In order to use the custom targets to build a UEFI compatible bootloader, you must have rust's core crate built for it as well. I recommend using xargo to automate the process. Once installed, simply: xargo build --target x86_64-efi-pe