www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/09/08:51:49

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3717
Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!in2.uu.net!brighton.openmarket.com!decwrl!purdue!news.bu.edu!rshaughn
From: rshaughn AT cs DOT bu DOT edu (Robert Shaughnessy)
Newsgroups: comp.os.msdos.djgpp
Subject: GMAKE 3.71 Memory Leak? (Dos)
Date: 8 Dec 1995 17:51:28 GMT
Organization: Computer Science Department, Boston University, Boston, MA, USA
Lines: 42
Nntp-Posting-Host: csa.bu.edu
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

      I am not using the DJGPP port of GMAKE, but was told this group
may be able to help me. I have also tried using the DJGPP gmake, but do not
know how to set up the GO32 env. What is the BARE minimum that I need to
run GMAKE for DJGPP.

     I am having problems getting the DOS version of GMAKE 3.71 to work
properly and would like the nets help on this. I have already invested a
great deal of time in writing makefiles for GMAKE and I am pleased with
the capabilities of GMAKE.  However, it keeps telling me "Virtual Memory
Exhausted" after EXACTLY 15 object files are compiled. I believe there is
a memory leak someplace in GMAKE, since the error occurs when the Object
files are being created and at such a predictable point. I compile more
than 15 files and if make is executed again, the remaining files compile
correctly. The OS used is Windows 95 and my computer is a Compaq Presario
CDS720. The rule use for object file makeing follows : 

ifneq ($(strip $(COBJS)),)
$(COBJS)                ::      $(OBJDIR)/%.obj :       %.c
                        @echo "Before Compilation of $@ c"
                        @$(CLEANUP_BEFORE_COMPILE)
                        $(CC) $(CFLAGS) -c  -o$@ $<
                        @echo "After Compilation of $@ C"
$(COBJS)                ::
                        @touch $(OBJDIR)/makeobjs.@@@
                        @sh -c "echo ' & ' >> $(OBJDIR)/makeobjs.@@@"
                        @sh -c "echo  ' -+ $@ \c' >> $(OBJDIR)/makeobjs.@@@ "

                        @touch $(OBJDIR)/newdeps.@@@
                        @sh -c "echo 'include $@ ' | sed 's/\.obj/.d/g;' >> $(OBJDIR)/newdeps.@@@ "
endif


P.S. I am suspicious of the :: in this definition, but I need to define 
this rule twice and than one aways executed.


                     Thanks in Advance!

rshaughn AT bu DOT edu      Phone 617-264-9748



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019