Cygwin refuses to work...

Posted by Findecano on Sun 21 Oct 2007 11:18 PM — 17 posts, 56,019 views.

#0
Ok, so pretty much everything is installed on Cygwin, yet... it refuses to work? basically all im getting each time I type make is the following:


make
make -s smaug
   Compiling o/imc.o....
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2


So basically i've tried a few things, installin all the Lib files, and devel files on Cygwin.

Played around with the makefile, commenting stuff out and recommenting them. And still have no luck.

commented out imc, still no luck.

I've pretty much tried everything I can think of, has anyone else had this problem? any suggestions guys?
USA #1
Is that the full error? It shouldn't be. You should be getting a message saying what line is getting an error.
#2
Yeh Zeno, thats the full error message.
Thats whats leaving me stumped too...

I'm trying to get cygwin to work for a mate, and this just keeps happening. Strange =/
USA #3
What happens when you try to compile manually (using gcc)?
#4
Bugger all too...
It just does the command, and then goes back to the prompt.

Maybe I'm doin something wrong? lol =/
USA #5
Can you show me the exact input and output?
#6

frankie@SKIPPY
gcc act_comm.c

frankie@SKIPPY


so I also tried, using -c and -S. such as, gcc -S act_comm.c
USA #7
And you don't get an .o file or a.out?

Might be something to bring to the Cygwin support mail list.
#8
nope, get nothing what so ever.
But yeh, I'll pop it on Cygwin's website. See if they come up with out.

Cheers Zeno.
USA #9
Make sure the o directory exists. Winzip doesn't create empty directories during extraction, so if you unzipped using that it could be your problem. I don't remember if the makefile takes care of creating the appropriate directories.

Of course, this doesn't explain why a straight compile didn't work...

If you could, please do:

gcc -c act_comm.c -o act_comm.o

and then see if act_comm.o appears in the current directory.
#10
Nope. It doesn't... it just acts like Make isn't even working properly.

Which ever .c file is first, it just refuses to compile it, no matter which one it is.
USA #11
First let's isolate the problem; don't use make for now (that's why I asked about just compiling one file). We need to find out if it's a compiler problem before we start worrying about make.

Here's something to try: (in src)
ls -l
gcc -c act_comm.c -o act_comm.o
ls -ltr

please paste the exact output from that sequence.
USA #12
Also if that doesn't work, perhaps start simple. Make your own .c file with a few lines of code and try that.
USA #13
That's a really good idea, actually. Find something like a hello world program in c on the web (there's a bunch) and make sure that at least compiles. If it doesn't, we know that there's something wrong with your cygwin gcc installation.
#14
Sorry its taken a while...


