delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/06/13/02:33:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-Id: <6.1.0.6.1.20040613155126.01b39a10@student.uq.edu.au>
X-Sender: s347141 AT student DOT uq DOT edu DOT au
X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6
Date: Sun, 13 Jun 2004 15:57:51 +1000
To: djgpp AT delorie DOT com
From: Chris Miller <c DOT miller AT chemistry DOT uq DOT edu DOT au>
Subject: Makefile error
Mime-Version: 1.0
X-Scanned-By: MIMEDefang 2.43 on UQ Mailhub
Reply-To: djgpp AT delorie DOT com

--=====================_13314435==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

(apologies if this message has already appeared on this mailing list.  I 
think when I posted it earlier, I was not yet a member of the list and so 
it wasn't actually posted.)

Hello,
I have been trying to use a makefile to compile a very simple test program 
using DJGPP, and keep getting a
"make.exe: *** [test.o] Error -1" message.  If I manually type in the gcc 
commands, the program compiles without any error messages or warnings.  I 
am running WinXP and recently reinstalled a fresh copy of DJGPP, but the 
problem still exists.  Any help would be greatly appreciated?

It appears another user has experienced the same problem before 
(http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2003/06/01/11:00:16), 
but I was unable to find a reply.

I have included all the information requested on the DJGPP FAQ site below:

brief history:

When I tried the same makefile and *.c file on a different computer 
(Win98), there were no problems at all.   A very similar makefile worked 
previously on my computer without any problems.  One major difference in my 
system now from when makefile used to work, is that I have installed a new 
hard-drive (Western Digital) as master drive and placed my old hard-drive 
(Quantum Fireball) as a slave drive.  I had to first install WinME on the 
new hard-drive before installing WinXP due to some sort of incompatibility 
between the two hard-drives.  The old hard-drive only ever had WinXP 
installed (and still does).

contents of test.c:

#include <stdio.h>

int main(int argc, char **argv){

         printf("Test ok.\n");

         return 0;
}

contents of makefile:

test.exe : test.o
         gcc -o test.exe test.o

test.o : test.c
         gcc -c test.c

screendump of last few lines when attempting to execute "make -d":

      Finished prerequisites of target file `test.c'.
     No need to remake target `test.c'.
    Finished prerequisites of target file `test.o'.
   Must remake target `test.o'.
gcc -c test.c
Putting child 0x000d07b8 (test.o) PID 123 on the chain.
Live child 0x000d07b8 (test.o) PID 123
Reaping losing child 0x000d07b8 PID 123
make.exe: *** [test.o] Error -1
Removing child 0x000d07b8 PID 123  from chain.

contents of environ.txt:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=LFA
ComSpec=C:\WINDOWS\system32\cmd.exe
DJGPP=e:\djgpp\djgpp.env
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
LOGONSERVER=\\LFA
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=e:\djgpp\bin;E:\miktex\miktex\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS\system32\WBEM
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0402
ProgramFiles=C:\Program Files
PROMPT=$p$g
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=LFA
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
winbootdir=C:\WINDOWS
windir=C:\WINDOWS

contents of output from go32-v2:

go32/v2 version 2.0 built Dec 24 2001 21:25:02
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
  well as v1 binaries (old makefiles).  Put ahead of the old go32 in your PATH
  but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 354662 Kb
DPMI swap space available: 0 Kb


Chris Miller
Centre of Nanotechnology and Biomaterials
University of Queensland
Brisbane 4072 Australia
http://www.chemistry.uq.edu.au/nbc/ 
--=====================_13314435==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
(apologies if this message has already appeared on this mailing
list.&nbsp; I think when I posted it earlier, I was not yet a member of
the list and so it wasn't actually posted.)<br><br>
Hello,<br>
I have been trying to use a makefile to compile a very simple test
program using DJGPP, and keep getting a <br>
&quot;make.exe: *** [test.o] Error -1&quot; message.&nbsp; If I manually
type in the gcc commands, the program compiles without any error messages
or warnings.&nbsp; I am running WinXP and recently reinstalled a fresh
copy of DJGPP, but the problem still exists.&nbsp; Any help would be
greatly appreciated?<br><br>
It appears another user has experienced the same problem before
(<a href="http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2003/06/01/11:00:16" eudora="autourl">http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2003/06/01/11:00:16</a>),
but I was unable to find a reply.<br><br>
I have included all the information requested on the DJGPP FAQ site
below:&nbsp; <br><br>
<b>brief history:</b> <br><br>
When I tried the same makefile and *.c file on a different computer
(Win98), there were no problems at all.&nbsp;&nbsp; A very similar
makefile worked previously on my computer without any problems.&nbsp; One
major difference in my system now from when makefile used to work, is
that I have installed a new hard-drive (Western Digital) as master drive
and placed my old hard-drive (Quantum Fireball) as a slave drive.&nbsp; I
had to first install WinME on the new hard-drive before installing WinXP
due to some sort of incompatibility between the two hard-drives.&nbsp;
The old hard-drive only ever had WinXP installed (and still
does).<br><br>
<b>contents of test.c:<br><br>
</b><i>#include &lt;stdio.h&gt;<br><br>
int main(int argc, char **argv){<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>printf(&quot;Test
ok.\n&quot;);<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>return
0;<br>
}<br><br>
</i><b>contents of makefile:<br><br>
</b><i>test.exe : test.o<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>gcc -o
test.exe test.o<br><br>
test.o : test.c<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>gcc -c
test.c<br><br>
</i><b>screendump of last few lines when attempting to execute &quot;make
-d&quot;:<br><br>
</b>&nbsp;&nbsp;&nbsp;&nbsp; Finished prerequisites of target file
`test.c'.<br>
&nbsp;&nbsp;&nbsp; No need to remake target `test.c'.<br>
&nbsp;&nbsp; Finished prerequisites of target file `test.o'.<br>
&nbsp; Must remake target `test.o'.<br>
gcc -c test.c<br>
Putting child 0x000d07b8 (test.o) PID 123 on the chain.<br>
Live child 0x000d07b8 (test.o) PID 123<br>
Reaping losing child 0x000d07b8 PID 123<br>
make.exe: *** [test.o] Error -1<br>
Removing child 0x000d07b8 PID 123&nbsp; from chain.<br><br>
<b>contents of environ.txt:<br><br>
</b>ALLUSERSPROFILE=C:\Documents and Settings\All Users<br>
APPDATA=C:\Documents and Settings\Administrator\Application Data<br>
CLIENTNAME=Console<br>
CommonProgramFiles=C:\Program Files\Common Files<br>
COMPUTERNAME=LFA<br>
ComSpec=C:\WINDOWS\system32\cmd.exe<br>
DJGPP=e:\djgpp\djgpp.env<br>
HOMEDRIVE=C:<br>
HOMEPATH=\Documents and Settings\Administrator<br>
LOGONSERVER=\\LFA<br>
NUMBER_OF_PROCESSORS=1<br>
OS=Windows_NT<br>
Path=e:\djgpp\bin;E:\miktex\miktex\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS\system32\WBEM<br>
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH<br>
PROCESSOR_ARCHITECTURE=x86<br>
PROCESSOR_IDENTIFIER=x86 Family 6 Model 4 Stepping 2, AuthenticAMD<br>
PROCESSOR_LEVEL=6<br>
PROCESSOR_REVISION=0402<br>
ProgramFiles=C:\Program Files<br>
PROMPT=$p$g<br>
SESSIONNAME=Console<br>
SystemDrive=C:<br>
SystemRoot=C:\WINDOWS<br>
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp<br>
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp<br>
USERDOMAIN=LFA<br>
USERNAME=Administrator<br>
USERPROFILE=C:\Documents and Settings\Administrator<br>
winbootdir=C:\WINDOWS<br>
windir=C:\WINDOWS<br><br>
<b>contents of output from go32-v2:<br><br>
</b>go32/v2 version 2.0 built Dec 24 2001 21:25:02<br>
Usage: go32 coff-image [args]<br>
Rename this to go32.exe only if you need a go32 that can run v2 binaries
as<br>
&nbsp;well as v1 binaries (old makefiles).&nbsp; Put ahead of the old
go32 in your PATH<br>
&nbsp;but do not delete your old go32 - leave it in the PATH after this
one.<br>
Set GO32_V2_DEBUG=y in the environment to get verbose output.<br><br>
DPMI memory available: 354662 Kb<br>
DPMI swap space available: 0 Kb<br><br>
</body>
<br>
<div>Chris Miller</div>
<div>Centre of Nanotechnology and Biomaterials</div>
<div>University of Queensland</div>
<div>Brisbane 4072 Australia</div>
<a href="http://www.chemistry.uq.edu.au/nbc/" EUDORA=AUTOURL>http://www.chemistry.uq.edu.au/nbc/</a>
</html>

--=====================_13314435==.ALT--

- Raw text -


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