You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
G++ exhausted the memory while compiling Acceptor.cpp #51
I have frequently built wangle and fbthrift and folly with GCC 4.8 on a 1.5GB VM. Only fbthrift gets close to running out of memory. I would guess that the new GCC is leaky or has an overly expensive optimization pass.
To measure memory usage of a process, you can try /usr/bin/time FAILING COMMAND. Look for maxresident.
Activity
djwatson commentedon Jun 16, 2016
How much memory did it use?
guoxiao commentedon Jun 16, 2016
@djwatson It will use up all my 16GB memory and get killed by the kernel while compiling this file.
djwatson commentedon Jun 16, 2016
I see ~1.5G taken for compilation, although that's on 4.8 or 5. I'm guessing this is a gcc bug, but I'll leave this open until we know for sure.
djwatson commentedon Jun 16, 2016
Also compiles fine with clang 3.9.0
snarkmaster commentedon Jun 23, 2016
I have frequently built wangle and fbthrift and folly with GCC 4.8 on a 1.5GB VM. Only
fbthriftgets close to running out of memory. I would guess that the new GCC is leaky or has an overly expensive optimization pass.To measure memory usage of a process, you can try
/usr/bin/time FAILING COMMAND. Look formaxresident.guoxiao commentedon Jul 27, 2016
The
gcc-c++package from Fedora Rawhide has fixed the problem.% g++ --version
g++ (GCC) 6.1.1 20160721 (Red Hat 6.1.1-4)
Fix shebang in shell_builder (#51)
eden/edenapi and mononoke integration tests: add edenapi/tools to get…