Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI was able to eliminate the assembly compilation error by adding "C:\altera\11.0\quartus\bin\cygwin\bin" and "C:\altera\11.0\nios2eds\bin" to the Windows PATH environment variable.
However, after resolving this issue, I hit another impasse while working through the Altera Monitor Program Tutorial. I tried to compile a C program and found that Monitor tried to pass a compiler flag that GCC4 no longer supports. I was not able to resolve this issue. I contacted Altera Support concerning the nios2-elf-as issue and their reply was "apparently, nios2-elf-as is using Nios II GCC3 version which is not available in the current GCC4". This is simply untrue. I can execute nios2-elf-as with only GCC4 installed if I do so from the command-line. Altera support's solution to the nios2-elf-as issue was to install the Nios II legacy tool located here: https://www.altera.com/download/software/nios-ii I was trying to avoid installing the Nios II legacy tool, but once I concluded that I could not solve the C compiler issue. I went ahead and did a clean install of Quartus II version 11, Nios II legacy tool, and the Altera UPDS. Turns out installing the Nios II legacy tool did indeed solve the nios2-elf-as issue (although not for the reason Altera gave) and successfully compiled the C program. I would have liked to avoid installing the Nios II legacy tool, but I must admit that the coexistence of GCC3 and GCC4 works better than I expected.