uefi-rs icon indicating copy to clipboard operation
uefi-rs copied to clipboard

uefi-rs template not linking on windows

Open cleanbaja opened this issue 2 years ago • 3 comments

I tried building a sample UEFI application (based on the template), and cargo keeps on getting stuck on the linking stage. I followed the instructions on BUILDING.md, and even tried this on another windows machine, but no dice.

cleanbaja avatar Jul 20 '22 03:07 cleanbaja

Hello. Does the linker or compiler give you any error output which might suggest as to what is going wrong?

Note that we've only developed and tested this crate until now using Linux or WSL - building UEFI apps using uefi-rs on Windows isn't really supported, but I'll do my best to remove blocking issues.

GabrielMajeri avatar Jul 22 '22 13:07 GabrielMajeri

@GabrielMajeri first off, thanks for responding, I really appreciate it. As for the command itself, cargo gives no output, and is stuck building/linking the final UEFI binary. Aside from standard progress indicators, cargo gives no output at all. As a side note, I do have ld.lld installed, along with clang and the llvm tools.

cleanbaja avatar Jul 23 '22 18:07 cleanbaja

Hmm, that's weird. Do you at least see some linker processes starting and running in the background? Is your CPU being used, or is the linker stuck without actually doing anything?

The cargo xtask build command will eventually run something like cargo +nightly build --target x86_64-unknown-uefi -Zbuild-std=core,compiler_builtins,alloc -Zbuild-std-features=compiler-builtins-mem --package uefi --package uefi_app --package uefi-macros --package uefi-services --package uefi-test-runner --features alloc,exts,logger --verbose (without the --verbose part, I've added it now). Could you run it manually and see if you get some more log output?

GabrielMajeri avatar Jul 26 '22 19:07 GabrielMajeri

Closing since there haven't been any updates in a while. If you are still running into the issue please feel free to reopen.

nicholasbishop avatar Nov 04 '22 21:11 nicholasbishop

@nicholasbishop I still didn't find out the cause of the issue, nor have I tested later versions of this library (since I decided to skip rust altogether and use C), so it's fine by me that you closed it

cleanbaja avatar Nov 05 '22 18:11 cleanbaja