Boost C++ Libraries: Ticket #12044: Passing -Ofast to pathscale toolchain is unsafe and break stuff https://svn.boost.org/trac10/ticket/12044 <p> When attempting to bootstrap boost-build with pathscale toolset, the build fails with internal compiler problem. It turns out it happens because of <code>-Ofast</code> being passed to the compiler. </p> <p> It is unclear to me why <code>-Ofast -O3</code> is being used there (no other toolset does that) but it sounds like a really bad idea. Besides to triggering compiler bugs like the one mentioned there, it also enables various insecure optimizations. </p> <p> Please consider 'lowering' the flags down to regular <code>-O3</code>. I'm attaching a bootstrap.log with the failure and a proposed patch. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12044 Trac 1.4.3 Michał Górny <mgorny@…> Sun, 06 Mar 2016 17:30:53 GMT attachment set https://svn.boost.org/trac10/ticket/12044 https://svn.boost.org/trac10/ticket/12044 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bootstrap.log</span> </li> </ul> <p> Boostrap log </p> Ticket Michał Górny <mgorny@…> Sun, 06 Mar 2016 17:31:33 GMT attachment set https://svn.boost.org/trac10/ticket/12044 https://svn.boost.org/trac10/ticket/12044 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-Do-not-pass-Ofast-to-pathscale-toolset.patch</span> </li> </ul> <p> The patch </p> Ticket Vladimir Prus Wed, 09 Mar 2016 06:59:30 GMT <link>https://svn.boost.org/trac10/ticket/12044#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12044#comment:1</guid> <description> <p> Hi Michał, </p> <p> I have applied your patch, thanks. It should be included in 1.61. </p> <p> No idea why -Ofast was used for pathscale in the first place, but since no core Boost.Build developers work on that toolset, and this option is there since 2007, I would imagine it was a workaround for some other issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 08 Oct 2016 11:58:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12044#comment:2 https://svn.boost.org/trac10/ticket/12044#comment:2 <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">fixed</span> </li> </ul> Ticket