Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
12487 Discussions

Failed to execute: wsl dos2unix create-this-app; ./create-this-app --no-make

trayres
Beginner
440 Views

On Win10, Build 19044

I have Ubuntu 18.04LTS (set to WSL 1, not WSL2), and I definitely have make. 

I have several WSL kernels installed, but I used "wsl --set-default" to put the default as Ubuntu 18.04.

 

>uname -r

4.4.0-19041-Microsoft

 

Also, if I manually open the NIosII Command Shell, then go to the generated files, it looks like they're successfully building (i.e. if I go into my Workspace, then run ./create-this-app or ./create-this-app --no-make, it appears that everything is working.

 

This error prevents the projects from being included in the Eclipse GUI, however - the BSP gets added, but NOT say the "Hello World Small" application (although it is on the drive! So it gets built, but the error causes it not to be "imported" into Eclipse.)

 

Any help appreciated! Thanks everyone.

0 Kudos
1 Solution
ShengN_Intel
Employee
398 Views

The following solution helped me:


Created a new environment variable in Windows:

Name: WSLENV

Value: SOPC_KIT_NIOS2/p

After restarting Eclipse and Quartus it worked.


View solution in original post

4 Replies
trayres
Beginner
430 Views

if I use the Nios2 shell to launch Eclipse, I get this:

wsl make all
/bin/bash: make: command not found

 

But I definitely have make, and it can be found by just a regular console 

>wsl make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu

It can also be found by the nios2eds console:

make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu

 

It just seems like Eclipse can't find it (even if it is launched from the nios2 console?)

 

 

 

ShengN_Intel
Employee
399 Views

The following solution helped me:


Created a new environment variable in Windows:

Name: WSLENV

Value: SOPC_KIT_NIOS2/p

After restarting Eclipse and Quartus it worked.


trayres
Beginner
387 Views

It worked the first time I tried after adding that environment variable.

Thank you!

ShengN_Intel
Employee
376 Views

Glad to hear that your issue has been resolved. I'll now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts.

You will receive a survey. If you think you would rank your support experience less than 10 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.


Reply