Search found 2 matches

by yetabot
Thu Jan 09, 2025 4:33 am
Forum: Report Bugs
Topic: v5.x intel mac gcc error: memcpy in ROM
Replies: 0
Views: 6013

v5.x intel mac gcc error: memcpy in ROM

When using xtensa-esp32s3-elf-gcc resultes in weird size_t issue. Further debugging shows gcc predefined __SIZE_TYPE__ has incompatible type with 5.x code branch.
Seems happening on these intel macos toolchain, at least, not tested on other platforms:

14.2.0_20241119
13.2.0_20230928


compile ...
by yetabot
Thu Jan 09, 2025 4:28 am
Forum: ESP-IDF 中文讨论版
Topic: v5.x intel mac gcc error 导致 memcpy in ROM
Replies: 0
Views: 2490

v5.x intel mac gcc error 导致 memcpy in ROM

使用xtensa-esp32s3-elf-gcc编译是出现奇怪的size_t大小问题,跟踪发现发现5.x intel macos工具链gcc定义的 __SIZE_TYPE__ 大小未匹配代码中的类型。

导致编译时的各种大小问题:

expected 'UINT *' {aka 'unsigned int *'} but argument is of type 'uint32_t *' {aka 'long unsigned int *'}


gcc默认define size type与代码不一致,可能和5.x这个改动相关:https://docs.espressif.com ...

Go to advanced search