Boost C++ Libraries: Ticket #12505: 1.62 msvc configure regression : Name clash for main.obj https://svn.boost.org/trac10/ticket/12505 <p> Hello, </p> <p> I'm trying to update from boost 1.61 to 1.62 on msvc for conda and encountered this error: </p> <p> [00:03:41] Performing configuration checks [00:03:41] [00:03:41] - 32-bit : yes ... [00:03:41] - x86 : yes [00:03:41] - symlinks supported : yes [00:03:41] - C++11 mutex : no [00:03:41] - Boost.Config Feature Check: cxx11_auto_declarations : no ... [00:03:42] - has_icu builds : no ... [00:03:43] - zlib : yes [00:03:43] error: at C:/conda/conda-bld/work/boost_1_62_0/tools/build/src/kernel\modules.jam:107 [00:03:43] error: Name clash for '&lt;pbuildboost\boost\bin.v2\standalone\ac\msvc-9.0\release\link-static\threading-multi&gt;main.obj' [00:03:43] error: [00:03:43] error: Tried to build the target twice, with property sets having [00:03:43] error: these incompatible properties: [00:03:43] error: [00:03:43] error: - &lt;dll-path&gt;C:\conda\envs\_build\Library\lib &lt;library-path&gt;C:\conda\envs\_build\Library\lib &lt;xdll-path&gt;C:\conda\envs\_build\Library\lib [00:03:43] error: - none [00:03:43] error: [00:03:43] error: Please make sure to have consistent requirements for these [00:03:43] error: properties everywhere in your project, especially for install [00:03:43] error: targets. [00:03:43] [00:03:43] Command failed: cmd.exe /c bld.bat [00:03:43] Command exited with code 1 Full logs is provided as attachement. </p> <p> I've got the same error for vc9, vc10 and vc14 for both 32 and 64bits. </p> <p> I configure with the exact same script I used for 1.61, here's the configure part: call bootstrap.bat .\b2 install <sup> </sup></p> <blockquote> <p> --build-dir=buildboost <sup> --prefix=%LIBRARY_PREFIX% </sup> toolset=msvc-%VSTRING%.0 <sup> address-model=%ARCH% </sup> variant=release <sup> threading=multi </sup> link=static,shared <sup> -j%CPU_COUNT% </sup> -s ZLIB_INCLUDE="%LIBRARY_INC%" <sup> </sup></p> </blockquote> <p> -s ZLIB_LIBPATH="%LIBRARY_LIB%" Full build script is available as attachement. </p> <p> I've not seen it reported in the trac tickets, did someone get the same error </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12505 Trac 1.4.3 anonymous Sat, 08 Oct 2016 10:38:18 GMT <link>https://svn.boost.org/trac10/ticket/12505#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:1</guid> <description> <p> full log: <a class="ext-link" href="https://ci.appveyor.com/project/conda-forge/boost-feedstock/build/1.0.36"><span class="icon">​</span>https://ci.appveyor.com/project/conda-forge/boost-feedstock/build/1.0.36</a> build script: <a class="ext-link" href="https://github.com/conda-forge/boost-feedstock/blob/master/recipe/bld.bat"><span class="icon">​</span>https://github.com/conda-forge/boost-feedstock/blob/master/recipe/bld.bat</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 12 Oct 2016 09:24:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:2</guid> <description> <p> I can confirm I have the same issue when specifying the ZLIB_LIBPATH </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 12 Oct 2016 10:23:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:3</guid> <description> <p> maybe it comes from <a class="ext-link" href="https://github.com/boostorg/iostreams/commit/08798f6fffd6b0bf1b08236dedf0b02f6d8aac8a"><span class="icon">​</span>https://github.com/boostorg/iostreams/commit/08798f6fffd6b0bf1b08236dedf0b02f6d8aac8a</a> </p> <p> it seems ZLIB_LIBPATH is no more </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 12 Oct 2016 14:19:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:4</guid> <description> <p> I confirm that if I remove the -s ZLIB_* options the error is gone, </p> <p> thanks for the hint! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 12 Oct 2016 14:19:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:5</guid> <description> <p> but it's still a bug as the error is cryptic </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 13 Oct 2016 08:39:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:6</guid> <description> <p> Removing the zlib options allows you to build boost but causes linker error when actually using the boost::iostreams::gzip_decompressor </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 13 Oct 2016 09:39:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:7</guid> <description> <p> how do I configure properly with zlib support then ? (it tells me "zlib : yes") </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 13 Oct 2016 09:40:15 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/12505#comment:8 https://svn.boost.org/trac10/ticket/12505#comment:8 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jonathan Turkanis</span> </li> <li><strong>component</strong> <span class="trac-field-old">configure script</span> → <span class="trac-field-new">iostreams</span> </li> </ul> Ticket anonymous Thu, 13 Oct 2016 15:39:36 GMT owner, component changed https://svn.boost.org/trac10/ticket/12505#comment:9 https://svn.boost.org/trac10/ticket/12505#comment:9 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jonathan Turkanis</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">iostreams</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket anonymous Thu, 13 Oct 2016 15:41:00 GMT <link>https://svn.boost.org/trac10/ticket/12505#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:10</guid> <description> <p> apparently the zlib build logic moved to boost.build: <a class="ext-link" href="https://github.com/boostorg/build/blob/develop/src/tools/zlib.jam"><span class="icon">​</span>https://github.com/boostorg/build/blob/develop/src/tools/zlib.jam</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 03 Jan 2017 08:01:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:11</guid> <description> <p> Does that mean that <a href="http://www.boost.org/doc/libs/1_63_0/libs/iostreams/doc/installation.html">http://www.boost.org/doc/libs/1_63_0/libs/iostreams/doc/installation.html</a> is not up to date ? I am looking for the new correct way to build boost with zlib support on Windows. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 04 Jan 2017 14:52:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:12</guid> <description> <p> I tried to use a user-config.jam to setup the zlib dependency but I end up with the same issue. Is there a workaround to build boost 1.62/1.63 with zlib support on Windows ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 09 Jan 2017 08:08:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:13</guid> <description> <p> Question asked on stackoverflow: <a class="ext-link" href="http://stackoverflow.com/questions/41543505/compiling-boost-1-62-1-63-with-zlib-on-windows"><span class="icon">​</span>http://stackoverflow.com/questions/41543505/compiling-boost-1-62-1-63-with-zlib-on-windows</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 12 Jan 2017 14:49:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:14</guid> <description> <p> No answer at all here or on stackoverflow... Am I the only one interested in having the latest boost on Windows with zlib support ? :( </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 15 Jan 2017 21:48:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:15</guid> <description> <p> I also encountered the same issue when building boost by using a customized location of zlib and bzip2. It wasted me two days and I still got no clue: the error message is very cryptic and is meaningless (maybe not true to the boost guys). The only way I made it work is to add -I path_of_zlib/bzip2_header to cxxflags and add -Lpath_of_zlib/bzip2_lib to linkflags. It seems one reply in <a class="ext-link" href="https://github.com/boostorg/iostreams/commit/08798f6fffd6b0bf1b08236dedf0b02f6d8aac8a"><span class="icon">​</span>https://github.com/boostorg/iostreams/commit/08798f6fffd6b0bf1b08236dedf0b02f6d8aac8a</a> says the same thing. But it looks to me the pull request does not examine the impact and does not update the document. I would not say that's a complete pull request. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 16 Jan 2017 07:32:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:16</guid> <description> <p> I am really surprised that no one even confirmed this is a bug while a new version has been released since then... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 19 Jan 2017 13:58:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:17</guid> <description> <p> i can confirm this problem on macOS, but did not find a solution yet :-( </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 01 Feb 2017 13:10:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:18</guid> <description> <p> I tried using the cxxflags and linkflags without success: zlib is not detected and I vahe missing symbols if I try to use boost::iostreams gzip_compressor. Anyone found a workaround ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Edward Diener</dc:creator> <pubDate>Wed, 01 Feb 2017 16:04:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12505#comment:19 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12505#comment:19</guid> <description> <p> This is fixed in the latest 'develop' branch of Boost Build and should be in the next release of Boost. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Mon, 22 Jan 2018 23:58:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12505#comment:20 https://svn.boost.org/trac10/ticket/12505#comment:20 <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