Forum Discussion

Oliver_I_Sedlacek's avatar
2 years ago

Eclipse problem nios2-elf-gcc command not found

I know there's an older very similar thread but the links to suggested solutions are now broken.

I've got myself a shiny new PC but I can't do any NIOS2 Eclipse work on it because I'm getting this problem, screenshot below.

14 Replies

  • Hi,


    What is the PC environment on your old PC vs the new PC?


    On another note, it seems to be the Nios II might be calling the "nios2-elf-gcc" instead of "nios2-elf-gcc.exe" for Windows.


    Could you try to open the nios II SBT/eclipse from Nios II command shell?


    In the Nios II command shell, run "eclipse-nios2.exe".


  • Hi,


    Can you share the software folder and sopcinfo here? I will try to help the build success on 20.1 Quartus Lite on my Windows PC.


  • Hi,


    Thanks for the files, I will try to test and set some environment to get the build working.


    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      Don't forget, it worked on my old PC. They are both Windows 10 Professional 64bit.

    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      Any progress on this. Please also consider my other (and possibly more pressing) problem which is that the NIOS2 wont boot from external SDRAM and I've had no suggestions as to how to debug this.

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Oliver


    Sorry for the late reply.

    I am Jingyang and will be helping Eber out in this case.


    I have tried generating the BSP from your sopcinfo that you shared and there was no issues.

    The environment that i am using is also the same as yours except for the Version of windows.

    I am using Windows 10 Enterprise 64 bits.


    Was able to generate it without any error seen.


    Just to make sure you have installed the plugins correctly :

    https://www.terasic.com.tw/wiki/Getting_Start_Install_Eclipse_IDE_into_Nios_EDS


    And also the WSL version is correct :

    https://www.intel.com/content/www/us/en/support/programmable/articles/000074066.html


    Regards

    Jingyang, Teh


    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      Right, so after a lot of searching on the web the problem was the wrong version of WSL. Windows really, really, really wants you to use WSL2 and I get the feeling from the MIcrosoft documentation updated in 2023 that the Intel documentation is no longer fully accurate on describing the process in sufficient detail.

      Sorted at last by the look of it.

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Yeah, the wsl version needed for the quartus project is version 1.

    Sometimes windows will switch the wsl versions but do double check if the wsl is version 1 else Quartus will have some issue.

    Is it ok if we close this case?


    Regards

    Jingyang, Teh



    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      Intel do not provide instructions on how to check WSL version, which is an inconvenience especially when Windows really, really likes to switch to WSL 2. Please close the case.

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Oliver


    You could use the command below to check and list the distribution that you have installed and the wsl version:

    wsl -l -v



    Furthermore you could use the command below to set the distribution version:

    wsl --set-version <distro name> 1


    Regards

    Jingyang, Teh



  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome to reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within 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 on your follow-up questions.


    If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 4 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


    Regards

    Jingyang, Teh