Items with no label
3335 Discussions

Newlib will not be generated

SHERG
Beginner
746 Views

Systeminformation: Quartus Prime Lite 19.1 wsl Ubuntu 18.4 LTS

Ubuntu Package: wsl, dos2unix and make

 

I want to create and compile a Nios II Application and BSP form template. When compiling Eclipse reports that no compiler is available. Afterwards I installed the package build-essential. 

 

The compilation still stops and reports "test2a_bsp/newlib-build-tmp/build-newlib-stage-wrapper: line 23: nios2-elf-ar: command not found".

 

The Makefile cannot find any of the nios2-elf commands. 

In the Nios II Coomand Shell all commands are only displayed as .exe. 

 

Is there a missing package or does anyone know how to fix the bug? 

 

 

0 Kudos
1 Reply
Kuroda
Beginner
673 Views

Hi, SHERG.

I have same problem.

But I found the way to fix.

  • make symlinks of nios2-elf-*.exe without ".exe"
    • example: ln -s nios2-elf-gcc.exe nios2-elf-gcc
  • edit C:\intelFPGA_lite\19.1\nios2eds\sdk2\bin\nios2-newlib-gen
    • line:278
      • before: ORIGINAL_ARGS=$(echo $* | sed -e 's,/cygdrive/\([a-zA-Z]\)/,\1:/,g')
      • after: ORIGINAL_ARGS=$(echo $* | sed -e 's,/mnt/\([a-zA-Z]\)/,\1:/,g')

I don't think Intel has tested it at all.​

0 Kudos
Reply