Closed s-hadinger closed 3 years ago
It is a 32-bit cpu, so I would expect that as well. Alas, we have no control over that. Please report upstream at esp-idf.
Thanks, will do. Do you want me to keep this issue open for reference until it's fixed upstream?
For reference: https://github.com/espressif/esp-idf/issues/6906
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Hardware:
Board: Esp32c2 dev board Core Installation version: v.2.0.0.pre IDE name: Platform IO Flash Frequency: 40Mhz PSRAM enabled: no Upload Speed: 115200 Computer OS: Mac OSX
Description:
When using ESP32 or ESP8266,
uint32_t
matchesunsigned int
andint32_t
matchesint
.But with RISC-V compiler the
uint32_t
now matchesunsigned long int
andint32_t
matcheslong int
.This causes compilation failure of multiple Arduino libs, specifically in Tasmota.
A workaround is to add
-D__INT32_TYPE__=int -D__UINT32_TYPE__="unsigned int"
in thebuild_flags
but it creates lots of warnings.The core issue is that gcc builtins for
__INT32_TYPE__
islong int
and__UINT32_TYPE__
isunsigned long int
.I suggest to change the builtins in gcc.
Sketch:
Debug Messages:
The sketch does nothing but verify compilation. Esp32/Esp8266 compile fine.
Esp32c3 causes the following error: