www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/18/21:00:13

From: clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman)
Newsgroups: comp.os.msdos.djgpp
Subject: Linker error: building gcc 2.95.3 on NT 4.0
Date: 19 Jul 2001 00:42:49 GMT
Organization: University of Virginia Computer Science Department
Lines: 51
Message-ID: <9j5ae9$504$1@murdoch.acc.Virginia.EDU>
NNTP-Posting-Host: cobra.cs.virginia.edu
X-Trace: murdoch.acc.Virginia.EDU 995503369 5124 128.143.137.16 (19 Jul 2001 00:42:49 GMT)
X-Complaints-To: abuse AT virginia DOT edu
NNTP-Posting-Date: 19 Jul 2001 00:42:49 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am getting a linker error when trying to build gcc 2.95.3 on Windows
NT 4.0 SP6a:

---- start output from make ---------

make.exe[2]: Entering directory
`e:/djgpp/gnu/gcc-2.953/build.djg/gcc/cp'

gcc  -DIN_GCC    -g -O1   -o ../cc1plus.exe `cat ../stamp-objlist`
../c-common.o ../c-pragma.o call.o decl.o errfn.o expr.o pt.o sig.o
typeck2.o class.o decl2.o error.o lex.o parse.o ptree.o rtti.o spew.o
typeck.o cvt.o except.o friend.o init.o method.o search.o semantics.o
tree.o xref.o repo.o  `if [ xobstack.o != x ]; then echo ../obstack.o;
else true; fi` `case "gcc" in "cc") if [ x != x ]; then echo ../; else
true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi`  

E:/DJGPP/bin/ld.exe : Cannot open ../stmt.o : Too many open files (EMFILE)

------ end output from make --------


Details: I have long filename support installed and working. I am
building gcc 2.95.3 from sources (preparing to debug a problem under
NT, then I will check it again in gcc 3.0 after I figure it out and
the 3.0 distribution stabilizes.) I am using the build method that
utilizes the djconfig.sh and djmake.sh shell scripts, rather than the
build.bat approach, partly because I do not have the INFO-ZIP binary
installed. I added CFLAGS="-g -O1" into the djmake.sh script to ensure
that I get debugging info in the binaries I am building. I have gcc
2.95.2 binaries installed, djdev 2.03, binutils 2.11, and numerous
binary packages that correspond to gcc 2.95.3/djdev 2.03 release
(find, m4, make, gawk, sed, fileutils, textutils, autoconf, etc.)

I believe that "../stmt.o" is an object obtained from the
'cat ../stamp-objlist' in the link step above.

So, the linker cannot handle this many open files at once. Killing the
DOS box and restarting the make leads to the exact same problem.

Questions:

1) Any solutions?

2) Any bypass? This error is happening in the make for gpp, and I
actually am not going to use C++ for anything.

Thanks for any help.

Clark Coleman

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019