Mail Archives: djgpp/2005/01/28/08:01:23
Eli Zaretskii schrieb:
>>From: Andris Pavenis <pavenis AT latnet DOT lv>
>>Date: Wed, 26 Jan 2005 09:23:37 +0200
>>Cc: djgpp AT delorie DOT com
>>
>>
>>
>>>g:/djgpp/bin/ld.exe: min-insn-modes.o: No such file: Too many open files
>>>(EMFILE)
>>>collect2: ld returned 1 exit status
>>>make.exe[2]: *** [genconstants.exe] Error 1
>>>make.exe[2]: Leaving directory `g:/_/gnu/build.gcc/gcc'
>>>make.exe[1]: *** [stage1_build] Error 2
>>>make.exe[1]: Leaving directory `g:/_/gnu/build.gcc/gcc'
>>>make.exe: *** [bootstrap] Error 2
>>>
>>>There is enough free disk space to build the binaries (about 8GB).
>>>I have set FILES=255 but it has no influence.
>>>
>>>
>
>Where (in what file) did you put FILES=255?
>
>
I have set the FILES variable using "Properties", selecting the
"Advanced" tab and clicking
the "Environment Variables" button. In the system or administrator part,
I have added the
FILES system variable.
>Can you write a simple test program that tries to open a file again
>and again in a loop until it fails, and see how many open operations
>succeeded before the failure?
>
>
I have installed WinXP home edition SP2 on my computer two weeks ago so
Iam still not familiar
with it. Maybe I have brocken something during the installation. As
suggested, I have written a
small test program that tries to open as much as possible files. I have
compiled the program with
the tools from beta/v2gnu and a fresh compiled cvs djgpp (2005-01-25)
from www.ludd.luth.se/~ams.
It opens 17 files starting with handle 5 and it stops with: Permision
denied (EACCES).
If I run the same program using gdb then it starts with handle 10 and 14
files
are opened and it stops with: Too many open files (EMFILE).
If I run the same program on Win98SE, after having recompiled it with
the djdev203
tools, then the first handle is 6 and 32 files are opened. The program
stops
with: Too many open files (EMFILE). On Win98SE I have not set the FILES
variable
in config.sys.
Regards,
Juan M. Guerrero
- Raw text -