|
Cygwin and gdb - error creating process ( error 5 ) |
Hyena_
Member #8,852
July 2007
|
Yesterday I encountered a very strange problem when attempting to debug my game under Cygwin using GDB. $ gdb arion.exe It appears that the very same error shows up whatever program I attempt to debug. I googled for hours and even downloaded gdb's src code to search for error 5 but there was no use. Neither firewall nor antivirus causes it. Can anyone give me an idea how to get it fixed? Meanwhile I try one more thing - full deletion of Cygwin and then reinstall and download all libraries again. EDIT: Problem solved. I deleted cygwin from drive D leaving nothing to remain. Then I installed it from scratch to the C:\cygwin directory ( no longer D:\cygwin ) and I chose only gdb and some gdbm ( devel ) libraries. After that gdb works just fine. I don't know what I did right this time but when it's not broken, don't fix it
|
BAF
Member #2,981
December 2002
|
Why are you using cygwin? |
Billybob
Member #3,136
January 2003
|
Arthur Kalliokoski
Second in Command
February 2005
|
Quote: Why aren't you using cygwin? It wasn't made by his hero, savior of the world from communist open-source software, BillG. They all watch too much MSNBC... they get ideas. |
BAF
Member #2,981
December 2002
|
Cygwin is awful. I'd rather use a barbed wire fence to wipe my ass after I take a shit than use cygwin. It's the red-headed, cheap chinese knock-off of Linux. |
Billybob
Member #3,136
January 2003
|
BAF said: cheap chinese knock-off of Linux. Linux is made in China.
|
BAF
Member #2,981
December 2002
|
That doesn't mean there doesn't exist a cheap chinese knock-off of it. |
Billybob
Member #3,136
January 2003
|
I wonder if there is a cheap Chinese knockoff of Allegro?
|
Hyena_
Member #8,852
July 2007
|
Ok I got gdb working but soon after that I ran into another problem: $ make clean my make.exe doesn't simply work. This time reinstalling the whole Cygwin didn't give me any results. When I gave a command "make -d" I got this: I'm using cygwin because I can't install any linux here. The funny thing about the whole problem is that cygwin usually has worked fine under other computers but on my laptop it has problems.
|
Billybob
Member #3,136
January 2003
|
What OS are you running? Perhaps try running Cygwin as administrator (Windows Vista/7)? Check the permissions on make? (ls -la /bin/make)
|
BAF
Member #2,981
December 2002
|
Billybob said: I wonder if there is a cheap Chinese knockoff of Allegro? SDL? Or is that the other way around? |
Tobias Dammers
Member #2,604
August 2002
|
BAF said: Cygwin is awful. I'd rather use a barbed wire fence to wipe my ass after I take a shit than use cygwin. It's the red-headed, cheap chinese knock-off of Linux.
It tries to make Windows behave like a Unix. That's an admirable cause, and it does an amazing job, but the fact is, Windows is Windows and doesn't like being bent like that. --- |
Hyena_
Member #8,852
July 2007
|
Turned out that my COMODO firewall blocked make.exe from creating a process of gcc.exe. Soon after that I got make.exe working but it didn't compile me an executable still yelling ACCESS DENIED. I used process monitor n stuff but it didn't help, finally just out of curiosity I checked the security rights of make.exe and noticed that it was not allowed to execute by any user ( even admin ). I gave the permissions and just in case gave them to gcc.exe as well.. However, now when I typed "make" I got this MS-DOS 16 bit application error and a message that cpu was given some incorrect instructions. Sooooo, after half an hour I found out that I had replaced the original make.exe with the one I found from here: http://www.equation.com/servlet/equation.cmd?fa=make After I had restored the original make.exe I got everything perfectly working. Problems solved.
|
Tobias Dammers
Member #2,604
August 2002
|
I had to do this to make gdb work: --- |
Thomas Fjellstrom
Member #476
June 2000
|
sudo aptitude install build-essential gdb is what I'd do. -- |
|