Boost C++ Libraries: Ticket #6697: toolset darwin-4.7 error: unrecognized option -no-cpp-precomp https://svn.boost.org/trac10/ticket/6697 <p> I installed gcc 4.7 from macports and added the following to my user-config.jam: </p> <pre class="wiki">using darwin : 4.7 : /opt/local/bin/g++-mp-4.7 ; </pre><p> Now when I run </p> <p> <code> $ b2 darwin-4.7 </code> </p> <p> , the build process will stop at compilation stage because of an error: </p> <p> <code> g++-mp-4.7: error: unrecognized command line option '-no-cpp-precomp' </code> </p> <p> <code>-no-cpp-precomp</code> was already unrecognized in darwin-4.4, but then it only caused a warning without further obstructing the build process. I don't know at what version of darwin-gcc this changed into an error. </p> <p> If I repeat the displayed command without the <code>-no-cpp-precomp</code> option it works fine. Linking also works without errors. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6697 Trac 1.4.3 Daniel James Sat, 17 Mar 2012 20:05:55 GMT <link>https://svn.boost.org/trac10/ticket/6697#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:1</guid> <description> <p> I removed it from trunk in <a class="changeset" href="https://svn.boost.org/trac10/changeset/75659" title="Remove `-no-cpp-precomp` from darwin toolset. This apparently hasn't ...">[75659]</a>. I assumed it would have been merged by now, but I think it can safely cherry-picked if that's okay. </p> </description> <category>Ticket</category> </item> <item> <author>stoffle+boost@…</author> <pubDate>Mon, 26 Mar 2012 10:32:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6697#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:2</guid> <description> <p> I too am having this problem (with gcc 4.6, from macports). Is there a workaround that doesn't involve modifying the boost jamfiles? </p> </description> <category>Ticket</category> </item> <item> <author>James Harris <stoffle+boost@…></author> <pubDate>Fri, 30 Mar 2012 23:06:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6697#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:3</guid> <description> <p> Also, I'm not sure of the purpose of this file <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/tools/build/v2/tools/darwin.py"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/tools/build/v2/tools/darwin.py</a> but does it need to be modified as well? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 05 Mar 2013 22:38:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6697#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:4</guid> <description> <p> How to solve this problem? I am getting this with gcc-4.7.2 installed from source. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Tue, 05 Mar 2013 22:56:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6697#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:5</guid> <description> <p> I think it was fixed in boost 1.50, are you using an old version of boost? If you are then look for <code>-no-cpp-precomp</code> in <code>tools/build/v2/tools/darwin.jam</code> and remove it (as in the change I linked to above). </p> </description> <category>Ticket</category> </item> <item> <author>jstroud@…</author> <pubDate>Wed, 20 Mar 2013 23:21:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6697#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6697#comment:6</guid> <description> <p> For later versions of OS X, clang allows the -no-cpp-precomp flag, so link c++ to /usr/bin/clang or set $CXX to /usr/bin/clang as necessary. This worked for me to overcome the error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 23 Jan 2018 02:29:30 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6697#comment:7 https://svn.boost.org/trac10/ticket/6697#comment:7 <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