This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g77 executable with largish array fails (solved?)


Billinghurst, David (CALCRTS) wrote:

From: David Billinghurst

The following test case is distilled from the LAPACK timing test cases. These used to work on some previous versions of cygwin/g77, but now fail.


I translated the problem into C using f2c. It becomes:

$ cat labugc.c
int main() {
  static float a[39*1024*1024];
}

$ gcc -O0 -o labugc.exe labugc.c
$ ./labugc
C:\cygwin\usr\people\billingd\labugc.exe (3372): *** MapViewOfFileEx(0x728, in_h 0x728) failed, Win32 error 6


Aha, I says. Looks like stack overflow. Google pointed me to an work around gcc -Wl,--stack,200000000 -O0 -o labugc.exe labugc.c

David

Interesting, it works without special flags when using gcc-3.4.1.


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]