Install libnewlib-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libnewlib-dev
C library and math library intended for use on embedded systems
Newlib is a C library and math library intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products. . This package contains the newlib headers.