Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Dave Korn" To: Subject: RE: Error linking under Cygwin: fork: can't reserve memory for stack XXX, Win32 error 487 Date: Thu, 3 Mar 2005 13:58:39 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 03 Mar 2005 13:58:39.0159 (UTC) FILETIME=[19E39470:01C51FF9] ----Original Message---- >From: Martin Egholm Nielsen >Sent: 03 March 2005 08:42 >>> 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 >> --stack Set size of the initial stack >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Hum, these options are not available in my crosscompiler: > > $ powerpc-405-linux-gnu-gcc -v --help 2>&1 | grep stack You would need to add it to the CFLAGS when _building_ the crossbinutils linker rather than to the command line when _using_ it, so that the compiled crossversion of collect2 runs with a bigger stack. If indeed that is the underlying problem. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/