linguini1 commented on issue #18805: URL: https://github.com/apache/nuttx/issues/18805#issuecomment-4364736248
It appears the C version is set to `202311L`, and so when the `stdatomic.h` file included with `riscv-none-elf-gcc` is included, this definition: ```c #if !(defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L) #define ATOMIC_VAR_INIT(VALUE) (VALUE) #endif ``` is not compiled, so there is no definition of `ATOMIC_VAR_INIT`. ESP32's HAL does not define it either/their definition is not getting included. This causes the error. My work-around for now has been adding `#define ATOMIC_VAR_INIT(value) (value)` in the file that fails to compile, but it would be great if the Espressif team could patch the HAL? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
