To build the RISC-V toolchain, I first ran git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git. Then, I executed git submodule update --init --recursive to fetch the submodules. However, I encountered the following error message and was unable to retrieve the submodules:
error: Server does not allow request for unadvertised object 3ea7702a75a6b7a51a70a9e91c20eeff339ad007
fatal: Fetched in submodule path 'dejagnu', but it did not contain 3ea7702a75a6b7a51a70a9e91c20eeff339ad007. Direct fetching of that commit failed.
The contents of the dejagnu folder were empty, and the failure to fetch dejagnu caused the submodule update process to stop. As a result, several other submodules also ended up with empty contents.
How can I resolve this error?