Re: virtual memory exhausted: Cannot allocate memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Mathieu Malaterre via Gcc-help:

> I am having a hard time understanding which flags to change in case of
> `virtual memory exhausted: Cannot allocate memory`. I can compile
> openvdb on all Debian supported arches but mipsel. I tried tweaking
> the debug level as well as the optimization level without luck so far.
>
> Latest attempt is:
>
> g++-12 [...] -g0 -O0 --param ggc-min-expand=0 --param
> ggc-min-heapsize=131072 [...]
>
> What should I try next ?

It could be a compiler bug.  GCC might try to allocate infinite amounts
or just way too much memory.

Perhaps you can build with -save-temps, capture the preprocessed .i
file, and then try to reproduce the issue with a cross-compiler using
that .i file?

Thanks,
Florian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux