Article ID: 000086460 Content Type: Install & Setup Last Reviewed: 03/24/2021

Error : nios2-newlib-gen: Unable to Configure smallc newlib. See log file build-newlib. for more details.

Environment

  • Intel® Quartus® Prime Pro Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    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

     

    Resolution

    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.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices