X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.182.186.73 with SMTP id fi9mr8544obc.48.1388200099992; Fri, 27 Dec 2013 19:08:19 -0800 (PST) X-Received: by 10.49.37.40 with SMTP id v8mr3770qej.15.1388200099815; Fri, 27 Dec 2013 19:08:19 -0800 (PST) Newsgroups: comp.os.msdos.djgpp Date: Fri, 27 Dec 2013 19:08:19 -0800 (PST) In-Reply-To: <83site4tsc.fsf@gnu.org> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.172.236.58; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0 NNTP-Posting-Host: 149.172.236.58 References: <8E878A70F6BE4A809C4650F42EA072D2 AT dev DOT null> <83site4tsc DOT fsf AT gnu DOT org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3f61569b-3156-4169-9dc0-6b04b2a27321@googlegroups.com> Subject: Re: Too many open files From: Juan Manuel Guerrero Injection-Date: Sat, 28 Dec 2013 03:08:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 3099 Lines: 64 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Am Freitag, 27. Dezember 2013 08:50:11 UTC+1 schrieb Eli Zaretskii: > > From: "Gisle Vanem" > > > 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. I have never noted this before because I always have files=250. I have been playing with ar; if I set files=39 it fails but if I set files=40 it works. I assume this is not really binutils 2.24 specific but concerns all latest binutil ports. I will check the ar sources to see if the amount of open file handles can be reduced during processing. Regards, Juan M. Guerrero