Problem with Platformio on Raspberry pi

I installed Platformio on a Raspberry pi and tried to upload code to an esp8266 but I got an error saying xtensa-lx106-elf-gcc command not found. Despite the fact that the xtensa directory exists in .platformio

Related issue