Description
This is a known issue with Nios® II EDS software versions 10.0,10.1,11.0 and 11.1 using GCC 4 tool chain.
Here are the example of error messages:
nios2-elf-gcc.exe: /cygdrive/d/test/hello.c: No such file or directory
nios2-elf-gcc.exe: no input files
This will be fixed in future version of Quartus II software.
Resolution
(a) Use GCC 3 tool chain if available
In the Windows operating system, on the Start menu,
point to Programs -> Altera -> Nios II EDS <version> -> Legacy Nios II Tools
and click Nios II <version> Command Shell [gcc3]
OR
(b) Use other path name formats like Quoted Windows, Escaped Windows, or Mixed.
For example, the hello.c file resides in D:\testDir directory
// Quoted Windows
nios2-elf-gcc "D:\testDir\hello.c"
// Escaped Windows
nios2-elf-gcc D:\\testDir\\hello.c
// Mixed
nios2-elf-gcc D:/testDir/hello.c
In the Windows operating system, on the Start menu,
point to Programs -> Altera -> Nios II EDS <version> -> Legacy Nios II Tools
and click Nios II <version> Command Shell [gcc3]
OR
(b) Use other path name formats like Quoted Windows, Escaped Windows, or Mixed.
For example, the hello.c file resides in D:\testDir directory
// Quoted Windows
nios2-elf-gcc "D:\testDir\hello.c"
// Escaped Windows
nios2-elf-gcc D:\\testDir\\hello.c
// Mixed
nios2-elf-gcc D:/testDir/hello.c