We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
It appears that Newlib in the Arm GNU Toolchain Version 11.2-2022.02 is not configured with --enable-newlib-reent-small. I installed gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi and built one of my embedded applications. The linker failed due to a RAM overflow. I figured out that _WANT_REENT_SMALL in newlib.h is not defined. Moreover, Newlib in this toolchain is configured quite differently than the Newlib in the previous toolchain.
Are there plans to have a GNU Toolchain 11.2 with Newlib built with --enable-newlib-reent-small?
Stam,
Sorry about that. I should've been more precise. I was referring to newlib-nano, not newlib. I noticed that _WANT_REENT_SMALL wasn't being defined in newlib.h for newlib-nano, and this was causing a large runtime RAM footprint.
I have no need for newlib, but still have a need for newlib-nano.
Thank you.
Ahh thanks for the clarification, this makes more sense now! In that case, the fix we have in progress to bring back the newlib-nano-specific include/newlib-nano/newlib.h should be good for you in the upcoming release :)
How do we specify to use newlib-nano instead of newlib?
When invoking the compiler, if you use the option --specs=nano.specs, then this specifies the use of newlib-nano instead of newlib.
However, the issue described here is affecting the current release, and a fix for that is being worked on.