Forum Discussion
Issue in Nios Eclipse : elf not generated
- 6 years ago
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.
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.
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