MViss4
New Contributor
4 years agoMake dependencies not working for EDS with Quartus Prime Version 20.1.1 Standard Edition
When building a new Nios II application the make dependencies are not working correct. This means that when changing a header file not all related .c files are compiled. Causing incorrect software!
I have attached an example project which demonstrates this:
- main.c calls a printf:
printf("Hello World %d\n",TEST2);
Thus main.c depends on test2.h for the macro TEST2 - main.c calls function myfunc() which is implemented in test2.c and calls a printf:
printf("Hello World %d\n",TEST2);
Thus test2.c is also depending on test2.h for the macro TEST2 - When changing the value of macro TEST2 in test2.h and saving the file and hereafter building the project does NOT recompile main.c and test2.c!
Thus the Make dependecies are not handled correctly and when examining the obj/main.d and obj/test2.d dependency files it can be seen that both files depend on test2.h!
Some how in the make process the dependecy files are not correct generated or interpreted
Causing incorect code which can only be corrected by doing a clean an full rebuild!
Environment used:
- Quartus Prime Version 20.1.1 Build 720 11/11/2020 SJ Standard Edition
- WSL 1 - Ubuntu 18.04 LTS - GNU Make 4.1 Built for x86_64-pc-linux-gnu
- Windows 10 version 1903 (OS Build 18362.1256)
- Eclipse Version: Mars.2 Release (4.5.2) Build id: 20160218-0600