Author Topic: Error creating process /cygdrive/c/Dummy/C:/Dummy/bin/Debug/Dummy.exe, (error 2)  (Read 45087 times)

Offline Emiliya87

  • Single posting newcomer
  • *
  • Posts: 3
Hello, I have installed code blocks to my windows 10. everything is good except when I try to start debugging it shows this error: Error creating process /cygdrive/c/Dummy/C:/Dummy/bin/Debug/Dummy.exe, (error 2). Can you help me with this issue please?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Are you using cygwin?

Offline Emiliya87

  • Single posting newcomer
  • *
  • Posts: 3

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 679
This is a known problem that has existed for the last 10 years and was finally fixed in the nightly build in August 2021.

There are two options to resolve this as follows:
1) Grab the latest nightly C::B build and use it
2) Grab my latest unofficial C::B installers. See https://forums.codeblocks.org/index.php/topic,24592.0.html for info


If you still cannot get it working please supply the following info:
1) Cygwin install directory
2) When you last updated Cygwin
3) GDB version
4) Code::Blocks version
5) Code::Blocks build date
6) Code::Blocks type - x86 or x64






Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 679
I only know english. Try the latest nightly as it includes the changes.

Offline vici

  • Single posting newcomer
  • *
  • Posts: 3
I do not know if this problem was actually fully closed, but I just ran into it these days. Sorry to wake-up the topic after all this time.

Background info: I was forced to switch to Cygwin C compiler, because MinGW compilers have sizeof(unsigned long) == 32, instead of my need (==64). That makes a great difference when paired with the GNU GMP library.

Until now, I used whatever compiler was available. And I actually preferred one of the MinGW packages, for having a working conio.h (but overall less important, and now I lost it). And changing the compiler / debugger to cygwin, I lost the ability to debug.

Of course, I would prefer to not recompile Codeblocks from sources, or do other hacks, if possible. :)

=======================================
Debugger output (from debugger window in Codeblocks:
=======================================
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: Z:\_progs\_progsData\cb\myprog\
Adding source dir: Z:\_progs\_progsData\cb\myprog\
Adding file: Z:\_progs\_progsData\cb\myprog\bin\Debug\myprog.exe
Changing directory to: Z:/_progs/_progsData/cb/myprog/.
Set variable: PATH=.;Z:\_progs\cygwin\bin;Z:\_progs\cygwin;Z:\_progs\cb_25_03\MinGW\bin;Z:\_progs\cb_25_03\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\ORACLE\Oracle920\bin;C:\ORACLE\ORANT\BIN;C:\ORACLE\ORADEV6i\BIN;C:\ORACLE\ORADEV6i\jdk\bin;C:\Program Files (x86)\Oracle\jre\1.1.8\bin;C:\Program Files (x86)\Oracle\jre\1.3.1\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\y147694\AppData\Local\Microsoft\WindowsApps
Starting debugger: Z:\_progs\cygwin\bin\gdb.exe -nx -fullname -quiet  -args Z:/_progs/_progsData/cb/myprog/bin/Debug/myprog.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) (Cygwin 14.2-1) 14.2
Error creating process /cygdrive/z/_progs/_progsData/cb/myprog/Z:/_progs/_progsData/cb/myprog/bin/Debug/myprog.exe, (error 2: The system cannot find the file specified.)
Debugger finished with status 0

=======================================
Codeblocks info (help -> about)
=======================================
25.03, build mar 30, 2025, 15:32:43, wxWidgets 3.2.7, gcc 14.2.0, 64 bits (It would be great if I could copy / paste this info, instead of re-typing it)

Name                    : Code::Blocks
Version                 : 25.03-r13644
SDK Version             : 2.25.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 10 (build 19045), 64-bit edition
Scaling factor          : 1.000000
Detected scaling factor : 1.000000
Display PPI             : 96x96
Display count           : 2
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary
Display 1 (\\.\DISPLAY2): XY=[1920,-115]; Size=[1920,1200];

wxWidgets Library (wxMSW port)
Version 3.2.7 (Unicode: wchar_t, debug level: 1),
compiled at Mar 25 2025 17:16:27

Runtime version of toolkit used is 10.0.19045.

===================
Environment:  Windows 10 Pro, 22H2, 8 GB RAM

cygwin - up-to-date (including all installed packages)

setup: 2.934 (x86_64)
mirror: mirrors.kernel.org (I used previously another mirror, but it had missing packages which I needed, changing the mirror fixed my problems)
cygwin gdb (from the setup window): 14.2-1