Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

BSP newlib building failure

ScottHu
Beginner
426 Views

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!

   

    

  

0 Kudos
4 Replies
BoonBengT_Intel
Moderator
381 Views

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_Intel
Moderator
344 Views

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_Intel
Moderator
326 Views

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

TK99
Beginner
213 Views

Hi,

I'm still facing this problem.

Using Win10 Pro 10.0.19041

Still using QUartus 20.1 Pro ; Patch 20.1-0.49 installed

Have you any suggestions?

Best regards 

 Tim

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ /mnt/c/intelFPGA_pro/20.1/nios2eds/bin/gnu/src/newlib-3.1.0/configure --enable-multilib --enable-newlib-nano-malloc CFLAGS_FOR_TARGET=-g -Os -ffunction-sections -fdata-sections CXXFLAGS_FOR_TARGET=-g -Os -ffunction-sections -fdata-sections --prefix=/mnt/e/TIM/00_BAYTEK/WARP_REF/udx10_warp_ea_0.1.20210308/udx10_warp/software/vip_control_bsp/newlib --target=nios2-elf

## --------- ##
## Platform. ##
## --------- ##

hostname = DESKTOP-SCM7FSJ
uname -m = x86_64
uname -r = 4.4.0-19041-Microsoft
uname -s = Linux
uname -v = #488-Microsoft Mon Sep 01 13:43:00 PST 2020

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /mnt/c/intelFPGA_pro/20.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin
PATH: /mnt/c/intelFPGA_pro/20.1/nios2eds/sdk2/bin
PATH: /mnt/c/intelFPGA_pro/20.1/nios2eds/bin
PATH: /mnt/c/intelFPGA_pro/20.1/quartus/bin64
PATH: /mnt/c/intelFPGA_pro/20.1/quartus/sopc_builder/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /mnt/c/Windows/system32
PATH: /mnt/c/Windows
PATH: /mnt/c/Windows/System32/Wbem
PATH: /mnt/c/Program Files/PuTTY/
PATH: /mnt/c/Users/TK/AppData/Local/Microsoft/WindowsApps
PATH: /mnt/c/Users/TK/.dotnet/tools
PATH: /mnt/e/Intel/Quartus/20.4/modelsim_ae/win32aloem
PATH: /mnt/e/Intel/Quartus/20.4/modelsim_ase/win32aloem
PATH: /mnt/c/Program Files (x86)/Silicon Laboratories/ClockBuilder Pro/Bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2320: checking build system type
configure:2334: result: x86_64-pc-linux-gnu
configure:2381: checking host system type
configure:2394: result: x86_64-pc-linux-gnu
configure:2414: checking target system type
configure:2427: result: nios2-unknown-elf
configure:2481: checking for a BSD-compatible install
configure:2549: result: /usr/bin/install -c
configure:2560: checking whether ln works
configure:2578: result: no, using cp
configure:2586: checking whether ln -s works
configure:2593: result: no, using cp -p
configure:2597: checking for a sed that does not truncate output
configure:2661: result: /bin/sed
configure:2670: checking for gawk
configure:2686: found /usr/bin/gawk
configure:2697: result: gawk
configure:4152: checking for gcc
configure:4182: result: no
configure:4245: checking for cc
configure:4292: result: no
configure:4348: checking for cl.exe
configure:4378: result: no
configure:4402: error: in `/mnt/e/TIM/00_BAYTEK/WARP_REF/udx10_warp_ea_0.1.20210308/udx10_warp/software/vip_control_bsp/newlib-build-tmp/smallc':
configure:4405: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

 

Reply