From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,98bc0cbbeb023d68 X-Google-Attributes: gidfcda7,public X-Google-Thread: 1164f8,98bc0cbbeb023d68 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,98bc0cbbeb023d68 X-Google-Attributes: gidfee84,public From: Craig Neth Subject: Re: ld error: virtual memory problem ?! Date: 1999/03/18 Message-ID: <36F16D7D.853FD396@compaq.com>#1/1 X-Deja-AN: 456247100 Content-Transfer-Encoding: 7bit References: <7ck4hk$ogo$1@nnrp1.dejanews.com> To: ijalab@hotmail.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.sys.hp.hpux,comp.sys.dec ijalab@hotmail.com wrote: > > We are getting this error when we link our executable : "ld: out of memory". > This happened on HP, and we fixed it by the command line switch to ld : > '-T' , according to this switch, this option reduces the virtual memory > requirements of the linker. If the TMPDIR environment variable is set, the > temporary files are created in the specified directory, rather than in > /var/tmp. > > Now I am experiencing the same problem on DEC OSF/1 but the ld command here > does not seem to have such a switch. I am using cxx (c++ compiler). > > Can anyone suggest a solutiuon short of increassing swap space, ulimit etc ? > We tried that also but to no effect. > > Thanks a lot. > > - Balaji The linker on Tru64 UNIX does not use temp files, so fiddling with TMPDIR won't help. Also, there aren't any switches to 'reduce memory usage' - we try to do that by default all the time... I do recall a bug in certain versions of V4.0x (maybe releases before V4.0D) that caused a similar message when the linker was doing C++ prelinking. There are patches available for that one - make sure you are running the latest OS patches. Craig -- Craig Neth ! neth@zk3.dec.com Compaq Computer Corporation ! 110 Spit Brook Road ZKO3-2/W17 ! Nashua, NH 03062 ! Opinions expressed herein are my own. ===============================================================================