nds32le-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory
For this kind of error, it is possible that the cc1 file is called by nds32le-elf-gcc, but the cc1 file does not have executable permission. It can be solved by chmod 755. Why do file permissions change? In a linux system, it is generally copied from a folder containing executable files to another machine, so the permissions of the files in the folder may be changed.
nds32le-elf-gcc: execv: ... No such file or directory
It is obvious that nds32le-elf-gcc exists and the path is correct. If this error is reported, it is also possible that nds32le-elf-gcc is a 32-bit program, and the running machine is 64-bit, which is incompatible. Then you need to install the 32-bit compatibility package.