Forum Discussion

SHard2's avatar
SHard2
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

NIOS II Build Tools 19.1 now fail to build

Hi

Up to now I have had both the wsl and Quartus 19.1 NIOS II build tools working correctly. I have returned to do maintenance on an existing project and it will no longer build.

This is a serious problem for us and any advice would be greatly appreciated.

To try to isolate the problem I have used a demo FPGA project and created a new software project using 'Nios II Application and BSP from template' and selecting 'Hello World'.

During creation I get the following message in the console.

<snip>

16:06:09 **** Clean-only build of configuration Nios II for project Test_Prj ****
wsl make clean
wslpath: /mnt/d/work/TechSupport/HAN/Demonstration/FPGA/Basic_Demo/software/Test_Prj_bsp//obj/HAL/src/crt0.o: No such file or directory
wslpath: hal_bsp: No such file or directory
[Test_Prj clean complete]

16:06:11 Build Finished (took 1s.448ms)

<snip>

When I try to build the new project I get the following messages at the start of compilation...

<snip>

16:08:53 **** Build of configuration Nios II for project Test_Prj ****
wsl make all
wslpath: /mnt/d/work/TechSupport/HAN/Demonstration/FPGA/Basic_Demo/software/Test_Prj_bsp//obj/HAL/src/crt0.o: No such file or directory
wslpath: hal_bsp: No such file or directory
Info: Building /mnt/d/work/TechSupport/HAN/Demonstration/FPGA/Basic_Demo/software/Test_Prj_bsp/
make --no-print-directory -C /mnt/d/work/TechSupport/HAN/Demonstration/FPGA/Basic_Demo/software/Test_Prj_bsp/
Compiling alt_alarm_start.c...
nios2-elf-gcc.exe -xc -MP -MMD -c -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/HAL/src/alt_alarm_start.o HAL/src/alt_alarm_start.c
Compiling alt_busy_sleep.c...
nios2-elf-gcc.exe -xc -MP -MMD -c -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/HAL/src/alt_busy_sleep.o HAL/src/alt_busy_sleep.c
Compiling alt_close.c...
nios2-elf-gcc.exe -xc -MP -MMD -c -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/HAL/src/alt_close.o HAL/src/alt_close.c
Compiling alt_dcache_flush.c...

<snip>

At the end of compilation I get the following errors.

<snip>

Description Resource Path Location Type
make: *** [Test_Prj.elf] Error 1 Test_Prj C/C++ Problem
recipe for target 'Test_Prj.elf' failed Makefile /Test_Prj line 1010 C/C++ Problem

<snip>

Any advice would be greatly appreciated as at this moment I am unable to find a workaround.

Many thanks

Simon

7 Replies

  • Hi @SHard2,

    Good day and hope you are doing well, thank you for your patients.

    Can you please try the below steps:

    • Dividing workspace project and source software directories. It must be different directories inside common project directory.
    • Use "New'"--> "NIOS II Application and BSP from template" for generation of new BSP project structure. ("New" --> "NIOS II Board support package", will cause some error as below)

    Example error:

    Executing: wsl;nios2-bsp hal . ../../qsys_system.sopcinfo
    --cpu-name nios2_gen2_0
    (D:\Temp\axie_system_controller_restored\software\qsys_bsp)
    /bin/bash: -c: line 0: syntax error near unexpected token `;'
    /bin/bash: -c: line 0: `;nios2-bsp hal .
    ../../qsys_system.sopcinfo --cpu-name nios2_gen2_0'

    Just curious, what are the window version that you are using?

    Is there any updates on the WSL recently?

    Warm regards.

    • SHard2's avatar
      SHard2
      Icon for Occasional Contributor rankOccasional Contributor

      Good morning

      I am using Windows 10 Pro 2004 (Build 19041.450)

      I had previously tried using 'New->Nios II Application and BSP from template', this also fails.

      On further research this appears to have been caused by a windows update changing wsl1 in some way. I have tried wsl2 but unfortunately, due to another problem with the Intel/Altera 'create-this-app script', this also fails as the script is looking for 'uname' to return 'Microsoft' when it actually returns 'microsoft'.

      I cannot update to Q20.1 as Intel have dropped support for DSP Builder for the 'Standard' license release.

      I have reverted to Q18.1 Build 646, unfortunately this also fails due to another problem with the Intel/Altera 'create-this-app' script. This time the script fails by breaking the permissions of its destination folder, giving the following error 'Eclipse - Error Creating Project (Access is Denied)'. There does not seem to be a satisfactory solution to this.

      I have ended up reverting to Q18.1 Build 625 to find a release where the NIOS II Build Tools actually appear to function correctly.

      I am forced to use the Quartus Prime Standard product as Stratix IV is not supported by the 'PRO' product. The Standard product is not free and has a not inconsiderable price attached to it, along with additional charges for the other packages we use. It would appear that all effort seems to be in the 'PRO' product which only seems to cover the very latest devices.

      In which case I am struggling to justify the license cost to cover the legacy devices we must continue to support. If this is the Intel policy now I feel that for any new boards I should consider changing over to Xilinx.

      Regards

      Simon