* 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