Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trUtil build failure #144

Open
maria-garavaglia opened this issue Mar 4, 2020 · 0 comments
Open

trUtil build failure #144

maria-garavaglia opened this issue Mar 4, 2020 · 0 comments

Comments

@maria-garavaglia
Copy link

The following build error appears when trying to build TR 0.1.1912. Tried with both version 1.8.3 and 1.8.4 of jsoncpp and with both devtoolset 6 and 7. Skipping trUtil tests in the CMake config fixes the issue.

In file included from /home/tyler.garavaglia/rpmbuild/SOURCES/TrueReality-0.1.1912/Tests/TrUtil/JsonTests.h:24:0,
                 from /home/tyler.garavaglia/rpmbuild/SOURCES/TrueReality-0.1.1912/Tests/TrUtil/JsonTests.cpp:22:
/usr/local/googletest/1.8.0/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = trUtil::JSON::ValueType; T2 = Json::ValueType]’:
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1421:23:   required from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = trUtil::JSON::ValueType; T2 = Json::ValueType; bool lhs_is_null_literal = false]’
/home/tyler.garavaglia/rpmbuild/SOURCES/TrueReality-0.1.1912/Tests/TrUtil/JsonTests.cpp:101:5:   required from here
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1392:11: error: comparison between ‘const enum trUtil::JSON::ValueType’ and ‘const enum Json::ValueType’ [-Werror=enum-compare]
   if (lhs == rhs) {
       ~~~~^~~~~~
/usr/local/googletest/1.8.0/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = unsigned int; T2 = int]’:
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1421:23:   required from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = unsigned int; T2 = int; bool lhs_is_null_literal = false]’
/home/tyler.garavaglia/rpmbuild/SOURCES/TrueReality-0.1.1912/Tests/TrUtil/JsonTests.cpp:188:5:   required from here
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1392:11: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
/usr/local/googletest/1.8.0/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]’:
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1421:23:   required from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]’
/home/tyler.garavaglia/rpmbuild/SOURCES/TrueReality-0.1.1912/Tests/TrUtil/JsonTests.cpp:189:5:   required from here
/usr/local/googletest/1.8.0/include/gtest/gtest.h:1392:11: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants