Thread: Compiling Rom24 MUD with cygwin

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Compiling Rom24 MUD with cygwin

    I am trying to compile rom24b6 with cygwin.
    This is what I get:
    Code:
    C:\Programs\Rom24\src>make
    gcc -c -Wall -O -g  act_comm.c
    make: *** [act_comm.o] Error 1
    It SHOULD tell me something about the errors, but it just says "Error 1"? It's quite strange though, I searched google, no identical problems.
    This is the makefile:
    Code:
    CC      = gcc
    PROF    = -O -g
    NOCRYPT =
    C_FLAGS =  -Wall $(PROF) $(NOCRYPT)
    L_FLAGS =  $(PROF)
    
    O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
              alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
    	  handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
    	  music.o recycle.o save.o scan.o skills.o special.o tables.o \
    	  update.o
    
    rom: $(O_FILES)
    	rm -f rom
    	$(CC) $(L_FLAGS) -o rom $(O_FILES)
    
    .c.o: merc.h
    	$(CC) -c $(C_FLAGS) $<
    Looks OK to me...

    Maybe I have some packages missing... currently I have:
    Code:
    alternatives, ash, base-files, base-passwd, bash, binutils, bzip2, coreutils, crypt, cygutils, cygwin, cygwin-doc, diffutils, 
    editrights, findutils, gawk, gcc-core, gcc-g++, gcc-mingw-core, gcc-mingw-g++, gdbm, grep, groff, gzip, less, libbz2_1, 
    libgdbm, libgdbm-devel, libgdbm3, libgdbm4, libiconv2, libintl, libintl1, libintl2, libintl3, libintl8, libncurses5, libncurses6, 
    libncurses7, libncurses8, libpcre0, libpopt0, libreadline4, libreadline5, libreadline6, login, make, man, mingw- runtime, 
    mktemp, ncurses, run, sed, tar, termcap, terminfo, texinfo, w32api, which, zlib
    Last edited by maxorator; 01-15-2007 at 07:57 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Do you have gcc bin path added to your environment variables? Error 1 usually relates to a path not found.
    Last edited by Mario F.; 01-15-2007 at 07:54 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Code:
    PATH=alotofstuff;C:\Programs\Cygwin\bin
    Yes... otherwise "make" would not work or it would say can't find "gcc".

    It breaks somewhere between checking if the file exists and processing it, because whatever I put into the .c file, I always get the same thing, but if I rename the file, I get "No rule to make...".
    Last edited by maxorator; 01-15-2007 at 08:02 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    well... make is complaining at line 1 "CC = GCC". I don't know how cygwin environment paths work. Maybe someone can help. However, that is the line make is complaining at.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Mario F.
    well... make is complaining at line 1 "CC = GCC". I don't know how cygwin environment paths work. Maybe someone can help. However, that is the line make is complaining at.
    If it's complaining at the first line how does it reach "act_comm.c" file then?

    I've tried to compile other things too and I get the same error. It must be something with cygwin...
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  6. #6
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    It seems like my "gcc.exe" acts weird. It just doesn't create the .o file and gives no errors, so make says it can't find "act_comm.o" file.

    Edit: I got it working using the cygwin command prompt instead of command prompt.
    Last edited by maxorator; 01-15-2007 at 09:56 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling on Cygwin, but not on Dev-C++... Why?
    By Mr_Miguel in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2009, 05:48 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Problems with compiling code in cygwin
    By firyace in forum C++ Programming
    Replies: 4
    Last Post: 06-01-2007, 08:16 AM
  4. My Mud
    By mrpickle in forum Game Programming
    Replies: 8
    Last Post: 01-07-2004, 07:32 AM
  5. MUD compiling
    By BuRtAiNiAn FlY in forum Game Programming
    Replies: 3
    Last Post: 07-27-2002, 01:31 PM