Mail Archives: djgpp/2013/12/27/02:50:44
> From: "Gisle Vanem" <gvanem AT yahoo DOT no>
> Date: Thu, 26 Dec 2013 23:36:47 +0100
>
> With the recent update of bintils 2.24, the ar program (dated Dec 9 2013) is
> misbehaving. Comparing to what always has worked fine. In adding 137
> .o-files, it now stops at:
>
> e:\djgpp\bin/ar.exe: creating ../lib/libwatt.a
> e:\djgpp\bin/ar.exe: djgpp/getnet.o: Too many open files (EMFILE)
>
> The command is as it has always been (in Watt-32):
> ar rs ../lib/libwatt.a djgpp/file1.o djgpp/file2.o ..
>
> Incidently I have "files = 30" in my %windir\system32\config.nt under
> Win-XP and the djgpp/getnet.o is the 22n'd file 'ar' is trying to add to
> the ../lib/libwatt.a.
>
> Do I need to use a response-file now? How do I fix this? Juan, anyone?
I'd first enlarge "files =" to 40, and see if that affects the number
of files ar is able to process before it barfs. (The fact that it
currently barfs on the 22nd file could be explained by inheriting some
of the handles from the parent process.)
I'm not familiar with 'ar's sources: does it need to keep files open,
or can it close a file after it has copied it into the archive? Might
as well look this up in the sources.
- Raw text -