Date: Sat, 17 Feb 2001 09:34:36 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: andyeloff AT yahoo DOT com (Andrew Eloff) Message-Id: <9003-Sat17Feb2001093436+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <3a8e1979$0$70803$1dc6e903@news.corecomm.net> (andyeloff AT yahoo DOT com) Subject: Re: Windows2000 memory problem References: <3a8e1979$0$70803$1dc6e903 AT news DOT corecomm DOT net> 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 Precedence: bulk > From: andyeloff AT yahoo DOT com (Andrew Eloff) > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 17 Feb 2001 06:25:11 GMT > > prob.1: during make -fmsdos\makefile.dj2, I frequently get the > following dialog box message during gcc phase (sample gcc command: > "gcc -MMD -O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion > -Wstrict-prototypes -Wmissing-prototypes -c compress.c -o > compress.o"): > ntvdm.exe - Application Error: The instruction at "0x0f048d8a" > referenced memory at "0x01340ffc". The memory could not be "written". I think this is related to the known problem with W2K whereby NTVDM crashes when DJGPP programs are nested more than 2 levels deep. You are lucky: in your case, it doesn't crash. (You should be able to verify that the instruction ay 0x0f048d8a is in NTVDM's code.) > prob. 2: during ar phase of make, I get the same message as Mr. Lee > (sample command: ar rcs zlib.a adler32.o): "d:\djgpp\bin/ar.exe: > libz.a: rename: Not enough memory (ENOMEM)" This is another known problem with W2K: its system call that renames a file returns a funky error code when the target file already exists, which confuses the DJGPP's implementation of the library function `rename'. This was only fully debugged lately (most DJGPP developers don't have access to a Windows 2000 machine), and a fix for this is in the development sources. But to fix this in ar.exe, you will have to rebuild Binutils after getting the fixed version of the function `_rename' from the DJGPP CVS.