Article View: comp.unix.internals
Article #2647Re: LD Exit codes
From: Darren R. Davis
Date: Wed, 03 Nov 1993 23:28
Date: Wed, 03 Nov 1993 23:28
70 lines
3441 bytes
3441 bytes
In article <2ar782INNagl@oapd.oki.com>, walt@oki.com (Walt Weber) writes: |> In article <CFFH1p.BEy@feenix.metronet.com>, lpd@feenix.metronet.com (Lou Dellaverson) writes: |> |> varlet% make |> |> /bin/rm -f LifeScan |> |> cc -Xa -Di386 -Dasm=__asm -o LifeScan LifeScan.o readfile.o quit.o -O |> |> -L//usr/X/lib -lXaw -lXmu -lXt -lXext -lX11 -lsocket -lnsl |> |> cc: Error: Process /usr/ccs/bin/ld core dumped with signal 11 |> |> *** Error code 139 (bu21) |> |> |> |> make: fatal error. |> |> Does anyone have any idea where I should start looking. OK guys, here is the story... ld is a memory hog, and if your are compiling large objects such as libraries or using the -g option you will need to increase some system tunables. In 4.0 Unix ulimit was a file oriented limit. In UnixWare 1.0 (Unix 4.2) this was mapped to a new structure called the rlimit (resource limit) structure. This is documented in the System Administration System Performance Tuning guide. You can find the current resource limits by performin the ksh command ulimit -a. If this machine is your own personal workstation, I would recommend increasing the system tunables to unlimited. If you share this machine you might want to just make them large. Here are the tunables; SFSZLIM - Soft File Size Limit HFSZLIM - Hard File Size Limit SDATLIM - Soft Data Limit HDATLIM - Hard Data Limit SSTKLIM - Soft Stack Limit HSTKLIM - Hard Stack Limit SVMMLIM - Soft Virtual Memory Limit HVMMLIM - Hard Virtual Memory Limit Change to the directory /etc/conf/bin and use idtune to increase these values to unlimited; # cd /etc/conf/bin # ./idtune SFSZLIM 0x7fffffff # ./idtune HFSZLIM 0x7fffffff (Change all the above mentioned tunables) # ./idbuild -B # cd / ; shutdown -g0 -y (Make sure to rebuild kernel and reboot) After the system reboots, I would check the new values with ulimit -a. You may also need to increase your swap space. The easiest way to do this is to swap to a regular file. You need to make a large file to swap to. # dd if=/dev/zero of=/tmp/newswap bs=1024 count=16000 (This will make a 16MB swap file, yes there is probably a quicker way to make a large file, use your favorite flavor.) # swap -a /tmp/newswap (This will add the new swap space, you can check this with swap -l) # swap -l This should eliminate any problems one has with memory errors coming from ld. Darren R. Davis UnixWare Developer Support Engineer Novell
Technical Details
Message-ID:
<1993Nov3.232843.23602@univel.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!news.provo.novell.com!gateway.univel.com!univel.COM!darrendReferences:
<CFFH1p.BEy@feenix.metronet.com> <2ar782INNagl@oapd.oki.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c665,4a531625381ff08f,start X-Google-Attributes: gid10c665,public X-Google-Thread: 113cec,4a531625381ff08f,start X-Google-Attributes: gid113cec,public X-Google-Thread: 10650a,4a531625381ff08f,start X-Google-Attributes: gid10650a,public X-Google-ArrivalTime: 1993-11-03 15:49:08 PST Newsgroups: comp.unix.internals,comp.unix.sys5.r4,biz.univel.misc Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!news.provo.novell.com!gateway.univel.com!univel.COM!darrend From: darrend@univel.COM (Darren R. Davis) Subject: Re: LD Exit codes Message-ID: <1993Nov3.232843.23602@univel.com> Sender: news@univel.com Nntp-Posting-Host: bikini.utah.univel.com Organization: Univel References: <CFFH1p.BEy@feenix.metronet.com> <2ar782INNagl@oapd.oki.com> Date: Wed, 3 Nov 1993 23:28:43 GMT Lines: 70