Doom install fails on Windows

What happened?

I installed emacs 29.4 (through the winget command) and set the HOME variable to my “username” folder. I cloned doom into HOME/.emacs.d/ and ran doom install but I got the following error:

Native compiler error: (lambda (arg65 &rest arg66) (let ((f #'message)) (apply f arg65 arg66))), "Compiling c:/Users/username/.emacs.d/.local/cache/eln/29.4-a4386b77/subr--trampoline-6d657373616765_message_0.eln...
"

What did you expect to happen?

Install doom

Steps to reproduce

  1. Install emacs 29.4 through winget
  2. Set environment variables
  3. Run doom install

System information

Windows 11, emacs 29.4