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](
|
||
---|---|---|
.. | ||
bin | ||
bootloader | ||
esp-ble-nimble | ||
esp-eth | ||
esp-idf | ||
esp-idf-api | ||
freertos | ||
include | ||
ld | ||
periph | ||
stdio_usb_serial_jtag | ||
vendor/include | ||
doc_esp32.txt | ||
doc_esp32c3.txt | ||
doc_esp32s2.txt | ||
doc_esp32s3.txt | ||
doc.txt | ||
esp32.config | ||
esp_ztimer.c | ||
irq_arch.c | ||
Kconfig | ||
Kconfig.common | ||
Kconfig.esp32 | ||
Kconfig.esp32c3 | ||
Kconfig.esp32s2 | ||
Kconfig.esp32s3 | ||
Makefile | ||
Makefile.default | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
startup.c | ||
syscalls.c | ||
usb_reset.c |