Used platform Version Path
esp8266:esp8266 3.1.2 /root/.arduino15/packages/esp8266/hardware/esp8266/3.1.2
Error during build: fork/exec /root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++: no such file or directory
find xtensa-lx106-elf-g++
has the file in that path it self but still the error occurs
Hi @suryalokula. You should not use Arduino CLI as the root user. Please use it with a normal user account. I think that will solve the problem.
Because the normal user account doesn't have access to the files of the root user, you will need to reinstall the esp8266:esp8266 platform and any other platforms or libraries you had installed as root, just as you did before but using a normal user account this time.
after a deep understanding it look like this file /root/.arduino15/packages/esp8266/hardware/esp8266/3.1.2 Error during build: fork/exec /root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ is not missing but fork/exec is missing