Boost C++ Libraries: Ticket #11561: Build fails with threading=single,multi https://svn.boost.org/trac10/ticket/11561 <p> Hello, I'm the maintainer of boost in the MacPorts package management system. We just updated our boost to 1.59.0, after which we got a <a class="ext-link" href="https://trac.macports.org/ticket/48614"><span class="icon">​</span>report</a> that the build fails if <code>threading=single,multi</code> is used. The error is: </p> <pre class="wiki">error: Name clash for '&lt;pstage/lib&gt;libboost_atomic-mt.dylib' error: error: Tried to build the target twice, with property sets having error: these incompatible properties: error: error: - none error: - &lt;dll-path&gt;/opt/local/bin error: error: Please make sure to have consistent requirements for these error: properties everywhere in your project, especially for install error: targets. </pre><p> This used to work with 1.58.0 and earlier. Our default is <code>threading=multi</code> which still works fine with 1.59.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11561 Trac 1.4.3 viboes Thu, 20 Aug 2015 23:07:31 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11561#comment:1 https://svn.boost.org/trac10/ticket/11561#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket Adam Tue, 16 Feb 2016 21:19:31 GMT <link>https://svn.boost.org/trac10/ticket/11561#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11561#comment:2</guid> <description> <p> As a user of <a class="missing wiki">MacPorts</a>, I am dealing with this problem as well. Are you working on a fix? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Wed, 17 Feb 2016 13:41:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11561#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11561#comment:3</guid> <description> <p> I am not working on a fix; since I don't have a Mac and don't use <a class="missing wiki">MacPorts</a> I have no way to reproduce this problem and investigate. In fact, I don't think that Boost uses "/opt/local/bin" anywhere. </p> <p> Is there a chance this issue is reduced to a specific b2 command line, with a minimal set of libraries, and not requiring <a class="missing wiki">MacPorts</a>. Output of --debug-building might also be helpful. </p> </description> <category>Ticket</category> </item> <item> <author>ryandesign@…</author> <pubDate>Thu, 18 Feb 2016 04:06:17 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11561 https://svn.boost.org/trac10/ticket/11561 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.log.bz2</span> </li> </ul> <p> build failure of boost 1.60.0 with threading=single,multi </p> Ticket ryandesign@… Thu, 18 Feb 2016 04:08:55 GMT <link>https://svn.boost.org/trac10/ticket/11561#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11561#comment:4</guid> <description> <p> The <code>b2</code> command line that was used was given in the log file attached to the <a class="missing wiki">MacPorts</a> bug report linked from the description of this ticket. I'll paste it here for easier reference: </p> <p> <code>b2 -d2 --layout=tagged --debug-configuration --user-config=user-config.jam -sBZIP2_INCLUDE=/opt/local/include -sBZIP2_LIBPATH=/opt/local/lib -sEXPAT_INCLUDE=/opt/local/include -sEXPAT_LIBPATH=/opt/local/lib -sZLIB_INCLUDE=/opt/local/include -sZLIB_LIBPATH=/opt/local/lib -sICU_PATH=/opt/local variant=release threading=single,multi link=static,shared -j4 architecture=x86 address-model=64 link=shared</code> </p> <p> I would not begin from the assumption that the problem is <a class="missing wiki">MacPorts</a>-specific nor that it is OS X-specific, since, as I said, the problem did not exist with boost 1.58.0. </p> <p> I have also tried with boost 1.60.0, and the issue remains. I have tried with <code>--debug-building</code> and have attached the log here. </p> </description> <category>Ticket</category> </item> <item> <author>Demis.john@…</author> <pubDate>Sun, 25 Feb 2018 07:11:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11561#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11561#comment:5</guid> <description> <p> Does this have anything to do with the fact that the "name clash" file has "-mt" multi-threading included, when it's trying to build a single-threaded option? I'm trying to build the +no_single option and getting the same error. I believe it's supposed to not produce the *-mt files for +no_single but not entirely sure. What does "name clash" mean? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 25 Feb 2018 20:21:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11561#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11561#comment:6</guid> <description> <p> Correction, I meant <em>"I'm trying to build the <strong>–</strong>no_single option"</em> - as in it would Remove the option for No-Single processor, ie. Include the option for a Single Thread. </p> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11561#comment:5" title="Comment 5">Demis.john@…</a>: </p> <blockquote class="citation"> <p> Does this have anything to do with the fact that the "name clash" file has "-mt" multi-threading included, when it's trying to build a single-threaded option? I'm trying to build the +no_single option and getting the same error. I believe it's supposed to not produce the *-mt files for +no_single but not entirely sure. What does "name clash" mean? </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>