gcc: "Virtual memory exhausted"

gcc: "Virtual memory exhausted"

Post by Norbert Blad » Tue, 10 Nov 1998 04:00:00



Hello everyone !

Last week a tried to compile the "gqview" image viewer program
on FreeBSD 2.2.7 and got the strange message from gcc
        "Virtual memory exhausted"
This message did show up at the compile step for testimg.c
This is a small file in which an array of shorts is defined
and initialised with data.

The same happens with other files where a certain number of
initialised data is used to fill two-dimensional arrays.

What is the cause of this problem ?

Is the gcc which comes with standard 2.2.7-RELEASE version broken ?

I have 128 MB of RAM and 130 MB of swap space.

I did send E-Mail to the Maintainer of the Gnome and the gqview
ports to ask him this question, but the mail bounced.

That's why I now as the same question here.

Thanks in advance for your reply,

Norbert.

--
Norbert Bladt            Payphone Management System Software Development
ascom Autelca AG
Worbstrasse 201          CH-3073 Guemligen, Switzerland

 
 
 

gcc: "Virtual memory exhausted"

Post by ab.. » Tue, 10 Nov 1998 04:00:00


# Hello everyone !

# Last week a tried to compile the "gqview" image viewer program
# on FreeBSD 2.2.7 and got the strange message from gcc
#       "Virtual memory exhausted"
# This message did show up at the compile step for testimg.c
# This is a small file in which an array of shorts is defined
# and initialised with data.

# The same happens with other files where a certain number of
# initialised data is used to fill two-dimensional arrays.

# What is the cause of this problem ?

Most probably you have too small limits set in your /etc/login.conf.
Even root account is subject to these limits.

Don't forget to run cap_mkdb /etc/login.conf, after you changed the values!

--
Andrzej Bialecki

--------------------   ++-------++  -------------------------------------

 Research & Academic   |+-------+|       "Small & Embedded FreeBSD"
 Network in Poland     | |TT~~~| |    http://www.freebsd.org/~picobsd/
--------------------   ~-+==---+-+  -------------------------------------

 
 
 

gcc: "Virtual memory exhausted"

Post by Kenneth Furg » Wed, 11 Nov 1998 04:00:00



> Last week a tried to compile the "gqview" image viewer program
> on FreeBSD 2.2.7 and got the strange message from gcc
>         "Virtual memory exhausted"
> This message did show up at the compile step for testimg.c
> This is a small file in which an array of shorts is defined
> and initialised with data.

You're probably being bitten by some artificial limitations imposed by
your shell or /etc/login.conf settings.

- K.C.

 
 
 

gcc: "Virtual memory exhausted"

Post by Frank Cra » Thu, 12 Nov 1998 04:00:00




Quote:>> Last week a tried to compile the "gqview" image viewer program
>> on FreeBSD 2.2.7 and got the strange message from gcc
>>         "Virtual memory exhausted"
>> This message did show up at the compile step for testimg.c
>> This is a small file in which an array of shorts is defined
>> and initialised with data.
>You're probably being bitten by some artificial limitations imposed by
>your shell or /etc/login.conf settings.

You might also want to check what sort of optimization the Makefile
is using. That probably isn't a problem, but I've seen high level
optimization cause this error. Usually, that's when the code is
very sub-optimal in a way the compiler has trouble dealing with,
so it is unlikely to occur compiling production software. But it
couldn't hurt to check.

                                                        Frank Crary
                                                        CU Boulder

 
 
 

1. Solved: gcc "Virtual memory exhausted" - Thanks

Hello, again !

Thank you for your replies regarding the gcc message
        "Virtual memory exhausted"
This is a newly introduced feature in 2.2.7 (or 2.2.6).
I changed the limits in /etc/login.conf for the default user.
I couldn't get the other settings to work for me, although
I changed my user class to "staff" and did re-login.

That did solve my problem.

Thanks again to all for your quick responses.

Norbert.

--
Norbert Bladt            Payphone Management System Software Development
ascom Autelca AG
Worbstrasse 201          CH-3073 Guemligen, Switzerland

2. Accessing A CDRom via Auto-Mount

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Please Help! I need a 8-bit friendly mailer for SCO.

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. ftape 1.13b pl1.1.49 doesn't work

7. "increased VM size+Main-memory" better than "Main-memory+Hard-disk" ??

8. rpm unpacking problem

9. "sed: memory exhausted" - help

10. "ls: Memory exhausted" from Linux on a NFS directory

11. Type "(", ")" and "{", "}" in X...

12. Help! GCC V2.6.3 Error: virtual memory exhausted ...

13. gcc exhausting virtual memory