From: Ivo Janssen Newsgroups: comp.os.msdos.djgpp Subject: Re: ld.exe: final link failed: Memory exhausted Date: Wed, 20 Aug 1997 14:53:39 +0200 Organization: Delft University of Technology, Dept. of Electrical Engineering Lines: 84 Message-ID: Reply-To: Ivo Janssen NNTP-Posting-Host: ricardis.ricardis.tudelft.nl Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <33FAC9DE.71195A0C@Mathematik.TU-Chemnitz.DE> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 20 Aug 1997, Robert Hoehne wrote: > Ivo Janssen wrote: > > I get the error as in the subject. > > Are you sure that you got the 'subject error' and > not something like ".. line number overflow ..."? Yep I'm sure. > > BTW. This happened when I was compiling cc1 from gcc-2.7.0 > > As far as I know, gcc 2.7.0 was part of DJGPP 2.0 and not > of DJGPP 2.01 which comes with gcc 2.7.1. Yes, gcc-2.7.2.1 is distributed with DJGPP2.01 but I was compiling GCC itself. I wrote a port for GCC-2.7.0 to a specific arch, so I have to compile a cross-compiler. > What a small footnote which might be important. As you > run under Windows 95 have you checked your memory settings > of the DOS box??? (look in the FAQ for details) That doesn't matter, IMO, becasue DJGPP itself works with go32 too. go32-v2 says: go32/v2 version 2.0 built Aug 12 1996 22:27:23 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one.Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 10275 Kb DPMI swap space available: 2669 Kb But: I did a stubedit c:\djgpp\bin\ld.exe minstack=1024K to enlarge stackspace in ld.exe I heard that helps. But now instead of a ld.exe: virtual memory exhausted, I get a c:/djgpp/lib/libc.a: could not read symbols: Memory exhausted Still not enough memory... Anyne? Below an output of my compile session. All .o files are in place, so make only did the final link. Ivo Janssen --------------------+--------------------------------+-+ +---+ | IVO JANSSEN | ivo AT ricardis DOT tudelft DOT nl | | | | | Ricardishof 1/428 | janssen AT cardit DOT et DOT tudelft DOT nl | | |-+ | | 2614 JE Delft | http://www.et.tudelft.nl/~ivo/ | +->-| (|) | the Netherlands | Dept of Electrical Engineering | |-+ | | +31-15-2855973 | Delft University of Technology | | | +-------------------+--------------------------------+ --- --- Transcript: (this is bash from djgpp running on my 486) bash$ make CC="gcc -v" cc1 gcc -v -DCROSS_COMPILE -DIN_GCC -g -o cc1 c-parse.o c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o dbxout.o sdbout.o dwarfout.o xcoffout.o integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o umove.o getpwd.o convert.o bc-emit.o bc-optab.o obstack.o case "gcc -v" in "cc") echo "" ;; esac Reading specs from c:/djgpp/lib\specs gcc version 2.7.2.1 c:/djgpp/bin\ld.exe -o cc1 c:/djgpp/lib\crt0.o -Lc:/djgpp/lib c-parse.o c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o dbxout.o sdbout.o dwarfout.o xcoffout.o integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o insn-peep.o reorg.o sched.o final.orecog.o reg-stack.o insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o umove.o getpwd.o convert.o bc-emit.o bc-optab.o obstack.o -Tdjgpp.djl -lgcc -lc -lgcc c:/djgpp/lib/libc.a: could not read symbols: Memory exhausted make.exe: *** [cc1] Error 1 bash$