From: Rudolf Polzer Newsgroups: comp.os.msdos.djgpp Subject: Re: Internal compiler error - not covered by the FAQ Date: Wed, 01 Nov 2000 12:29:00 GMT Organization: Deja.com - Before you buy. Lines: 67 Message-ID: <8tp2a8$nfv$1@nnrp1.deja.com> References: <8t3lg2$o6t$1 AT nnrp1 DOT deja DOT com> <9743-Tue24Oct2000203809+0200-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: 212.185.252.70 X-Article-Creation-Date: Wed Nov 01 12:29:00 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) X-Http-Proxy: HTTP/1.0 spcss43. (IBM-PROXY-WTE), 1.1 x61.deja.com:80 (Squid/1.1.22) for client 212.185.252.70 X-MyDeja-Info: XMYDJUIDrpolzer To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <9743-Tue24Oct2000203809+0200-eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com wrote: > > From: Rudolf Polzer > > Newsgroups: comp.os.msdos.djgpp > > Date: Tue, 24 Oct 2000 09:41:22 GMT > > > > I often get ICE's when compiling a 1000-line cpp file using many C++ > > headers like , , etc., especially when > > optimizing. I found out that the error rate depends on the amount of > > free DPMI memory (after setting DPMI mem to 64M in Windoze, it even > > crashed at one of the includes, while with 128M, everything mostly > > works). Also, since I compile from RHIDE, just restarting the compiler > > by pressing F9 sometimes make it work; if that does not help, closing > > the IDE with its DOS window and reopening helps; once I even needed to > > restart Windoze. > > This sounds awfully like a hardware problem; see section 6.6 of the > FAQ for more details. I can compile a Linux kernel and there should be a h/w problem? > > > Is there a solution (except buying more RAM)? > > I don't think the amount of RAM is the problem here, but it's hard to > tell without seeing numbers. Try using the System Monitor tool > (START->Programs->Accessories->System Tools->System Monitor) during > compilation, and look at the amount of memory it reports as free > immediately after cc1plus.exe finishes; then post here the numbers. > > It would also help if you post here the complete message printed when > the compiler crashes or reports the ICE. > The compiler reports an ICE and just an ICE, with no other data. Perhaps RHIDE cuts out important parts, but I could not reproduce the ICE without using RHIDE. ( but I cannot write makefiles :( and I like the RHIDE editor and debugger frontend ) I found out: 1) it cannot be a h/w problem because everything works when compiling in Linux with GCC. 2) The RHIDE memory display decreases and stays at a lower value when finished 3) The ICEs occur much more often when I restrict the DOSAPP's DPMI memory to 64MB or lower 4) Sysmon32 always shows <10MB free memory and a >50MB disk cache. Because I am using Windoze I never get more free memory. But this looks interesting: #include int _crt0_startup_flags = _CRT0_FLAG_UNIX_SBRK; But I do not have the djgpp source to change this! -- Rudolf Polzer REBOUNCE - http://www.mycgiserver.com/~rebounce Sent via Deja.com http://www.deja.com/ Before you buy.