Forum Discussion
nios2-elf-gcc.exe: error: CreateProcess: No such file or directory
- 5 years ago
As a solution to the issue nios2-elf-gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory we have found useful what follows.
Before running make.exe on the generated Makefile, add this to your bash script:
export WSLENV=PATH/l:${WSLENV}
sed -i 's/\(adjust-path[-mixed]*\) = .*/\1 = $1/' MakefileWSLEN fixes missing pathnames, while sed basically removes the effect of adjust-path.
This is an issue introduced by a Windows update but I still believe Intel should provide a fix or patch for it. We wasted several days on it.
Hi Marco!
Thanks for reaching us,
Please follow the next steps:
- Install WSL
- Open the terminal
- run $ nios2_command_shell.sh
- run the tests you need to make , at this point it should work properly.
As resume, you need to have WSL correctly installed.
Please try those steps and let me know the results.
Best regards,
-Eliath Guzman
I have the same or similar problem.
My wsl (v2) is up to date as is my Win10 version (2004). It appears the problem is paths.
The $PATH in nios command shell contains
/mnt/e/intelFPGA/20.1/nios2eds/bin/gnu/H-i686-pc-linux-gnu/bin
That path doesn't exist in my installation: however this one does
/mnt/e/intelFPGA/20.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin
Neither of those paths (or their windows equivalents) is in my windows path environment or subsequently in my wsl $PATH.
Should the 20.1 quartus full install have added a path for nios2eds, and if so which?
- SHard25 years ago
Occasional Contributor
Hi
I have exactly the same error. Is there any resolution to this?
Regards
Simon
- Suri5 years ago
New Contributor
As a temporary solution, I just found that it is working with normal windows command prompt instead of WSL. So, I just opened windows command prompt with "cmd" command. Then, set the path (that may vary on your system) as below.
set PATH=C:\intelFPGA_pro\20.1\nios2eds\bin\gnu\H-x86_64-mingw32\bin;%PATH%
And, built my library using "nios2-elf-gcc.exe" commands. Only thing, unix-style shell commands won't work. I just replaced "rm -f" with "del" in my makefile.
----
Hope Intel will provide the proper solution to this very soon!!
- SHard25 years ago
Occasional Contributor
Good morning, and thanks for the suggestion I will give it a try.
Regards
Simon