mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
812c216f0c
19450: cpu/esp32: fix compilation issues with GCC 12.2 r=benpicco a=gschorcht
### Contribution description
This PR provides the changes in `cpu/esp32` and `cpu/esp_common` to fix the compilation issues with GCC v12.2. It is required as the first step in the preparation of the upgrade to ESP-IDF version 5.1.
**Please note**: Insead of fixing the ESP-IDF 4.4 code itself by a big bunch of patches to fix the compilation problems with GCC v12.2, it temporarily disables some warnings. The reason is that the ESP-IDF 5.1 requires GCC v12.2 and should be fixed for this compiler version by the vendor.
### Testing procedure
Green CI
The change were already tested with all ESP-specific modules like `esp_now`, `esp_wifi`, `esp_spi` and `esp_ble` for all supported ESP platforms.
### Issues/PRs references
Prerequisite for https://github.com/RIOT-OS/riotdocker/pull/227
Fixes issue #19421
19476: native/syscalls: rename real_clock_gettime to clock_gettime r=benpicco a=Teufelchen1
### Contribution description
When compiling RIOT for native using a recent LLVM and enabling ASAN, one might encounter "Duplicated symbol".
This is due to a name clash with `real_clock_gettime()` in compiler-rt from [LLVM](
|
||
---|---|---|
.. | ||
esp_ble_nimble/syscfg | ||
esp_idf_api | ||
freertos | ||
sys | ||
adc_arch_private.h | ||
adc_arch.h | ||
c11_atomics_compat_cpu.hpp | ||
can_esp.h | ||
can_params.h | ||
cpu_conf_esp32.h | ||
cpu_conf_esp32c3.h | ||
cpu_conf_esp32s2.h | ||
cpu_conf_esp32s3.h | ||
cpu_conf.h | ||
gpio_arch.h | ||
gpio_ll_arch.h | ||
irq_arch.h | ||
newlib.h | ||
periph_cpu_esp32.h | ||
periph_cpu_esp32c3.h | ||
periph_cpu_esp32s2.h | ||
periph_cpu_esp32s3.h | ||
periph_cpu.h | ||
rtt_arch.h | ||
sdkconfig_esp32.h | ||
sdkconfig_esp32c3.h | ||
sdkconfig_esp32s2.h | ||
sdkconfig_esp32s3.h | ||
sdkconfig.h | ||
syscalls.h |