Boost C++ Libraries: Ticket #12496: clang 3.9 fails to generate precompiled headers https://svn.boost.org/trac10/ticket/12496 <p> Bootstrapping </p> <pre class="wiki">./bootstrap.sh --with-toolset=clang --with-icu=/usr --prefix=~/lib/boost_clang --with-python=python3 </pre><p> b2 </p> <pre class="wiki">./b2 toolset=clang variant=release link=shared threading=multi address-model=64 cxxflags="-march=native -O3 -pipe -I~/lib -std=c++14 -libstd=libc++" linkflags="-L~/lib -lc++ -lc++abi" </pre><p> Result: </p> <pre class="wiki">clang-linux.compile.c++.pch bin.v2/libs/math/build/clang-linux-3.9.0/release/threading-multi/../src/tr1/pch.hpp.pth clang-3.9: error: cannot specify -o when generating multiple output files "clang++" -x c++-header -O3 -Wno-inline -Wall -pthread -fPIC -m64 -march=native -O3 -pipe -I~/lib -std=c++14 -libstd=libc++ -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs/math/src/tr1" -Xclang -emit-pth -o "bin.v2/libs/math/build/clang-linux-3.9.0/release/threading-multi/../src/tr1/pch.hpp.pth" "libs/math/build/../src/tr1/pch.hpp" </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12496 Trac 1.4.3 John Maddock Thu, 20 Oct 2016 17:40:40 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12496#comment:1 https://svn.boost.org/trac10/ticket/12496#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> <p> This looks to be a Boost.Build issue - not issuing the correct commands to clang? That said this works just fine for me on Ubuntu with clang trunk. </p> Ticket a.huebl@… Fri, 13 Jan 2017 17:12:57 GMT <link>https://svn.boost.org/trac10/ticket/12496#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12496#comment:2</guid> <description> <p> Seeing the same install issue, Ubuntu 14.04 with clang 3.9.0 </p> </description> <category>Ticket</category> </item> </channel> </rss>