Boost C++ Libraries: Ticket #12210: compiling PCH with gcc 6.1 fails https://svn.boost.org/trac10/ticket/12210 <p> Math libraries PCH fail with gcc 6.1: </p> <pre class="wiki">"g++" -ftemplate-depth-128 -fno-inline -Wall -g -m64 -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp" g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions. </pre><p> When adding --std=c++11 I get a warning but it's working (default mode of gcc 6.1 is c++14) </p> <pre class="wiki">"g++" --std=c++11 -ftemplate-depth-128 -fno-inline -Wall -g -m64 -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp" libs/math/build/../src/tr1/truncl.cpp:6:21: warning: bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1/pch.hpp.gch: not used because `__cpp_aggregate_nsdmi' not defined [-Winvalid-pch] </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12210 Trac 1.4.3 anonymous Thu, 19 May 2016 09:37:54 GMT <link>https://svn.boost.org/trac10/ticket/12210#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12210#comment:1</guid> <description> <p> Using pch=off for compilation also fixes that problem. Some issue with c++14 and pch? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 05 Jun 2016 17:42:34 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/12210#comment:2 https://svn.boost.org/trac10/ticket/12210#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">math</span> </li> </ul> Ticket John Maddock Thu, 09 Jun 2016 09:58:15 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12210#comment:3 https://svn.boost.org/trac10/ticket/12210#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> I'm unable to reproduce here (Ubuntu x64): gcc-6.1 is a configuration we test so this should work. I think you're going to have to do as the message suggests and submit a GCC bug report complete with the preprocessed code that causes the issue. Please update this report with the GCC issue link when you have one. </p> <p> Thanks, John Maddock. </p> Ticket