Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Martin Egholm Nielsen <martin@egholm-nielsen.dk>
Subject: Error linking under Cygwin: fork: can't reserve memory for stack XXX, Win32 error 487
Date: Wed, 02 Mar 2005 15:49:33 +0100
Lines: 31
Message-ID: <d04jgq$fr3$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 212.130.19.66
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner-SpamScore: s
X-MailScanner-From: goc-cygwin@m.gmane.org
X-MailScanner-To: cygwin@cygwin.com
X-IsSubscribed: yes

Hi there,

I've ended up here after having rounded the gcc-irc-channel and the 
crosscompiler mailing-list.

The story:

I have compiled a gcc crosscompiler hosted under Cygwin using Dan 
Kegel's Crosstool scripts.

However, as my application is growing in size (number of .o files) I 
suddenly get the following fault message from collect2.exe when trying 
to link them all together:

$ powerpc-405-linux-gnu-gcj --main=foo.Main *.o
C:\cygwin\opt\crosstool\powerpc-405-linux-gnu\gcc-3.4.0-glibc-2.2.5\libexec\gcc\powerpc-405-linux-gnu\3.4.0\collect2.exe 
(1740): *** fork: can't reserve memory for stack 0x40000 - 0x240000, 
Win32 error 487
<REPEATED>

There is roughly 600 .o files to link together.

Andrew Haley from RedHat mentioned that
"There's some magic in Win32 to extend the size of a stack segment"
"I can't remember the command"

Can anybody on this list help me out here?

BR,
  Martin Egholm



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

