This is the mail archive of the cygwin@sources.redhat.com 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]

Bug report: gcc + cygwin


Hi,

gcc version 2.95.2-3
cygwin version 1.1.5-4

Here is the output of cygcheck -s:

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Nov  8 17:27:51 2000

WinNT Ver 5.0 build 2195 Service Pack 1

Path:   /cygdrive/c/WINNT/system32
        /cygdrive/c/WINNT
        /cygdrive/c/WINNT/System32/Wbem
        .
        /usr/bin
        /usr/local/bin
        /cygdrive/c/Progra~1/gvim/vim57
        /home/emmedve1/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/home/emmedve1/tmp'
USER = `emmedve1'
MAKE_MODE = `unix'
HOME = `/home/emmedve1'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS    3074Mb  64% CP CS UN PA FC     SYSTEM
d:  hd  NTFS    3067Mb  40% CP CS UN PA FC     DATA
f:  net NTFS    9726Mb  53% CP CS UN PA FC     Mirror Data
z:  cd           N/A    N/A

C:\Progra~1\CygWin\bin  /usr/bin  system  textmode
C:\Progra~1\CygWin\lib  /usr/lib  system  textmode
C:\Progra~1\CygWin  /        system  textmode

Found: C:\Progra~1\CygWin\bin\bash.exe
Found: C:\Progra~1\CygWin\bin\cat.exe
Found: C:\Progra~1\CygWin\bin\cpp.exe
Found: C:\Progra~1\CygWin\bin\find.exe
Found: C:\Progra~1\CygWin\bin\gcc.exe
Found: C:\Progra~1\CygWin\bin\gdb.exe
Found: C:\Progra~1\CygWin\bin\ld.exe
Found: C:\Progra~1\CygWin\bin\ls.exe
Found: C:\Progra~1\CygWin\bin\make.exe
Found: C:\Progra~1\CygWin\bin\sh.exe

   18k 2000/10/23 C:\Progra~1\CygWin\bin\cyggdbm.dll
   14k 2000/10/23 C:\Progra~1\CygWin\bin\cygintl.dll
   80k 2000/10/27 C:\Progra~1\CygWin\bin\cygitcl30.dll
   34k 2000/10/27 C:\Progra~1\CygWin\bin\cygitk30.dll
  388k 2000/10/27 C:\Progra~1\CygWin\bin\cygtcl80.dll
    5k 2000/10/27 C:\Progra~1\CygWin\bin\cygtclpip80.dll
   10k 2000/10/27 C:\Progra~1\CygWin\bin\cygtclreg80.dll
  619k 2000/10/27 C:\Progra~1\CygWin\bin\cygtk80.dll
   49k 2000/10/23 C:\Progra~1\CygWin\bin\cygz.dll
  607k 2000/11/02 C:\Progra~1\CygWin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 5
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 29
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Nov 2 02:01:17 EST 2000
        shared id: cygwin1S3

This is my program (it's also attached to this e-mail):

#include<io.h>
#include<stdio.h>
#include<stdlib.h>

int main(void)
{
        int n=0;

        while(dup(1)!=-1)n++;
        printf("Size of FILE0 table is: %d.\n",n+3);
        exit(EXIT_SUCCESS);
}

Compilation command line: gcc -Wall -o dup dup.c

And this is the output:

d:\Profiles\emmedve1\LOCALS~1\Temp\dup.exe: *** couldn't commit memory for
cygwi
n heap, Win32 error 487

If I use -mno-cygwin everythig works as expected (fine).


Emil.

dup.c

dup.exe

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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