tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: cc: Fatal: Virtual memory limit or system swap space
@ 1998-01-21 15:32 Horst Wagner
  0 siblings, 0 replies; only message in thread
From: Horst Wagner @ 1998-01-21 15:32 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks for the fast replies, the problem is solved.

My original question was (shortened version):

>Compilation of a C program (automatic. generated, source size = 310kB)
>ends with following error message:

>  cc: Fatal: Virtual memory limit or system swap space exhausted.
>  Try reducing program size or system load, or increase swap space
>  (see swapon(8)), adjust system config file entries maxdsiz and maxvas.

Solution:

I am using the bash shell, and the ulimit settings
were too low. I tested this by setting all limits to 'unlimited' 
and then everything works fine. I still have to find out which limit 
caused the problem. (use ulimit -a to see all limits and their values)

Obviously, the cc compiler in Digital Unix 3.2C uses less resources
then in V4.0C, as the same program compiles under V3.2C without 
needing to change any ulimit values. (Defaults values were identical on
both systems)

This hint came from Alan Rollow (alan@nabeth.cxo.dec.com).
Thanks !

Also thanks for all other replies with good hints:

George W. Baltz once had a similar problem: 
>As I remember it, there was a typo in a variable/function name that caused the 
>compiler to go bonkers about an undeclared construct.  You might try running 
>the program through lint, or using gcc.

Richard Eisenman:
>Did you check to see how much of that 1 gig was free?

and Mukesh Soni knows how to change maxdsiz:
>maxdsiz can be changed in /sys/conf/SYSTEMNAME
>you need to rebuild kernel after that.  ( # doconfig -c filename ) 

Thanks again for the quick help.

Horst.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-21 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-21 15:32 SUMMARY: cc: Fatal: Virtual memory limit or system swap space Horst Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox