X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,TW_IB X-Spam-Check-By: sourceware.org Message-ID: <4D7A2951.1030002@emrich-ebersheim.de> Date: Fri, 11 Mar 2011 14:53:21 +0100 From: Rainer Emrich User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ld: fatal error - cmalloc would have returned NULL OpenPGP: url=random.sks.keyserver.penguin.de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > On Mar 11 12:57, Corinna Vinschen wrote: > On Mar 11 12:57, Rainer Emrich wrote: >> On Mar 1 18:39, Corinna Vinschen wrote: >> > And then ld crashes, because, apparently, it neglects to check the >> > return value of mmap. >> >> Yes it's a fault to not check the return value of mmap, but that wouldn't help >> here either. >> >> So, the solution for me was to increase the cygheap size. The maximum seems to >> be 1792 MBytes. This solves the issue for boostrapping gcc with libjava enabled, >> but may fail for even larger libraries. > > I don't think you mean to change the size of the cygheap to 1792 Megs, > do you? This sounds impossible to me. Keep in mind that you only have > 2 Gigs total memory available per application. > > The cygheap size is usually 1 MByte, + the number of pages to align the > end of the cygheap section to the next 64K boundary. In a case like > this you can increase the cygheap to, say, 2 Megs + alignment, but that > should be enough for all cases which fit into memory at all. I have to be more clear. I increased the heap_chunk_in_mb to 1792 using: regtool -i set /HKLM/Software/Cygwin/heap_chunk_in_mb 1792 > > Otherwise, ld should use temporary files to store intermediate data. > On Linux or *nix this not a problem at all. But to be honest, I have only few knowledge about ld. Rainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk16KVAACgkQoUhjsh59BL6u2QCfTCBnGmLz+G7CvLK4UtsvSmBF RIYAn0eJaq/gkj26TNETFmywVya/VvyP =0Y7W -----END PGP SIGNATURE----- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple