Compiling error in Cygwin: no such file or directory...

Posted by Nico78 on Sun 07 Dec 2014 12:31 AM — 7 posts, 34,316 views.

#0
Hello all,

I've searched and searched and can't quite find an answer to my problem.

I am a newbie to Cygwin, and as such, don't know if this error is the issue of a package I didn't download, or something in the files themselves. To be certain, I downloaded two codebases (ROM 2.4b4 and SMAUG 1.8).

I can see under ls my Makefile, and all the .c and .h files.
---
When I 'make' for ROM, I get these errors:

gcc -c -Wall -O -g update.c
gcc: error: spawn: No such file or directory
Makefile:18: recipe for target `update.o' failed
make: *** [update.o] Error 1

And they show up for most of the files, but not all of them. It still doesn't make any .o files.
---
When I 'make' for SMAUG, I get:

make smaug
make[1]: Entering directory `/home/Nico/smaug1.8/src'
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_comm.c
gcc: error: spawn: No such file or directory
Makefile:73: recipe for target `act_comm.o' failed
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/Nico/smaug1.8/src'
Makefile:63: recipe for target `all' failed
make: *** [all] Error 2
---
I'm hopeful that this is something simple and I can chalk it up to my dubious newbiousness, but any help that can be offered, I'd sincerely appreciate.
USA Global Moderator #1
is there a configure file?
Australia Forum Administrator #2
Are they old? Like, from this site? I doubt ROM will compile under the latest C compiler, they keep tightening up the rules.

I suggest you download SmaugFUSS:

http://www.smaugmuds.org/
#3
@Fiendish: I'm not sure. I did a check on Cygwin just to make sure I had everything and only two files came back incomplete - mutt, the mail prog, and the Cygwin.doc which is just help file stuff. Outside of that, I'm not certain how to get to a config file in Cyg.

@Nick: The ROM files are definitely ancient, and the SMAUG I had was from 2007. I'll give the new one a whirl and cross my fingers.

Thank you both for the reply!
#4
Looks like it's something in Cygwin. Downloaded the new Smaug file that was posted 11/2014 and still got the same error:

$ make smaug
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_comm.c
gcc: error: spawn: No such file or directory
Makefile:73: recipe for target `act_comm.o' failed
make: *** [act_comm.o] Error 1

Even attempting to compile a basic 8-line, 'hello world' C code, Cyg still pops out a "No such file or directory."
Australia Forum Administrator #5
Which Smaug file? Their code is on GitHub now:

https://github.com/InfiniteAxis/SmaugFUSS
#6
I'd better post an update!

I figured out my issue. Apparently, when I installed Cygwin, the packages I hand picked, I hand picked them >not< to install. (Yeah, I'm that newb.) So, I figured I had the space to install the massive Cygwin prog, I deleted what I had, then installed the full program (who knows, I might decide to learn Ruby or Python someday...).

After that, the RoM code I had (the codebase I'm most familiar with) began to compile. I did have some hiccups with certain variables, but quick tweaks banished them.

So, I'm compiled and running with RoM2b5. All systems go.

Thank you for the replies! I, for one, am glad you're still around, Nick. There aren't a ton of MUD gurus left anymore.

Thanks again!
Nico