v5.x intel mac gcc error: memcpy in ROM

yetabot
Posts: 2
Joined: Thu Jan 09, 2025 4:15 am

v5.x intel mac gcc error: memcpy in ROM

Postby yetabot » Thu Jan 09, 2025 4:33 am

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 time issue with unmatched type:
expected 'UINT *' {aka 'unsigned int *'} but argument is of type 'uint32_t *' {aka 'long unsigned int *'}
gcc predefined __SIZE_TYPE__ has unsigned int which is different from 5.x branch code. Maybe related to this change: https://docs.espressif.com/projects/esp ... 0/gcc.html

Code: Select all

xtensa-esp32s3-elf-gcc -dM -E - < /dev/null | grep __SIZE_TYPE__

#define __SIZE_TYPE__ unsigned int

Who is online

Users browsing this forum: No registered users and 12 guests