Forum Discussion

ScottHu's avatar
ScottHu
Icon for New Contributor rankNew Contributor
5 years ago

BSP newlib building failure

1. platform: windows10 pro, version:10.0.19041;

Quartus: Prime Version 20.1.0 Build 711 06/05/2020 SJ Standard Edition

Eclipse: Version: Mars.2 Release (4.5.2)

WSL1: Ubuntu 18.04 LTS WSL1

2. failure: building newlib failure

Building Newlib may take a few minutes... Please be patient.

Newlib Source Dir: /mnt/c/intelfpga/20.1/nios2eds/bin/gnu/src/newlib-3.1.0
Newlib Build Dir: /mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/newlib-build-tmp
Newlib Install Dir: /mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/newlib

Configuring newlib to build a smallc C library in /mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/newlib-build-tmp/smallc...
nios2-newlib-gen: Unable to Configure smallc newlib
See log file /mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/build-newlib.2020-11-05-08-30-36 for more details.
Makefile:765: recipe for target 'newlib' failed
make: *** [newlib] Error 1

The detailed information in build log as follows:

Thu 05 Nov 2020 00:30:36 Configuring newlib to build a smallc C library in /mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/newlib-build-tmp/smallc...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... nios2-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/mnt/f/Quartus_Projects/TIADAQ-5CEFA5F/ip/software/NIOSController_bsp/newlib-build-tmp/smallc':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
nios2-newlib-gen: Unable to Configure smallc newlib

Any suggestion are appreciated!

Thanks!

4 Replies

  • Hi @ScottHu,

    Thank you for posting in Intel community forum and hope this message find you well.
    Currently we are experiencing some issues with WSL 1 upon window updates.
    However available patch has been release to solve this, please refer to the KDB and installed the relevant patch according to your Quartus version.

    Warm regards.

    • BoonBengT_Altera's avatar
      BoonBengT_Altera
      Icon for Moderator rankModerator

      Hi @ScottHu,

      Hope this message find you well, by any chances did you managed to look into the proposed recommendation steps above and does it work?

      Warm regards.

      BB

      • BoonBengT_Altera's avatar
        BoonBengT_Altera
        Icon for Moderator rankModerator

        Hi @ScottHu,

        Hope this message find you well and good day, as we do not receive any response from you to the previous clarification that we have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.

        Warm Regards