https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251
--- Comment #6 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to John Paul Adrian Glaubitz from comment #5) > Hmm, the build now failed due to "out of memory" apparently [1]: > > [ 7%] Building CXX object > libs/network/src/CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o > cd /<<BUILDDIR>>/cpp-netlib-0.11.2+dfsg1/obj-sh4-linux-gnu/libs/network/src > && /usr/bin/c++ -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_TEST_DYN_LINK > -Dcppnetlib_uri_EXPORTS -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fPIC > -I/<<BUILDDIR>>/cpp-netlib-0.11.2+dfsg1 -o > CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o -c > /<<BUILDDIR>>/cpp-netlib-0.11.2+dfsg1/libs/network/src/uri/uri.cpp > virtual memory exhausted: Cannot allocate memory > > Any ideas? Could be something in the compiler running in a loop. Can you get the preprocessed source?