Forum Discussion

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

Please can we have some help on the WSL\NiosIi\Eclipse build problems following the windows update

I have Quartus 20.1 on Windows 10 and have today tried to rebuild a project using the NiosII eclipse platform. The project was working fine a few months ago and now I cannot get the eclipse tool chain to work, with eclipse reporting various file\folder\path not found errors, command not found errors, and various unknown architecture errors that all seem to be associated with WSL path problems. Likewise, if I create a new project it does not work. I can count numerous forum posts since September and all report problems which on first pass look to be different facets of the same problem. The root cause seems to be a windows update which has broken the Quartus\NiosII\EDS\WSL tool chain.

This is a serious issue, and having spent the day going through the below posts none seem to satisfactorily resolve the problems. Please can Intel provide help on this. Like many others, this has resulted in a dead stop in project development so I would certainly appreciate a timely resolution.

Thanks in Advance

David

For reference – the most comment suggestion from intel seems to be the below, but this does not work.

To workaround the problem, you can follow the steps below:

1) uninstall Ubuntu* 18.04 (if you have one)

2) uninstall wsl

3) re-install wsl

4) download latest Ubuntu 18.04 from Microsoft Shop & install it

5) execute following on Ubuntu shell :

sudo apt-get update

sudo apt install wsl

sudo apt install dos2unix

sudo apt install make

sudo apt-get upgrade

Post related to this seem to be:

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Error-s0-Error-during-execution-of-quot-C-intelfpga-20-1-quartus/td-p/1191914

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/nios2-elf-gcc-exe-error-CreateProcess-No-such-file-or-directory/td-p/1203392

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Quartus-20-1-NIOS-II-ED-error-Makefile-1010-recipe-for-target/td-p/1201359

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Quartus-19-1-NIOS-II-ED-error-Makefile-1012-recipe-for-target/td-p/1190292

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/NIOS-II-Build-Tools-19-1-now-fail-to-build/td-p/1205010

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/NIOS-Eclipse-not-starting-for-18-1/td-p/1209916

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/NIOS-application-build-fail/td-p/1200898

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Having-a-problem-when-creating-a-new-Nios-ii-Application-and-BSP/td-p/666515

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Error-s0-Error-during-execution-of-quot-C-intelfpga-20-1-quartus/td-p/1191914

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/nios2-elf-gcc-exe-error-CreateProcess-No-such-file-or-directory/td-p/1203392

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Quartus-20-1-NIOS-II-ED-error-Makefile-1010-recipe-for-target/td-p/1201359

https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Quartus-19-1-NIOS-II-ED-error-Makefile-1012-recipe-for-target/td-p/1190292

8 Replies

  • Hi @DavidCambridge,

    Thank you for posting in Intel community forum and hope you are doing well.
    Apologies for the inconvenient cause, yes the cause that we identified so far for now is due to the windows updates.
    We are actively working with the development team to mitigate this with a permanent solution on the next software patched.
    As for now for Quartus 20.1, for the time being there is a workaround in place by using the NIOS II command shell to build the system. There would be some error upon building the project, please refer to the steps below to attend to it:

    #1
    - Open a NIOS2 command shell
    - try and make an NIOS2 application
    - You get the following error: nios2-elf-gcc.exe: error: CreateProcess: No such file or directory
    - To resolve this you need run the following command prior to calling make, "export WSLENV=PATH/l:${WSLENV}"

    #2
    - With the above fix you can compile all the files but the link fails: nios2-elf-g++.exe: error: missing argument to '-msys-lib='
    - To resolve this you need to modify the application Makefile and change the following line:
    APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB)) to APP_LDFLAGS += -msys-lib=$(SYS_LIB)
    - In adjust-path-mixed should not be used in this case as SYS_LIB is a name of a library not a PATH to the library

    #3
    - The final problem is that from eclipse debugging fails with the following error:
    wslpath: /mnt/f/main_clean/Software/omni_ip/projects/wfm_ss/example/wfm/wfm_app/wfm.elf.srec: No such file or directory
    wslpath: /mnt/f/main_clean/Software/omni_ip/projects/wfm_ss/example/wfm/wfm_app/wfm.elf.srec: No such file or directory
    Using cable "USB-BlasterII [USB-1]", device 1, instance 0x01
    Pausing target processor: OK
    Restarting target processor
    rm: cannot remove '/mnt/f/main_clean/Software/omni_ip/projects/wfm_ss/example/wfm/wfm_app/wfm.elf.srec': No such file or directory
    - To resolve this problem the Application Makefile must be modified again with the following change:
    BUILD_PRE_PROCESS := to BUILD_PRE_PROCESS := touch $(ELF).srec

    Please do let us know if you have any trouble completing the workaround above.

    Warm regards.

    • TrainMan's avatar
      TrainMan
      Icon for New Contributor rankNew Contributor

      I don't know that it will help but my Eclipse build template command started working after I noticed the last line of text above the prompt after running the command "sudo apt update" in the Ubuntu command shell, the first of 4 command lines found in the "Intel FPGA Software Installation and Licensing" guide section 2.3.1. The text referred to items that needed to be "Upgraded" The command "sudo apt upgrade" worked for me. I then re-ran the remaining three command lines and looked for anything else that needed to be upgraded. There were none. After that I was suddenly able to create Eclipse project templates, but I had tried everything else I could find before that point and the process woudl fail with the error message failed to execute dos2unix.

      Hope it helps you.

  • Hi @DavidCambridge,

    By any chances did you managed to look into the workaround mention?

    Please do let us know if you have any issues completing those steps and we would be more than happy to look into it.

    Thanks

    Warm regards

    • BoonBengT_Altera's avatar
      BoonBengT_Altera
      Icon for Moderator rankModerator

      Hi @DavidCambridge,

      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

      • DavidCambridge's avatar
        DavidCambridge
        Icon for New Contributor rankNew Contributor

        Hi

        I was not able to get the procedure you describe to work. I did however find the below post which gives a link to a patch.

        https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/NIOS-application-build-fail/m-p/1216792#M50234

        Unfortunately, when I try and apply the patch I get an error messages to tell me that the patch is for version 20.1.0.177 but I have version 20.1.0.711. I then visited the quartus down load page to see if there was a later version, but I struggled to download using this account. When I tried I was locked in an endless loop between the download page and the account login page. To solve this I had to create a new account, but then I discovered the latest version us 20.1.0.711 ?

        David