I'm following the instructions from the BuildingOnDebian7 wiki page.
I'm stuck at point 8 "Build llvm and clang locally."
The command is:
- Code: Select all
./tools/clang/scripts/update.py --force-local-build --without-android --gcc-toolchain '/usr'
The compile error is:
- Code: Select all
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o
/usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -std=c++11 -ffunction-sections -fdata-sections -O3 -Ilib/Support -I/home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support -Iinclude -I/home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/include -UNDEBUG -fno-exceptions -fno-rtti -MMD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o -c /home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support/ThreadPool.cpp
/home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support/ThreadPool.cpp: In lambda function:
/home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support/ThreadPool.cpp:142:55: error: no matching function for call to ‘std::shared_future<void>::get() const’
/home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support/ThreadPool.cpp:142:55: note: candidate is:
In file included from /home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/include/llvm/Support/ThreadPool.h:30:0,
from /home/olivier/Projets/libcef/branche_2704/chromium/src/third_party/llvm/lib/Support/ThreadPool.cpp:14:
/usr/include/c++/4.7/future:892:7: note: void std::shared_future<void>::get() <near match>
/usr/include/c++/4.7/future:892:7: note: no known conversion for implicit ‘this’ parameter from ‘const std::shared_future<void>*’ to ‘std::shared_future<void>*’
[79/2628] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/YAMLParser.cpp.o
ninja: build stopped: subcommand failed.
Failed.