You may see this error while while generating a Makefile for a NIOS II BSP project with Intel® Quartus® standard edition 19.1 and Intel® Quartus® pro edition 19.2 onwards. The complete error message that may come up is shown below.
nios2-newlib-gen: Unable to Configure smallc newlib
See log file <path to the design> build-newlib. <time stamp> for more details.
build-newlib <time stamp> file content :
configure:4402: error: in `/mnt/c/Test/final/newlib-build-tmp/smallc':
configure:4405: error: no acceptable C compiler found in $PATH
To work around this error, please make sure that the build-essential package is installed withinthe Ubuntu* WSL distribution with the help of the following command :
sudo apt install build-essential
This problem is fixed starting with the Intel® Quartus® Prime Software version 21.1.