It seems that gcc 4.8.2 eats a lot of memory (and segfaults) when using BOOST PP local file iterations. By replacing it to horizontal repetitions the crash can be omitted, but still a lot of memory is needed. Probably one has to replace all local file iterations by BOOST_PP_REPEAT statements, or file iterations. GCC sucks :/