User@COMPUTER /cygdrive/c/dod/smaugfuss/src
$ ls -l
total 5978
-rwxrwxr-x+ 1 User None   3241 Oct 21 19:08 Makefile
-rwxrwxr-x+ 1 User None  94378 Oct 19 12:58 act_comm.c
-rwxrwxr-x+ 1 User None  93397 Oct 18 15:44 act_comm.c.beep
-rwxrwxr-x+ 1 User None 179237 Oct 18 17:09 act_info.c
-rwxrwxr-x+ 1 User None  85358 Oct 18 11:10 act_move.c
-rwxrwxr-x+ 1 User None  85701 Jul 22 12:14 act_move.c.old
-rwxrwxr-x+ 1 User None  98712 Oct 18 11:10 act_obj.c
-rwxrwxr-x+ 1 User None 320308 Oct 19 13:05 act_wiz.c
-rwxrwxr-x+ 1 User None   5495 Oct 18 11:11 alias.c
-rwxrwxr-x+ 1 User None   2431 Oct 18 11:11 alias.h
-rwxrwxr-x+ 1 User None      0 Jul  9 22:04 author
-rwxrwxr-x+ 1 User None  39521 Oct 18 11:11 ban.c
-rwxrwxr-x+ 1 User None   5003 Oct 18 11:11 bet.h
-rwxrwxr-x+ 1 User None  19659 Oct 18 11:11 bits.c
-rwxrwxr-x+ 1 User None   1418 Oct 18 11:11 bits.h
-rwxrwxr-x+ 1 User None  59313 Oct 18 11:11 boards.c
-rwxrwxr-x+ 1 User None 296160 Oct 19 12:58 build.c
-rwxrwxr-x+ 1 User None 296152 Oct 18 15:29 build.c.beep
-rwxrwxr-x+ 1 User None 254006 Aug  4 14:58 build.c.old
-rwxrwxr-x+ 1 User None  38136 Oct 18 11:11 chess.c
-rwxrwxr-x+ 1 User None   2235 Oct 18 11:11 chess.h
-rwxrwxr-x+ 1 User None  81174 Oct 18 11:11 clans.c
-rwxrwxr-x+ 1 User None  50693 Oct 18 11:11 color.c
-rwxrwxr-x+ 1 User None   9847 Oct 18 11:11 color.h
-rwxrwxr-x+ 1 User None 105819 Oct 18 11:11 comm.c
-rwxrwxr-x+ 1 User None  12050 Oct 18 11:11 comments.c
-rwxrwxr-x+ 1 User None  14439 Oct 18 11:11 const.c
-rwxrwxr-x+ 1 User None     18 Oct 18 11:11 count
-rwxrwxr-x+ 1 User None 259322 Oct 19 18:34 db.c
-rwxrwxr-x+ 1 User None 191497 Jul 18 15:29 db.c.old
-rwxrwxr-x+ 1 User None  46719 Oct 18 11:11 deity.c
-rwxrwxr-x+ 1 User None   6067 Oct 18 11:11 dependencies.d
-rwxrwxr-x+ 1 User None  10611 Oct 18 11:11 dns.c
-rwxrwxr-x+ 1 User None   2076 Oct 18 11:11 dns.h
-rwxrwxr-x+ 1 User None 125718 Oct 18 11:11 fight.c
-rwxrwxr-x+ 1 User None    213 Oct 18 11:11 grind
-rwxrwxr-x+ 1 User None 137404 Oct 18 11:11 handler.c
-rwxrwxr-x+ 1 User None   7848 Oct 18 11:11 hashstr.c
-rwxrwxr-x+ 1 User None  10601 Oct 18 11:11 hint.c
-rwxrwxr-x+ 1 User None   1659 Oct 18 11:11 hint.h
-rwxrwxr-x+ 1 User None  24770 Oct 18 11:11 hotboot.c
-rwxrwxr-x+ 1 User None   2275 Oct 18 11:11 hotboot.h
-rwxrwxr-x+ 1 User None 228788 Oct 19 18:11 imc.c
-rwxrwxr-x+ 1 User None  15591 Oct 18 11:11 imc.h
-rwxrwxr-x+ 1 User None   3925 Oct 18 11:11 imccfg.h
-rwxrwxr-x+ 1 User None   9205 Oct 18 11:11 imm_host.c
-rwxrwxr-x+ 1 User None  30245 Oct 18 11:11 interp.c
-rwxrwxr-x+ 1 User None   2259 Oct 18 11:11 lines
-rwxrwxr-x+ 1 User None  62481 Oct 18 11:11 liquids.c
-rwxrwxr-x+ 1 User None   3190 Oct 18 11:11 liquids.h
-rwxrwxr-x+ 1 User None 200770 Oct 18 11:11 magic.c
-rwxrwxr-x+ 1 User None   7935 Oct 18 11:11 makeobjs.c
-rwxrwxr-x+ 1 User None  24491 Oct 18 11:11 mapout.c
-rwxrwxr-x+ 1 User None  20028 Oct 18 11:11 mapper.c
-rwxrwxr-x+ 1 User None   1911 Oct 18 11:11 mapper.h
-rwxrwxr-x+ 1 User None   5143 Oct 18 11:11 mccp.c
-rwxrwxr-x+ 1 User None   1614 Oct 18 11:11 mccp.h
-rwxrwxr-x+ 1 User None  42897 Oct 18 11:11 misc.c
-rwxrwxr-x+ 1 User None  35119 Oct 18 11:12 mpxset.c
-rwxrwxr-x+ 1 User None 165055 Oct 19 12:58 mud.h
-rwxrwxr-x+ 1 User None 164990 Oct 18 11:12 mud.h.beep
-rwxrwxr-x+ 1 User None 159222 Jul 25 17:57 mud.h.old
-rwxrwxr-x+ 1 User None  86935 Oct 18 11:12 mud_comm.c
-rwxrwxr-x+ 1 User None  85316 Jul 15 20:26 mud_comm.c.old
-rwxrwxr-x+ 1 User None 109245 Oct 18 11:12 mud_prog.c
-rwxrwxr-x+ 1 User None  99644 Jul 18 17:59 mud_prog.c.old
-rwxrwxr-x+ 1 User None  28636 Oct 18 11:12 new_auth.c
-rwxrwxr-x+ 1 User None   3138 Oct 18 11:12 new_auth.h
-rwxrwxr-x+ 1 User None  25310 Oct 18 11:12 news.c
-rwxrwxr-x+ 1 User None   3095 Oct 18 11:12 news.h
-rwxrwxr-x+ 1 User None    183 Oct 18 12:07 nohup.out
drwx------+ 2 User None      0 Oct 21 19:11 o
-rwxrwxr-x+ 1 User None  15350 Oct 18 11:12 pfiles.c
-rwxrwxr-x+ 1 User None   1992 Oct 18 11:12 pfiles.h
-rwxrwxr-x+ 1 User None   6853 Oct 18 11:12 planes.c
-rwxrwxr-x+ 1 User None   1477 Oct 18 11:12 planes.h
-rwxrwxr-x+ 1 User None  78609 Oct 18 11:12 player.c
-rwxrwxr-x+ 1 User None  79672 Oct 18 11:12 polymorph.c
-rwxrwxr-x+ 1 User None     30 Oct 18 11:12 qstart
-rwxrwxr-x+ 1 User None  27572 Oct 18 11:12 renumber.c
-rwxrwxr-x+ 1 User None  46283 Oct 18 11:12 reset.c
-rwxrwxr-x+ 1 User None   3431 Oct 18 11:12 resolver.c
-rwxrwxr-x+ 1 User None  88295 Oct 18 11:12 save.c
-rwxrwxr-x+ 1 User None  23367 Oct 18 11:12 services.c
-rwxrwxr-x+ 1 User None   9942 Oct 18 11:12 sha256.c
-rwxrwxr-x+ 1 User None   2035 Oct 18 11:12 sha256.h
-rwxrwxr-x+ 1 User None  45187 Oct 18 11:12 shops.c
-rwxrwxr-x+ 1 User None     50 Oct 18 11:19 shutdown.txt
-rwxrwxr-x+ 1 User None 180050 Oct 18 11:12 skills.c
-rwxrwxr-x+ 1 User None 133496 Oct 18 11:13 smaug.def
-rwxrwxr-x+ 1 User None 287179 Oct 18 11:13 smaug.exp
-rwxrwxr-x+ 1 User None  29115 Oct 18 11:13 special.c
-rwxrwxr-x+ 1 User None    988 Oct 18 11:24 startup
-rwxrwxr-x+ 1 User None    988 Sep  3  2005 startupB
-rwxrwxr-x+ 1 User None  54443 Oct 18 11:13 tables.c
-rwxrwxr-x+ 1 User None  11261 Oct 18 11:13 track.c
-rwxrwxr-x+ 1 User None  89001 Oct 18 11:13 update.c
-rwxrwxr-x+ 1 User None  16239 Oct 18 11:13 variables.c
-rwxrwxr-x+ 1 User None     70 Oct 18 11:13 vg_suppress.supp
#15

