Path of good files
xtensa-esp32-elf/xtensa-esp32-elf/sysroot
# Move old files out the way
mv KB-IDE/platforms/esp-idf/tools/xtensa-esp32-elf/xtensa-esp32-elf/sysroot KB-IDE/platforms/esp-idf/tools/xtensa-esp32-elf/xtensa-esp32-elf/sysroot.old
# Move in good ones
mv xtensa-esp32-elf/xtensa-esp32-elf/sysroot KB-IDE/platforms/esp-idf/tools/xtensa-esp32-elf/xtensa-esp32-elf
This problem results in not being able to link code and download it, ld complains about truncated files.
Path of truncted files KB-IDE/platforms/esp-idf/tools/xtensa-esp32-elf/xtensa-esp32-elf/sysroot
It is possible to replace them with the files from this tar file https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-80-g6c4433a-5.2.0.tar.gz as follows
Path of good files xtensa-esp32-elf/xtensa-esp32-elf/sysroot