From: Scott Carter <scarter@emware.com>
To: 'Gabriel Zachmann' <zach@igd.fhg.de>, cygwin@sources.redhat.com
Subject: RE: gmake is slow under cygwin
Date: Tue, 26 Sep 2000 12:57:00 -0000 [thread overview]
Message-ID: <50028CAE26D1D3118C7F00A0CC50D6256A922B@EMWARESERVER> (raw)
I haven't had this problem in my makefiles, but yesterday I happened to be
trying out a makefile that someone else sent me, and I experienced a *huge*
delay. I haven't tried to analyze it, but I did observe this. When the VPATH
is set to any of the following (which, by the way, don't work correctly in
the test makefile)
VPATH = c:/temp/test/source
VPATH = /cygdrive/c/temp/test/source
VPATH = //c/temp/test/source
There is no long delay. When VPATH is set to this (which is incorrect)
VPATH = //cygdrive/c/temp/test/source
and I do
make -d
make spits out
-----------------------------------
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <bug-make@gnu.org>.
Reading makefiles...
Reading makefile `makefile'...
-----------------------------------
and then stalls for about 7 seconds before continuing. I have no idea if you
have a bad VPATH in your makefiles, but this example illustrates that some
errors can cause large delays, and yet otherwise not be reported as errors.
I don't know if any of the following suggestions will appreciably speed up
processing, but I know they relieve make of having to examine a lot of
dead-end possibilities. [NOTE that these may not be desirable/usable in all
circumstances.]
1) Use .PHONY: for all targets that don't correspond to real files.
2) Use .SUFFIXES:#blank to delete all known default suffixes.
3) Add an empty rule (no dependencies, no commands) for "makefile" and any
files it includes.
Good luck
Scott Carter
Software Engineer
-----Original Message-----
From: Gabriel Zachmann [ mailto:zach@igd.fhg.de ]
Sent: Monday, September 25, 2000 03:49 AM
To: cygwin@sources.redhat.com
Subject: Re: gmake is slow under cygwin
] --- Gabriel Zachmann <zach@igd.fhg.de> wrote:
] >
] > Any ideas or insights will be highly appreciated,
] > Gab.
] >
]
] Any virus scanners running? See the FAQ.
]
(Hm, the FAQ didn't say that a virus scanner could incur a performance
penalty, it just said that it might prevent cygwin from functioning ;-)
Ok, I switched McAffee off.
But that reduced execution time only by about 1 sec:
- with mcaffee running: real time = 7.4 sec, user time = 3.1 sec;
- mcaffee not running: real = 6 sec, user time = 2.8 sec
That still seems pretty slow for just a few 100 lines of makefiles,
doesn't it?
Cheers,
Gab.
--
/---------------------------------------------------------------------\
| Paradigm is a word too often used by those |
| who would like to have a new idea |
| but cannot think of one. |
| (Mervyn King, Deputy Governor, Bank of England) |
| |
| zach@igd.fhg.de gab@gab.cx Gabriel.Zachmann@gmx.net |
| www.igd.fhg.de/~zach/ www.gab.cx __@/' |
\---------------------------------------------------------------------/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next reply other threads:[~2000-09-26 12:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-26 12:57 Scott Carter [this message]
2000-09-26 16:49 ` Chris Faylor
2000-09-26 20:56 ` Jeffrey Juliano
2000-09-26 21:28 ` Chris Faylor
2000-09-28 7:53 ` Jeffrey Juliano
2000-10-03 7:15 ` Fergus Henderson
2000-10-03 8:27 ` Chris Faylor
-- strict thread matches above, loose matches on Subject: below --
2001-03-12 14:54 Gmake " Heribert Dahms
2001-03-12 15:03 ` John Pollock
2001-03-12 14:35 John Pollock
2001-03-09 9:44 Marcus A Martin
2001-03-09 9:57 ` Larry Hall (RFK Partners, Inc)
2001-03-09 11:34 ` Marcus A Martin
2001-03-09 11:44 ` Larry Hall (RFK Partners, Inc)
2001-03-09 11:57 ` Chad Loder
2001-03-09 12:05 ` Marcus A Martin
2001-03-09 12:34 ` Jonathan Kamens
2000-09-26 6:25 gmake " Earnie Boyd
2000-09-22 7:55 Earnie Boyd
2000-09-25 2:49 ` Gabriel Zachmann
2000-09-22 2:41 Gabriel Zachmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50028CAE26D1D3118C7F00A0CC50D6256A922B@EMWARESERVER \
--to=scarter@emware.com \
--cc=cygwin@sources.redhat.com \
--cc=zach@igd.fhg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).