delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/01/09:04:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <41ADCF48.2070302@familiehaase.de>
Date: Wed, 01 Dec 2004 15:03:52 +0100
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Ata Bilgili <Ata DOT Bilgili AT Dartmouth DOT EDU>
CC: cygwin AT cygwin DOT com
Subject: Re: gcc-g77 4.4.1-1 stack memory error
References: <42820683 AT newblitzen DOT Dartmouth DOT EDU>
In-Reply-To: <42820683@newblitzen.Dartmouth.EDU>
X-IsSubscribed: yes

Ata Bilgili wrote:

> G'day;
> 
> I have a Fortran 77 code involving the finite element
> solution of rather large matrices using a conjugate gradient
> method. The code trustfully runs with g77 on Linux and Unix
> with no problems. 
> 
> When I tried running it this morning using the Cygwin
> gcc-g77 3.3.3-3, it complied nicely but I got a runtime
> error of "MapViewOfFileEx failed, Win32". I then installed
> gcc-g77 3.4.1-1 and the same thing happened but with rather
> different error messages: First I got a *.exe.stackdump file
> (attached) and then received a Segmentation Error.
> 
> An internet search yields -Wl --stack=XXXX options for gcc.
> Is there any workaround for g77? This is rather frustrating,
> knowing that I have to find a way to get this to work under
> Cygwin. I believe this is a Windows problem rather than
> Cygwin but!!! Cygcheck output is also attached.

-Wl,--stack=XXXX

This is needed on Cygwin if your stack will grow beyond 2MB because the 
stack size cannot be modified dynamically.


Gerrit

-- 
=^..^=

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019