Opened 6 years ago

Last modified 6 years 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:

Description

Bootstrapping

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

b2

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

Result:

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"

Change History (2)

comment:1 by John Maddock, 6 years ago

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 by a.huebl@…, 6 years ago

Seeing the same install issue, Ubuntu 14.04 with clang 3.9.0

Note: See TracTickets for help on using tickets.