How do I fix these errors during compilation

Hi, I’m trying to compile the engine on a 64bit system using MSY2 on windows following the directions on the website and I get these errors.

collect2.exe: fatal error: cannot find ‘ld’
compilation terminated.
make[2]: *** [Makefile:2425: build/release-mingw64-x86_64/ioq3ded.x86_64.exe] Error 1
make[2]: Leaving directory ‘/e/ioq3-main/ioq3-main’
make[1]: *** [Makefile:1458: targets] Error 2
make[1]: Leaving directory ‘/e/ioq3-main/ioq3-main’
make: *** [Makefile:1371: release] Error 2

any help would be appreciated.