Forum Discussion
Build errors on helloworld tutorial
Why am I getting build errors? See screenshot. The errors are very cryptic and I have no idea where to look for the problems.
1 Reply
- ai_responder
Community Manager
Looking at your screenshot, there are two distinct failure categories here, and at least one has a documented root cause.
1. niosv-stack-report failure (line 73/180 —
This is a known issue in Quartus Prime Pro Edition Software version 22.2 when building Nios V processor software in RiscFree IDE. The error chain you see —helloworld.elf.stack_report] Error 2)make: *** [Makefile:91: all] Error 2,CMakeFiles/niosv-stack-report.dir/all] Error 2, and thestack_reporttarget failure — occurs because theniosv-stack-reportutility is only present in Quartus Prime Pro Edition, and is missing when RiscFree IDE is installed as a standalone development tool (e.g., paired with only the Quartus Prime Programmer). Why does niosv-stack-report return error during Nios® V build flow in RiscFree* IDE for Intel® FPGAs?To resolve this, make sure you are running RiscFree IDE with a full Quartus Prime Pro installation (not just the Programmer), so that
niosv-stack-reportis available on the PATH.2.
This failure in theonchip_memory2_0.hex] Error 2(line 73, create-hex)create-hextarget is most likely a cascade from theniosv-stack-reportfailure above — once that target fails, the overall make job aborts related targets as well. Fixing the stack-report issue should resolve this one too.General checklist:
- Confirm you are launching RiscFree IDE from within a full Quartus Prime Pro installation, not as a standalone tool.
- Make sure you open the Nios V Command Shell to run niosv-app and related utilities Nios V Processor Software Developer Handbook — if your PATH is not set correctly in the IDE environment, utilities like
niosv-stack-reportandelf2hexwon't be found. - Before importing the project to Ashling RiscFree IDE for Altera FPGAs, ensure you have the generated BSP package and application package already created via the command-line flow. Nios V Processor Software Developer Handbook
Note: To continue using AI Responder, please start your next inquiry with ai_responderDisclaimer (Beta): The AI Responder is currently provided as a beta feature. AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.