Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

compare error using g++ 11.1.0 #217

Closed
wenwenchenbosch opened this issue Jul 16, 2021 · 0 comments · Fixed by #218
Closed

compare error using g++ 11.1.0 #217

wenwenchenbosch opened this issue Jul 16, 2021 · 0 comments · Fixed by #218

Comments

@wenwenchenbosch
Copy link
Contributor

If I compile the kuksa.val, I got the following error message:

[ 40%] Building CXX object src/CMakeFiles/kuksa-val-server-object.dir/VssCommandProcessor.cpp.o
In file included from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/assert.hpp:35,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept_check.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/concepts.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/size_type.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/size.hpp:21,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/functions.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/iterator_range_core.hpp:38,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/iterator_range.hpp:13,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/as_literal.hpp:18,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/trim.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/src/VSSPath.cpp:22:
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/detail/general.hpp: In instantiation of ‘static void boost::concepts::constraint<Model>::failed() [with Model = boost::algorithm::FinderConcept<boost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF<char> >, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> > >]’:
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/iter_find.hpp:81:13:   required from ‘SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&&, FinderT) [with SequenceSequenceT = std::vector<std::__cxx11::basic_string<char> >; RangeT = std::__cxx11::basic_string<char>&; FinderT = boost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF<char> >]’
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/split.hpp:158:50:   required from ‘SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::vector<std::__cxx11::basic_string<char> >; RangeT = std::__cxx11::basic_string<char>&; PredicateT = boost::algorithm::detail::is_any_ofF<char>]’
/home/wenwen/data/tools/kuksa.val2/src/VSSPath.cpp:67:15:   required from here
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/detail/general.hpp:47:52: error: ‘this’ pointer is null [-Werror=nonnull]
   47 |     static void failed() { ((Model*)0)->constraints(); }
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~^~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/kuksa-val-server-object.dir/build.make:188: src/CMakeFiles/kuksa-val-server-object.dir/VSSPath.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/assert.hpp:35,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept_check.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/concepts.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/size_type.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/size.hpp:21,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/functions.hpp:20,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/iterator_range_core.hpp:38,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/iterator_range.hpp:13,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/range/as_literal.hpp:18,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/trim.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string.hpp:19,
                 from /home/wenwen/data/tools/kuksa.val2/src/VSSTypeSanitizer.cpp:20:
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/detail/general.hpp: In instantiation of ‘static void boost::concepts::constraint<Model>::failed() [with Model = boost::algorithm::FinderConcept<boost::algorithm::detail::first_finderF<const char*, boost::algorithm::is_equal>, __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >]’:
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/find_format.hpp:98:13:   required from ‘void boost::algorithm::find_format_all(SequenceT&, FinderT, FormatterT) [with SequenceT = std::__cxx11::basic_string<char>; FinderT = boost::algorithm::detail::first_finderF<const char*, boost::algorithm::is_equal>; FormatterT = boost::algorithm::detail::empty_formatF<char>]’
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/algorithm/string/erase.hpp:593:48:   required from ‘void boost::algorithm::erase_all(SequenceT&, const RangeT&) [with SequenceT = std::__cxx11::basic_string<char>; RangeT = char [2]]’
/home/wenwen/data/tools/kuksa.val2/src/VSSTypeSanitizer.cpp:72:32:   required from here
/home/wenwen/data/tools/kuksa.val2/build/_deps/boost-build/include/boost/concept/detail/general.hpp:47:52: error: ‘this’ pointer is null [-Werror=nonnull]
   47 |     static void failed() { ((Model*)0)->constraints(); }
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~^~
compilation terminated due to -Wfatal-errors.
 g++ --version
g++ (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@wenwenchenbosch wenwenchenbosch linked a pull request Nov 29, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant