[root@localhost ~]# source ~/.bashrc
[root@localhost ~]# cd /root/leveldb
[root@localhost leveldb]# mkdir -p build && cd build
[root@localhost build]# cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
CMake Deprecation Warning at third_party/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at third_party/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at third_party/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Failed to find LLVM FileCheck
-- git version: v1.7.1-50-gf7547e29 normalized to 1.7.1.50
-- Version: 1.7.1.50
-- Performing Test HAVE_STD_REGEX -- compiled but failed to run
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring done (0.9s)
-- Generating done (0.1s)
-- Build files have been written to: /root/leveldb/build
[ 37%] Built target leveldb
[ 39%] Built target leveldbutil
[ 40%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from /root/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:39:0,
from /root/leveldb/third_party/googletest/googletest/include/gtest/gtest-death-test.h:41,
from /root/leveldb/third_party/googletest/googletest/include/gtest/gtest.h:64,
from /root/leveldb/third_party/googletest/googletest/src/gtest-all.cc:38:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: 在静态成员函数‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined()’中:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:414:12: 错误:‘is_trivially_copy_constructible’不是‘std’的成员
std::is_trivially_copy_constructible<M>::value &&
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:414:50: 错误:expected primary-expression before ‘>’ token
std::is_trivially_copy_constructible<M>::value &&
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:414:51: 错误:‘::value’未被声明
std::is_trivially_copy_constructible<M>::value &&
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: required from ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<const std::basic_string<char>&>*&; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = const std::basic_string<char>&; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:516:55: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:416:3: 错误:body of constexpr function ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]’ not a return-statement
}
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<const std::basic_string<char>&>*&; T = const std::basic_string<char>&]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = const std::basic_string<char>&; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:516:55: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: 错误:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]’ called in a constant expression
template <typename M, bool = MatcherBase::IsInlined<M>()>
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:412:25: 附注:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]’ is not usable as a constexpr function because:
static constexpr bool IsInlined() {
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:463:35: 附注:in template argument for type ‘bool’
using Policy = ValuePolicy<MM>;
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: required from ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<const std::basic_string<char>&>*&; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = const std::basic_string<char>&; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:538:48: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:416:3: 错误:body of constexpr function ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = std::basic_string<char>]’ not a return-statement
}
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<const std::basic_string<char>&>*&; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = const std::basic_string<char>&; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:538:48: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: 错误:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = std::basic_string<char>]’ called in a constant expression
template <typename M, bool = MatcherBase::IsInlined<M>()>
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:412:25: 附注:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = std::basic_string<char>]’ is not usable as a constexpr function because:
static constexpr bool IsInlined() {
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:463:35: 附注:in template argument for type ‘bool’
using Policy = ValuePolicy<MM>;
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<std::basic_string<char> >*; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: required from ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<std::basic_string<char> >*&; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = std::basic_string<char>; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:540:48: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:416:3: 错误:body of constexpr function ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<std::basic_string<char> >*; T = std::basic_string<char>]’ not a return-statement
}
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = const testing::MatcherInterface<std::basic_string<char> >*&; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:292:14: required from ‘testing::internal::MatcherBase<T>::MatcherBase(const testing::MatcherInterface<U>*) [with U = std::basic_string<char>; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:540:48: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: 错误:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<std::basic_string<char> >*; T = std::basic_string<char>]’ called in a constant expression
template <typename M, bool = MatcherBase::IsInlined<M>()>
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:412:25: 附注:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<std::basic_string<char> >*; T = std::basic_string<char>]’ is not usable as a constexpr function because:
static constexpr bool IsInlined() {
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:463:35: 附注:in template argument for type ‘bool’
using Policy = ValuePolicy<MM>;
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: required from ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:298:28: required from ‘testing::internal::MatcherBase<T>::MatcherBase(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-2-2> = void; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:521:69: required from ‘testing::Matcher<const std::basic_string<char>&>::Matcher(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-1-2> = void]’
/root/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc:45:68: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:416:3: 错误:body of constexpr function ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’ not a return-statement
}
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:298:28: required from ‘testing::internal::MatcherBase<T>::MatcherBase(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-2-2> = void; T = const std::basic_string<char>&]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:521:69: required from ‘testing::Matcher<const std::basic_string<char>&>::Matcher(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-1-2> = void]’
/root/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc:45:68: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: 错误:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’ called in a constant expression
template <typename M, bool = MatcherBase::IsInlined<M>()>
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:412:25: 附注:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = const std::basic_string<char>&]’ is not usable as a constexpr function because:
static constexpr bool IsInlined() {
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:463:35: 附注:in template argument for type ‘bool’
using Policy = ValuePolicy<MM>;
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: required from ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:298:28: required from ‘testing::internal::MatcherBase<T>::MatcherBase(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-2-2> = void; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:545:62: required from ‘testing::Matcher<std::basic_string<char> >::Matcher(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-1-2> = void]’
/root/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc:55:61: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:416:3: 错误:body of constexpr function ‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’ not a return-statement
}
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h: In instantiation of ‘void testing::internal::MatcherBase<T>::Init(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’:
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:298:28: required from ‘testing::internal::MatcherBase<T>::MatcherBase(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-2-2> = void; T = std::basic_string<char>]’
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:545:62: required from ‘testing::Matcher<std::basic_string<char> >::Matcher(M&&) [with M = testing::internal::EqMatcher<std::basic_string<char> >; <模板形参-1-2> = void]’
/root/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc:55:61: required from here
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:418:58: 错误:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’ called in a constant expression
template <typename M, bool = MatcherBase::IsInlined<M>()>
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:412:25: 附注:‘static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = testing::internal::EqMatcher<std::basic_string<char> >; T = std::basic_string<char>]’ is not usable as a constexpr function because:
static constexpr bool IsInlined() {
^
/root/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h:463:35: 附注:in template argument for type ‘bool’
using Policy = ValuePolicy<MM>;
^
gmake[2]: *** [third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] 错误 1
gmake[1]: *** [third_party/googletest/googletest/CMakeFiles/gtest.dir/all] 错误 2
gmake: *** [all] 错误 2