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

Build failure using clang 5 #908

Closed
ghost opened this issue Jan 9, 2018 · 1 comment
Closed

Build failure using clang 5 #908

ghost opened this issue Jan 9, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 9, 2018

Bug Report

  • What is the issue you have?

The project failed to build

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

See here for a build log. The error generated is below:

In file included from /home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:31:
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/src/json.hpp:12061:40: error: no viable overloaded '='
            result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:585:35: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::insert' requested here
                auto it = j_array.insert(j_array.begin(), 3, 5);
                                  ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit copy assignment operator) not viable: cannot convert argument of incomplete type 'void' to 'const __gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
    class __normal_iterator
          ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit move assignment operator) not viable: cannot convert argument of incomplete type 'void' to '__gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
In file included from /home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:31:
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/src/json.hpp:12125:36: error: no viable overloaded '='
        result.m_it.array_iterator = m_value.array->insert(
        ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:627:35: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::insert' requested here
                auto it = j_array.insert(j_array.end(), j_other_array.begin(), j_other_array.end());
                                  ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit copy assignment operator) not viable: cannot convert argument of incomplete type 'void' to 'const __gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
    class __normal_iterator
          ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit move assignment operator) not viable: cannot convert argument of incomplete type 'void' to '__gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
In file included from /home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:31:
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/src/json.hpp:12172:36: error: no viable overloaded '='
        result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, ilist.begin(), ilist.end());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/conda/staged-recipes/build_artifacts/nlohmann_json_1515513797346/work/json-3.0.1/test/src/unit-modifiers.cpp:696:35: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::insert' requested here
                auto it = j_array.insert(j_array.begin(), {7, 8, 9});
                                  ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit copy assignment operator) not viable: cannot convert argument of incomplete type 'void' to 'const __gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
    class __normal_iterator
          ^
/opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_iterator.h:708:11: note: candidate function (the implicit move assignment operator) not viable: cannot convert argument of incomplete type 'void' to '__gnu_cxx::__normal_iterator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> *, std::vector<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::allocator<nlohmann::basic_json<std::map, std::vector, std::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> > > >' for 1st argument
@ghost
Copy link
Author

ghost commented Jan 9, 2018

Sorry, it's clear after posting this that libcxx is too old.

@ghost ghost closed this as completed Jan 9, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants