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
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12366 Discussions

Issue in Nios Eclipse : elf not generated

Magali
Beginner
3,505 Views

Issue in Nios Eclipse : elf not generated


Computer configuration : Windows 10
Quartus version 19.1 standard
Nios Eclipse : Mars 9.2

I have install Quartus without issues but when I have want to execute NIOS Eclipse some issues occurs.
I have done all the checklist done at :
How do I install the Windows* Subsystem for Linux* (WSL) on Windows?
https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base...

and also
the procedure to install unbuntu 18.04LTS for WSL
https://docs.microsoft.com/en-us/windows/wsl/install-win10

After I open Nios Eclipse , I'm able to create a project and the Nios applicationand BSD from template
but when I complie the project the elf file is not generate
and the message : ***make[Makefile1011: xx.elf]error 1 appears

This is the information done by the console when I made the Build

11:34:29 **** Incremental Build of configuration Nios II for project daniel_2 ****
wsl make all
wslpath: hal_bsp: No such file or directory
Info: Building /mnt/c/Quartus_Project/test/C10LP_NiosII_hello_world_project1/software/daniel_2_bsp/
make --no-print-directory -C /mnt/c/Quartus_Project/test/C10LP_NiosII_hello_world_project1/software/daniel_2_bsp/
[BSP build complete]
Info: Linking daniel_2.elf
nios2-elf-g++.exe -T'C:/Quartus_Project/test/C10LP_NiosII_hello_world_project1/software/daniel_2_bsp/linker.x' -msys-crt0='C:/Quartus_Project/test/C10LP_NiosII_hello_world_project1/software/daniel_2_bsp/obj/HAL/src/crt0.o' -msys-lib= -LC:/Quartus_Project/test/C10LP_NiosII_hello_world_project1/software/daniel_2_bsp -msmallc -Wl,-Map=daniel_2.map -Os -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -pg -mgpopt=global -o daniel_2.elf obj/default/hello_world_small.o -lm -msys-lib=m
nios2-elf-g++.exe: error: missing argument to '-msys-lib='
make: *** [Makefile:1011: daniel_2.elf] Error 1

11:34:30 Build Finished (took 1s.10ms)

Can yo help me to solve this issues
Thanks in advance

0 Kudos
1 Solution
tweeklab
Beginner
3,489 Views

I just ran into this issue and found your post while googling for a solution.  For me a perfectly functional project just stopped working.  The root cause is that the wslpath program (used to translate between Linux and Windows paths in WSL) seems to have changed.  I took OS updates this morning so that is the only explanation I have.  Your Makefile is trying to basically do this:

wslpath -m hal_bsp

I'm guessing this just used to return simply "hal_bsp" because other ways of calling wslpath still seem to return this string.  Now it is the reason you see:

"wslpath: hal_bsp: No such file or directory"

in your output.  I'm not sure why the Makefile tries to translate this string.  To fix it, open your project Makefile and look for a line like this:

APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))

For me it's around line 326, but is probably a bit different for you.  Change it to:

APP_LDFLAGS += -msys-lib=hal_bsp

After this your project will build again.

View solution in original post

5 Replies
tweeklab
Beginner
3,490 Views

I just ran into this issue and found your post while googling for a solution.  For me a perfectly functional project just stopped working.  The root cause is that the wslpath program (used to translate between Linux and Windows paths in WSL) seems to have changed.  I took OS updates this morning so that is the only explanation I have.  Your Makefile is trying to basically do this:

wslpath -m hal_bsp

I'm guessing this just used to return simply "hal_bsp" because other ways of calling wslpath still seem to return this string.  Now it is the reason you see:

"wslpath: hal_bsp: No such file or directory"

in your output.  I'm not sure why the Makefile tries to translate this string.  To fix it, open your project Makefile and look for a line like this:

APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))

For me it's around line 326, but is probably a bit different for you.  Change it to:

APP_LDFLAGS += -msys-lib=hal_bsp

After this your project will build again.

View solution in original post

Magali
Beginner
3,482 Views

thanks a lot for your help

It's works now.

venkatasateesh
Beginner
489 Views

hi tweeklab

 

in your output.  I'm not sure why the Makefile tries to translate this string.  To fix it, open your project Makefile and look for a line like this:

APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))

For me it's around line 326, but is probably a bit different for you.  Change it to:

APP_LDFLAGS += -msys-lib=hal_bsp

After this your project will build again.

                                  whatever solution provided its working ,i am able to generate .elf file ,but should we do for every  new application file  generation ?is their any fixed solution  for this issue ,thanks for posting solution

EricMunYew_C_Intel
Moderator
3,341 Views

Hi, Magali


Have you tried below workaround ?


1.

Starting with Nios II EDS in Intel Quartus Prime Pro Edition version 19.2 and Intel Quartus Prime Standard Edition version 19.1, the Cygwin component in the Windows version of Nios II EDS has been removed and replaced with WSL. For installation instructions, refer to the Installing Windows Subsystem for Linux (WSL) on the Windows section in the Nios II Software Developer Handbook. For machines installed with McAfee Endpoint Security, the minimum requirement is Windows 10 Version 1809 (OS build 17763). If you are using a network drive for the Nios II EDS, the minimum requirement is Windows 10 Version 1903 (OS build 18362).


You may refer to page 17 of https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii5v2gen2.pd...


2.

You may try to update the WSL 2 software by following below:

https://docs.microsoft.com/en-us/windows/wsl/install-win10#:~:text=Update%20to%20WSL%202,-To%20updat... 


3.

https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base...


https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base...


https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base...


Thanks.


Eric




EricMunYew_C_Intel
Moderator
3,305 Views

Hi, Magali


Can we close the case if you have no question ?


Thanks.


Eric


Reply