Page 1 of 1

2020r2-8.2.0 search path problems

Posted: Mon Sep 07, 2020 4:11 am
by Ivo.Tisch
I am working on branch release/4.1. Everything was working fine on commit 84b51781c (23/5/2020) but when I tried commit bd72a9ab (3/8/2020) I get compiler errors. The compiler has been updated from 2019r2 to 2020r2.
The tool paths are correct but the compiler can't find some header files. For example:

=================================================================================================
[278/1167] Building CXX object esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_item_hash_list.cpp.obj
FAILED: esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_item_hash_list.cpp.obj
ccache D:\Repositories\Project-Folder\Espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/newlib/platform_include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/freertos/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/heap/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/log/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/lwip/include/apps -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/lwip/include/apps/sntp -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/lwip/lwip/src/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/lwip/port/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/lwip/port/esp32/include/arch -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/soc/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/soc/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_rom/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_common/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/xtensa/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/xtensa/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/driver/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/driver/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_ringbuf/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/efuse/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/efuse/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/vfs/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_wifi/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_wifi/esp32/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_event/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_netif/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/esp_eth/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/tcpip_adapter/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/app_trace/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/spi_flash/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/mbedtls/port/include -ID:/Repositories/Project-Folder/Espressif/esp-idf/components/mbedtls/mbedtls/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -Og -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.1-rc-15-gbd72a9ab2\" -DESP_PLATFORM -MD -MT esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_item_hash_list.cpp.obj -MF esp-idf\nvs_flash\CMakeFiles\__idf_nvs_flash.dir\src\nvs_item_hash_list.cpp.obj.d -o esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/src/nvs_item_hash_list.cpp.obj -c D:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp
In file included from d:\repositories\project-folder\espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\ext\atomicity.h:35,
from d:\repositories\project-folder\espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\bits\basic_string.h:39,
from d:\repositories\project-folder\espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\string:52,
from D:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/include/nvs_handle.hpp:4,
from D:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/src/nvs_types.hpp:22,
from D:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/src/nvs_item_hash_list.hpp:19,
from D:/Repositories/Project-Folder/Espressif/esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp:15:
d:\repositories\project-folder\espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\gthr.h:151:10: fatal error: bits/gthr-default.h: No such file or directory
#include <bits/gthr-default.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
=========================================================================================================
But I have the following file:
D:\Repositories\Project-Folder\Espressif\esp-tools\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\gthr-default.h

If any of you guys can figure out what my problem could be, I would love to hear from you!

Thanks