Opened 2 years ago

Last modified 21 months ago

#12496 new Bugs

clang 3.9 fails to generate precompiled headers

Reported by: Jörg Plate <patterner@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:



./ --with-toolset=clang --with-icu=/usr
  --prefix=~/lib/boost_clang --with-python=python3


./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" 


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_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs/math/src/tr1"
  -Xclang -emit-pth -o

Change History (2)

comment:1 Changed 2 years ago by John Maddock

Component: Nonebuild
Owner: set to Vladimir Prus

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.

comment:2 Changed 21 months ago by a.huebl@…

Seeing the same install issue, Ubuntu 14.04 with clang 3.9.0

Note: See TracTickets for help on using tickets.