User@COMPUTER /cygdrive/c/dod/smaugfuss/src
$ gcc -c act_comm.c -o act_comm.o

User@COMPUTER /cygdrive/c/dod/smaugfuss/src
$ ls -ltr
total 5978
-rwxrwxr-x+ 1 User None    988 Sep  3  2005 startupB
-rwxrwxr-x+ 1 User None      0 Jul  9 22:04 author
-rwxrwxr-x+ 1 User None  85316 Jul 15 20:26 mud_comm.c.old
-rwxrwxr-x+ 1 User None 191497 Jul 18 15:29 db.c.old
-rwxrwxr-x+ 1 User None  99644 Jul 18 17:59 mud_prog.c.old
-rwxrwxr-x+ 1 User None  85701 Jul 22 12:14 act_move.c.old
-rwxrwxr-x+ 1 User None 159222 Jul 25 17:57 mud.h.old
-rwxrwxr-x+ 1 User None 254006 Aug  4 14:58 build.c.old
-rwxrwxr-x+ 1 User None  85358 Oct 18 11:10 act_move.c
-rwxrwxr-x+ 1 User None  98712 Oct 18 11:10 act_obj.c
-rwxrwxr-x+ 1 User None   5495 Oct 18 11:11 alias.c
-rwxrwxr-x+ 1 User None   5003 Oct 18 11:11 bet.h
-rwxrwxr-x+ 1 User None  39521 Oct 18 11:11 ban.c
-rwxrwxr-x+ 1 User None   2431 Oct 18 11:11 alias.h
-rwxrwxr-x+ 1 User None   1418 Oct 18 11:11 bits.h
-rwxrwxr-x+ 1 User None  19659 Oct 18 11:11 bits.c
-rwxrwxr-x+ 1 User None  59313 Oct 18 11:11 boards.c
-rwxrwxr-x+ 1 User None   2235 Oct 18 11:11 chess.h
-rwxrwxr-x+ 1 User None  38136 Oct 18 11:11 chess.c
-rwxrwxr-x+ 1 User None  81174 Oct 18 11:11 clans.c
-rwxrwxr-x+ 1 User None   9847 Oct 18 11:11 color.h
-rwxrwxr-x+ 1 User None  50693 Oct 18 11:11 color.c
-rwxrwxr-x+ 1 User None     18 Oct 18 11:11 count
-rwxrwxr-x+ 1 User None  14439 Oct 18 11:11 const.c
-rwxrwxr-x+ 1 User None  12050 Oct 18 11:11 comments.c
-rwxrwxr-x+ 1 User None 105819 Oct 18 11:11 comm.c
-rwxrwxr-x+ 1 User None  10611 Oct 18 11:11 dns.c
-rwxrwxr-x+ 1 User None   6067 Oct 18 11:11 dependencies.d
-rwxrwxr-x+ 1 User None  46719 Oct 18 11:11 deity.c
-rwxrwxr-x+ 1 User None   2076 Oct 18 11:11 dns.h
-rwxrwxr-x+ 1 User None    213 Oct 18 11:11 grind
-rwxrwxr-x+ 1 User None 125718 Oct 18 11:11 fight.c
-rwxrwxr-x+ 1 User None   1659 Oct 18 11:11 hint.h
-rwxrwxr-x+ 1 User None  10601 Oct 18 11:11 hint.c
-rwxrwxr-x+ 1 User None   7848 Oct 18 11:11 hashstr.c
-rwxrwxr-x+ 1 User None 137404 Oct 18 11:11 handler.c
-rwxrwxr-x+ 1 User None   2275 Oct 18 11:11 hotboot.h
-rwxrwxr-x+ 1 User None  24770 Oct 18 11:11 hotboot.c
-rwxrwxr-x+ 1 User None   9205 Oct 18 11:11 imm_host.c
-rwxrwxr-x+ 1 User None   3925 Oct 18 11:11 imccfg.h
-rwxrwxr-x+ 1 User None  15591 Oct 18 11:11 imc.h
-rwxrwxr-x+ 1 User None   2259 Oct 18 11:11 lines
-rwxrwxr-x+ 1 User None  30245 Oct 18 11:11 interp.c
-rwxrwxr-x+ 1 User None   3190 Oct 18 11:11 liquids.h
-rwxrwxr-x+ 1 User None  62481 Oct 18 11:11 liquids.c
-rwxrwxr-x+ 1 User None   7935 Oct 18 11:11 makeobjs.c
-rwxrwxr-x+ 1 User None 200770 Oct 18 11:11 magic.c
-rwxrwxr-x+ 1 User None   1911 Oct 18 11:11 mapper.h
-rwxrwxr-x+ 1 User None  20028 Oct 18 11:11 mapper.c
-rwxrwxr-x+ 1 User None  24491 Oct 18 11:11 mapout.c
-rwxrwxr-x+ 1 User None  42897 Oct 18 11:11 misc.c
-rwxrwxr-x+ 1 User None   1614 Oct 18 11:11 mccp.h
-rwxrwxr-x+ 1 User None   5143 Oct 18 11:11 mccp.c
-rwxrwxr-x+ 1 User None  35119 Oct 18 11:12 mpxset.c
-rwxrwxr-x+ 1 User None  86935 Oct 18 11:12 mud_comm.c
-rwxrwxr-x+ 1 User None 164990 Oct 18 11:12 mud.h.beep
-rwxrwxr-x+ 1 User None  28636 Oct 18 11:12 new_auth.c
-rwxrwxr-x+ 1 User None 109245 Oct 18 11:12 mud_prog.c
-rwxrwxr-x+ 1 User None   3095 Oct 18 11:12 news.h
-rwxrwxr-x+ 1 User None  25310 Oct 18 11:12 news.c
-rwxrwxr-x+ 1 User None   3138 Oct 18 11:12 new_auth.h
-rwxrwxr-x+ 1 User None   1477 Oct 18 11:12 planes.h
-rwxrwxr-x+ 1 User None   6853 Oct 18 11:12 planes.c
-rwxrwxr-x+ 1 User None   1992 Oct 18 11:12 pfiles.h
-rwxrwxr-x+ 1 User None  15350 Oct 18 11:12 pfiles.c
-rwxrwxr-x+ 1 User None  78609 Oct 18 11:12 player.c
-rwxrwxr-x+ 1 User None     30 Oct 18 11:12 qstart
-rwxrwxr-x+ 1 User None  79672 Oct 18 11:12 polymorph.c
-rwxrwxr-x+ 1 User None  27572 Oct 18 11:12 renumber.c
-rwxrwxr-x+ 1 User None   3431 Oct 18 11:12 resolver.c
-rwxrwxr-x+ 1 User None  46283 Oct 18 11:12 reset.c
-rwxrwxr-x+ 1 User None  88295 Oct 18 11:12 save.c
-rwxrwxr-x+ 1 User None   2035 Oct 18 11:12 sha256.h
-rwxrwxr-x+ 1 User None   9942 Oct 18 11:12 sha256.c
-rwxrwxr-x+ 1 User None  23367 Oct 18 11:12 services.c
-rwxrwxr-x+ 1 User None  45187 Oct 18 11:12 shops.c
-rwxrwxr-x+ 1 User None 180050 Oct 18 11:12 skills.c
-rwxrwxr-x+ 1 User None 133496 Oct 18 11:13 smaug.def
-rwxrwxr-x+ 1 User None  29115 Oct 18 11:13 special.c
-rwxrwxr-x+ 1 User None 287179 Oct 18 11:13 smaug.exp
-rwxrwxr-x+ 1 User None  11261 Oct 18 11:13 track.c
-rwxrwxr-x+ 1 User None  54443 Oct 18 11:13 tables.c
-rwxrwxr-x+ 1 User None  89001 Oct 18 11:13 update.c
-rwxrwxr-x+ 1 User None     70 Oct 18 11:13 vg_suppress.supp
-rwxrwxr-x+ 1 User None  16239 Oct 18 11:13 variables.c
-rwxrwxr-x+ 1 User None     50 Oct 18 11:19 shutdown.txt
-rwxrwxr-x+ 1 User None    988 Oct 18 11:24 startup
-rwxrwxr-x+ 1 User None    183 Oct 18 12:07 nohup.out
-rwxrwxr-x+ 1 User None 296152 Oct 18 15:29 build.c.beep
-rwxrwxr-x+ 1 User None  93397 Oct 18 15:44 act_comm.c.beep
-rwxrwxr-x+ 1 User None 179237 Oct 18 17:09 act_info.c
-rwxrwxr-x+ 1 User None  94378 Oct 19 12:58 act_comm.c
-rwxrwxr-x+ 1 User None 296160 Oct 19 12:58 build.c
-rwxrwxr-x+ 1 User None 165055 Oct 19 12:58 mud.h
-rwxrwxr-x+ 1 User None 320308 Oct 19 13:05 act_wiz.c
-rwxrwxr-x+ 1 User None 228788 Oct 19 18:11 imc.c
-rwxrwxr-x+ 1 User None 259322 Oct 19 18:34 db.c
-rwxrwxr-x+ 1 User None   3241 Oct 21 19:08 Makefile
drwx------+ 2 User None      0 Oct 21 19:11 o


I also tried hello world, but it had none of that either.
Any ideas?
USA #16
So hello world didn't work either? Well, what I would do at this point is to re-run the Cygwin setup program and try forcing a reinstall of the gcc package. Your gcc seems to be pretty broken, so that's a good way to start.