Forum Discussion

dncmrc's avatar
dncmrc
Icon for Occasional Contributor rankOccasional Contributor
5 years ago
Solved

nios2-elf-gcc.exe: error: CreateProcess: No such file or directory

Hi, Windows 10 Pro 2004 19041.450 Quartus Prime Pro 19.4, build 64 All Intel and Nios SW is on a local drive. I get this error in the NiosII shell: "nios2-elf-gcc.exe: error: CreateProc...
  • dncmrc's avatar
    dncmrc
    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/' Makefile

    WSLEN 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.