Boost logo

Boost-Build :

Subject: Re: [Boost-build] problems when building boost with clang
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-12-09 05:57:34


> I tried to build BOOST with clang 2.8 compiler today, but I encountered
> some
> failures. This is the first time ever I tried to build BOOST, so most
> likely
> I'm doing something wrong. I would appreciate any help to resolve this
> issue.
>
> I saw an announcement dated March 20, 2010 that clang++ successfully
> builds
> BOOST on
> http://blog.llvm.org/2010/05/clang-builds-boost.html, so I followed
> instructions on how to do it and I expected to see similar results. The
> difference is that I used 2.8 version of the clang compiler and that I
> compiled on Linux, not on Mac OS.
>
>
> (1) First, for comparison reason, I've built BOOST with gcc 4.4.3
> compiler,
> installed on my system.
> I saw some failures/skipped targets...
>
> ...failed updating 58 targets...
> ...skipped 12 targets...
> ...updated 763 targets...
>
> Is it expected results for gcc?
>
> The reason why some tests failed is because some headers are missing:
>
> e.g.
> gcc.compile.c++
> /home/kromanova/Boost_1_44_0/build-gcc/boost/bin.v2/libs/regex/build/gcc-4.4.3/debug/has_icu_test.o
> libs/regex/build/has_icu_test.cpp:12:30: error: unicode/uversion.h: No
> such
> file or directory
> libs/regex/build/has_icu_test.cpp:13:28: error: unicode/utypes.h: No such
> file or directory
> libs/regex/build/has_icu_test.cpp:14:27: error: unicode/uchar.h: No such
> file or directory
> libs/regex/build/has_icu_test.cpp:15:26: error: unicode/coll.h: No such
> file
> or directory
>
> Am I missing something???

That should *not* cause any tests to fail, and you should *not* see those
messages: they should be directed to file as part of the regex lib's
configuration process.

> (2) I was not sure whether gcc compilation results are expected or not,
> but
> I hoped at least to get similar failed/skipped rate for the clang 2.8
> compiler. However the results were much worse:
>
> ...failed updating 63 targets...
> ...skipped 309 targets...
> ...updated 461 targets...
>
> When I analyzed the log file, at some point things went differently
> (compared to building BOOST with gcc), namely, pch.hpp.pchi file was not
> found. Do you know why this file is not where it's expected to be? Many
> tests are skipped/failed later because this file is missing.
> Do you know how could I resolve this issue?

Looks like pch-support for the clang compiler is broken inside Boost.Build.
Vladimir?

HTH, John.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk