General Troubleshooting - nxp-mcuxpresso/vscode-for-mcux GitHub Wiki
Build errors due to freestanding restrictions in GCC13
GCC 13 brings a major change when dealing with freestanding and hosted environments. In other words, more restrictions have been added, and GCC no longer allows inclusion of non-freestanding library headers in freestanding environments (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103626). As a result, some projects might no longer be built with the -ffreestanding flag. Example projects from NXP SDKs do not require usage of "-ffreestanding", so the flag can be safely removed. Please also check the official C/C++ standards and GCC documentation for details about program conformance with freestanding and hosted environments.