Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16642 Discussions

Eclipse problem nios2-elf-gcc command not found

Oliver_I_Sedlacek
New Contributor III
909 Views

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.Eclipse Make fail.png

Labels (1)
0 Kudos
14 Replies
EBERLAZARE_I_Intel
861 Views

Hi,


Can you share me the Quartus version and the design here?


Let me replicate it on my side.


I previously had this error long ago it was due to the WSL 2 version installed, had to revert it to WSL 1.

You can check and try this in the the mean time:

https://www.intel.com/content/www/us/en/docs/programmable/683525/21-3/windows-subsystem-for-linux-wsl-on-windows.html


0 Kudos
Oliver_I_Sedlacek
New Contributor III
853 Views

Quartus Lite 20.1 and WSL 1, same as on my old PC which works.

0 Kudos
EBERLAZARE_I_Intel
775 Views

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".


0 Kudos
EBERLAZARE_I_Intel
719 Views

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.


0 Kudos
Oliver_I_Sedlacek
New Contributor III
704 Views

Attached. I added zipped the sopcinfo because the forum software refuses to accept .sopcinfo files. Perhaps you could bring that to somebody's attention.

0 Kudos
EBERLAZARE_I_Intel
615 Views

Hi,


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


0 Kudos
Oliver_I_Sedlacek
New Contributor III
604 Views

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

0 Kudos
Oliver_I_Sedlacek
New Contributor III
462 Views

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.

0 Kudos
JingyangTeh
Employee
418 Views

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


0 Kudos
Oliver_I_Sedlacek
New Contributor III
407 Views

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.

0 Kudos
JingyangTeh
Employee
278 Views

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



0 Kudos
Oliver_I_Sedlacek
New Contributor III
244 Views

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.

0 Kudos
JingyangTeh
Employee
131 Views

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



0 Kudos
JingyangTeh
Employee
35 Views

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


0 Kudos
Reply