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 Subject: Makefile error Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_13314435==.ALT" 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 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" (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--