delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/02/01:33:01

Date: Mon, 02 Jun 2003 06:58:44 +0300
From: "Eli Zaretskii" <eliz AT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <3995-Mon02Jun2003065843+0300-eliz@elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <1ba37fef.0306011651.4dfb06ed@posting.google.com>
(strags11 AT yahoo DOT com)
Subject: Re: Simple (?) problem with djgpp/gcc/make
References: <1ba37fef DOT 0306010650 DOT 10517f99 AT posting DOT google DOT com> <6137-Sun01Jun2003200228+0300-eliz AT elta DOT co DOT il> <1ba37fef DOT 0306011651 DOT 4dfb06ed AT posting DOT google DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: strags11 AT yahoo DOT com (Nick)
> Newsgroups: comp.os.msdos.djgpp
> Date: 1 Jun 2003 17:51:53 -0700
> > 
> > This usually mean that Make cannot find the GCC executable file,
> > gcc.exe.
> 
> I am inclined to believe that this is the problem, too.  Even when
> "gcc -v" is the first directive in my rule, the make fails with the
> same error.  But, the DJGPP directory is first in my path string.  If
> it's not finding the executable, then perhaps the spawned shell (if
> there is one) is not reading this information correctly.

There is no spawned shell; the underlying library functions emulate
the shell (so that we could support some nifty features, like long
command lines).

What exactly is your PATH setting?  Please type "PATH" from the DOS
box's prompt, hit [Enter], and post here the result.

Also, add a line saying just "set" to your Makefile, and post here
what it prints.

> Perhaps it has something to do with case-sensitivity, even though it's
> DOS?  I modified the rule to as shown below.  Note the results.  The
> first echo command executes just fine, "x" is printed as it should be.
>  The second echo, in all caps, does not.

What do you see if you go to the DJGPP's `bin' directory and type
"dir gcc*"?

Does it help to replace "gcc" with "GCC" in your Makefile?

(FWIW, on my system, either one works, so it's either something else
or maybe your system is different from mine in some crucial ways.)

- Raw text -


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