IDF 6.0+ adds support for picolibc, and makes it the default (instead of newlib)
picolibc appears to be mostly compatible with newlib, apart from a few file-related macros that are defined differently:
E (351) libc_checks: Mismatch detected for constant `O_APPEND`: `esp-idf` 1024 | `libc` 8
E (351) libc_checks: Mismatch detected for constant `O_CREAT`: `esp-idf` 64 | `libc` 512
E (361) libc_checks: Mismatch detected for constant `O_TRUNC`: `esp-idf` 512 | `libc` 1024
See thread here for all the details: #408 (comment)
- We'll need to submit a patch to upstream
libc no matter what (I have something semi-temporary, see above)
- We need to figure out how to support this in
esp-rs, maybe a separate set of toolchain, maybe just a cfg flag that needs to be passed?
IDF 6.0+ adds support for picolibc, and makes it the default (instead of newlib)
picolibc appears to be mostly compatible with newlib, apart from a few file-related macros that are defined differently:
See thread here for all the details: #408 (comment)
libcno matter what (I have something semi-temporary, see above)esp-rs, maybe a separate set of toolchain, maybe just a cfg flag that needs to be passed?