Forum Discussion
Quartus 19.1 NIOS II ED error: Makefile:1012: recipe for target '***.elf' failed
- 5 years ago
Hi!
The problem is solved, due to help of russian Intel distributor's engineering support. Thanks to Roman!
He pointed me to two things:
- need of dividing workspace project and source software directories. It must be different directories inside common project directory.
- use "New' - "NIOS II Application and Bsp from template" for generaion of new project structure. When I was generating new BSP, I used "New" - "NIOS II Board support package" and got such strange error:
Executing: wsl;nios2-bsp hal . ../../qsys_system.sopcinfo
--cpu-name nios2_gen2_0
(D:\Temp\axie_system_controller_restored\software\qsys_bsp)
/bin/bash: -c: line 0: syntax error near unexpected token `;'
/bin/bash: -c: line 0: `;nios2-bsp hal .
../../qsys_system.sopcinfo --cpu-name nios2_gen2_0'
Those advices helps me to build my project succesfuly in Quartus Prime Standart 19.1.
Hi,
I see, your project works with Quartus 18.1 because Eclipse and Quartus are at the same package. From 19.1 Quartus and Eclipse are separated.
I saw a KDB to work around your possible issue, can you try this? [1]
If this does not work with your issue, can you share with me, which steps did you follow to do the 'make all' exactly? So, I can know more about it and do more debug into this.
Thanks.
Best regards.
- Waveform5 years ago
New Contributor
Hi! Thank you for support in my question.
I tried to run in wsl command prompt such command, as was recommended in support article:
make SOPCINFO_FILE=/mnt/d/Temp/axie_system_controller/qsys-system.sopcinfo --no-print-directory -C /mnt/d/Temp/axie_system_controller/Software/hal_bsp/
And I got the message: [BSP build complete]
So, it doesn' change the futher situation. After that, I got the same error.
Also, I added in the application make file such string:
SOPC_FILE := ../../qsys_system.sopcinfo
, and it doesn't helped me too.I suppose, that the problem is in next tool:
nios2-elf-g++.exe -T'D:/Temp/axie_system_controller/Software/hal_bsp/linker.x' -msys-crt0='D:/Temp/axie_system_controller/Software/hal_bsp/obj/HAL/src/crt0.o' -msys-lib=hal_bsp -LD:/Temp/axie_system_controller/Software/hal_bsp/ -Wl,-Map=qsys-app.map -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -mgpopt=global -o qsys-app.elf obj/default/src/Main.o obj/default/src/ad9576.o obj/default/src/dac7568.o obj/default/src/stmpe1600.o -lm -msys-lib=m, which must generate the .elf file, but it doesn't do it.
My be I should try the last version of Quartus Prime standart 20.1?
Best regards, Andrey
- Waveform5 years ago
New Contributor
Hi!
The problem is solved, due to help of russian Intel distributor's engineering support. Thanks to Roman!
He pointed me to two things:
- need of dividing workspace project and source software directories. It must be different directories inside common project directory.
- use "New' - "NIOS II Application and Bsp from template" for generaion of new project structure. When I was generating new BSP, I used "New" - "NIOS II Board support package" and got such strange error:
Executing: wsl;nios2-bsp hal . ../../qsys_system.sopcinfo
--cpu-name nios2_gen2_0
(D:\Temp\axie_system_controller_restored\software\qsys_bsp)
/bin/bash: -c: line 0: syntax error near unexpected token `;'
/bin/bash: -c: line 0: `;nios2-bsp hal .
../../qsys_system.sopcinfo --cpu-name nios2_gen2_0'
Those advices helps me to build my project succesfuly in Quartus Prime Standart 19.1. - WShep15 years ago
Contributor
I have just migrated from 18.1 to 20.1 Lite. I am working on a W10 machine and have installed WSL, Ubuntu, etc. NIOS II SBT is running and I was able to create a new project from template as instructed. I created a project using the "Small Hello World" template. The application and bsp projects were created. Cleaning and building the bsp project works well as does clean the application project. However, when I try to build the application project, I get the following error -
10:03:31 **** Build of configuration Nios II for project test_20_1_7 ****
wsl make all
wslpath: hal_bsp: No such file or directory
Info: Building /mnt/c/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/
make --no-print-directory -C /mnt/c/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/
[BSP build complete]
Info: Compiling hello_world_small.c to obj/default/hello_world_small.o
nios2-elf-gcc.exe -xc -MP -MMD -c -IC:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/HAL/inc -IC:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp -IC:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/drivers/inc -pipe -D__hal__ -DALT_NO_C_PLUS_PLUS -DALT_NO_CLEAN_EXIT -D'exit(a)=_exit(a)' -DALT_NO_EXIT -DALT_USE_DIRECT_DRIVERS -DALT_NO_INSTRUCTION_EMULATION -DALT_USE_SMALL_DRIVERS -DSMALL_C_LIB -DALT_SINGLE_THREADED -Os -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/default/hello_world_small.o hello_world_small.c
Info: Linking test_20_1_7.elf
nios2-elf-g++.exe -T'C:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/linker.x' -msys-crt0='C:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp/obj/HAL/src/crt0.o' -msys-lib= -LC:/a_Nightowl/wds2hdmi/rtl/qsys/software/test_20_1_7_bsp -msmallc -Wl,-Map=test_20_1_7.map -Os -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o test_20_1_7.elf obj/default/hello_world_small.o -lm -msys-lib=m
nios2-elf-g++.exe: error: missing argument to '-msys-lib='
make: *** [test_20_1_7.elf] Error 1
Makefile:1010: recipe for target 'test_20_1_7.elf' failed10:03:34 Build Finished (took 2s.438ms)
I have no idea what this error means. Can any one help me?