Hi,
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???
(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?
clang-linux.compile.c++.pch bin.v2/libs/math/build/clang-linux-2.8/release/threading-multi/../src/tr1/pch.hpp.pchi
clang: error: no such file or directory: 'bin.v2/libs/math/build/clang-linux-2.8/release/threading-multi/../src/tr1/pch.hpp.pchi'
rm -f "bin.v2/libs/math/build/clang-linux-2.8/release/threading-multi/../src/tr1/pch.hpp.pchi" && "clang++" -x c++-header -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs/math/src/tr1" -c -pch-create "bin.v2/libs/math/build/clang-linux-2.8/release/threading-multi/../src/tr1/pch.hpp.pchi" "libs/math/build/../src/tr1/pch.hpp"
...failed clang-linux.compile.c++.pch bin.v2/libs/math/build/clang-linux-2.8/release/threading-multi/../src/tr1/pch.hpp.pchi...
...skipped <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>assoc_laguerre.o for lack of <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>../src/tr1/pch.hpp.pchi...
...skipped <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>assoc_legendre.o for lack of <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>../src/tr1/pch.hpp.pchi...
...skipped <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>beta.o for lack of <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>../src/tr1/pch.hpp.pchi...
...skipped <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>comp_ellint_1.o for lack of <pbin.v2/libs/math/build/clang-linux-2.8/release/threading-multi>../src/tr1/pch.hpp.pchi...
@
Thanks,
Ekaterina.