Arduino cli esp8266 compile xtensa-lx106-elf-g++ file not found

I am using alpine linux os

arduino-cli compile -b esp8266:esp8266:nodemcuv2 blink
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.

Thank you so much for your reply

I have changed to new directory from root still the same error occurs

Could you help me with that

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

@ptillisch could you help me with this issue

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.