Boost C++ Libraries: Ticket #5943: clang++ on windows support (was: clang-linux-3.0 output path for clang++ on Windows) https://svn.boost.org/trac10/ticket/5943 <p> I'm doing some test builds on Windows 7 using LLVM and clang from their current SVN trunks. </p> <p> I define the toolset in my user-config.jam: </p> <pre class="wiki"># -------------------- # clang configuration. # -------------------- using clang : # version 3.0 : # compiler g:/dev/llvm/_svn/build/bin/Release/clang++ : # options &lt;cxxflags&gt;-Wno-mismatched-tags &lt;cxxflags&gt;-Wno-unused-variable ; </pre><p> This is inspired by Jürgen Hunold's post in <a class="ext-link" href="http://lists.boost.org/Archives/boost/2011/09/186080.php"><span class="icon">​</span>configuring the clang toolset</a>. </p> <p> Then I call bootstrap.bat, works well. </p> <p> Finally, I try to run Boost.Array test getting this: </p> <pre class="wiki">g:\dev\boost\_svn\trunk\libs\array\test&gt;bjam ...patience... ...found 291 targets... ...updating 51 targets... common.mkdir ..\..\..\bin.v2\libs\array common.mkdir ..\..\..\bin.v2\libs\array\test common.mkdir ..\..\..\bin.v2\libs\array\test\array0.test common.mkdir ..\..\..\bin.v2\libs\array\test\array0.test\clang-linux-3.0 common.mkdir ..\..\..\bin.v2\libs\array\test\array0.test\clang-linux-3.0\debug compile.c++.without-pth ..\..\..\bin.v2\libs\array\test\array0.test\clang-linux-3.0\debug\array0.obj ... </pre><p> The process eventually stops due to compilation errors, but this is not relevant to this particular issue I'm reporting. </p> <p> Given the system I'm using, the problem is with the output path specified by Boost.Build which is </p> <pre class="wiki">...\clang-linux-3.0 </pre><p> Given that I use Windows, this path does not look right. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5943 Trac 1.4.3 René Rivera Tue, 27 Sep 2011 04:09:58 GMT type, component, summary changed; owner set https://svn.boost.org/trac10/ticket/5943#comment:1 https://svn.boost.org/trac10/ticket/5943#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">build</span> </li> <li><strong>summary</strong> <span class="trac-field-old">clang-linux-3.0 output path for clang++ on Windows</span> → <span class="trac-field-new">clang++ on windows support (was: clang-linux-3.0 output path for clang++ on Windows)</span> </li> </ul> <p> Since there is currently no support for a windows version of clang in BBv2 this can be considered wither a feature request, or a bug in that it defaults to the clang-linux variation. Since we'd need the windows support to just do a check to detect windows, I'm going to go for a feature request. Hence perhaps this is something you'd like to bring up on the BBv2 list. Especially the whole process of getting a windows clang, and how BBv2 would support it. </p> Ticket Mateusz Loskot Tue, 27 Sep 2011 12:54:41 GMT <link>https://svn.boost.org/trac10/ticket/5943#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5943#comment:2</guid> <description> <p> I must admit, I had had no idea there is no clang support on Windows in the BBv2, so I submitted this ticket. I'm not a heavy user of LLVM/clang on Windows. I just wanted to do quick test and see if Boost.Geometry tests build with this toolset. </p> <p> I'm not able to contribute to the clang support on Windows for BBv2 myself. So, I'm not sure what I'd like to discuss on the BBv2 list. Perhaps we should leave this ticket open and see if someone interested and competent will want to pick it up. </p> </description> <category>Ticket</category> </item> <item> <author>Minmin Gong <gongminmin@…></author> <pubDate>Tue, 06 May 2014 08:08:31 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5943 https://svn.boost.org/trac10/ticket/5943 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">clang.jam</span> </li> </ul> Ticket Minmin Gong <gongminmin@…> Tue, 06 May 2014 08:09:31 GMT attachment set https://svn.boost.org/trac10/ticket/5943 https://svn.boost.org/trac10/ticket/5943 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">common.jam</span> </li> </ul> Ticket Minmin Gong <gongminmin@…> Tue, 06 May 2014 08:10:00 GMT attachment set https://svn.boost.org/trac10/ticket/5943 https://svn.boost.org/trac10/ticket/5943 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">lib.jam</span> </li> </ul> Ticket Minmin Gong <gongminmin@…> Tue, 06 May 2014 08:10:53 GMT attachment set https://svn.boost.org/trac10/ticket/5943 https://svn.boost.org/trac10/ticket/5943 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">clang-win.7z</span> </li> </ul> Ticket Minmin Gong <gongminmin@…> Tue, 06 May 2014 08:14:36 GMT <link>https://svn.boost.org/trac10/ticket/5943#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5943#comment:3</guid> <description> <p> I've made a patch for building boost with Clang + MinGW on Windows. boost\tools\build\v2\tools\clang.jam, boost\tools\build\v2\tools\common.jam and boost\tools\build\v2\tools\types\lib.jam are modified, and one more file boost\tools\build\v2\tools\clang_win.jam is added. </p> <p> This is tested on Clang 3.5.0 SVN trunk, with MinGW-w64 4.8.2. </p> </description> <category>Ticket</category> </item> <item> <author>Minmin Gong <gongminmin@…></author> <pubDate>Tue, 06 May 2014 08:15:43 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5943 https://svn.boost.org/trac10/ticket/5943 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_clang_on_win.patch.7z</span> </li> </ul> <p> Patch for building boost with Clang + MinGW </p> Ticket