delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/20/10:11:14

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Debug level
Date: 20 Feb 2001 14:56:06 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 31
Message-ID: <96u0i6$qdb$1@nets3.rz.RWTH-Aachen.DE>
References: <96tr93$2ki$00$1 AT news DOT t-online DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 982680966 27051 137.226.32.75 (20 Feb 2001 14:56:06 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 20 Feb 2001 14:56:06 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eddy Ilg <eddyilg AT t-online DOT de> wrote:
> Yes,
>>         cd src; gcc -c main.c -o main.obj
>> ** error -1 ** deleting main.obj
> is all that make says and in my other project I don't use gcc and its the
> same problem. Someone told me to try out the bash for DOS and I'm gonna do
> that (Although I think porting Unix/Linux programs to DOS hurts). 

No need to hurt yourself: the port already exists, and it's *very*
well-done, IMHO.  Get it from the same place you downloaded your
current set of DJGPP .zips from.

> Could it be that make cannot (for some reason) execute cd?

Hardly. I.e.: only if you've set up some environment variables in a
broken way.  Watch out for 'SHELL' and 'COMSPEC' in particular. If the
programs they point to don't exist, or aren't executable from a DOS
program like DJGPP make, that could explain an 'error -1' message.

A quick test should be able to verify that: write a little test makefile
with a command that has *only* the 'cd' command, with no semicolon, and/or
one with two 'cd' commands separated by a semicolon.

> Is there any way how I can tell make to put out some more debug messages, so
> that I can see what it tries to do?

Nothing short of running 'make' inside the debugger, I suspect.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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