This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gmake hangs


At 11:49 AM 9/17/2001, Anqing Xu wrote:

>Hi,
>
>I use the latest cygwin and make hangs everytime in recursive building.
>Since the system is big I can't post the whole Makefile, but it's like this
>
>SRC_DIRS = dir1 dir2 dir3 ...
>
>dir? all have java source files
>
>JAVA_SRC = Foo1.java Foo2.java  ....
>
>CLASSES = ${JAVA_SRC:.java=.class}
>
>.SUFFIXES:
>%.class: %.java
>      @echo $^ >> $(FILES_TO_RECOMPILE)
>
>all: $(SRC_DIRS) compileAll
>
>$(SRC_DIRS):
>      @if [ -d $@ ]; then \
>           cd $@ && $(MAKE); \
>      else \
>           echo "Skipping $@"; \
>      fi
>
>compileAll: $(CLASSES)
>      @if [ -f $(FILES_TO_RECOMPILE) ]; then \
>               cat $(FILES_TO_RECOMPILE); \
>               $(JAVAC) $(JFLAGS) -classpath $(CLASSPATH) -sourcepath $(SOURCEPATH) -d $(CLASS_DIR) @$(FILES_TO_RECOMPILE); \
>         ...
>      fi
>
>Make will hang if certain dir has too many java files.  Task manager shows that sh.exe is using 99% CPU.
>However, if I manually cd individual dir and make there, it'll pass without any problem. Seems that make
>has problem with recursive compiling. Also note that this does not happen for dirs that have small number
>of java files.  Really strange.
>
>I notice that there have been several threads that talked about similar problem. Has anybody found a
>solution yet?  


The Cygwin archives have all the gory details on this.  Follow the threads
if you're interested.  I assume you're running 1.3.3?


>This is a major headache for us right now.


Then I expect that you won't be adverse to helping out and trying to
debug your situation.  If not, I suggest aspirin for everyone's headache.

  


>-Anqing
>
>
>
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]