Skip to content

Instantly share code, notes, and snippets.

@Ziemas
Created November 11, 2023 22:40
Show Gist options
  • Save Ziemas/5bdf7ede2b8c4b2d22bc308b6e70a144 to your computer and use it in GitHub Desktop.
Save Ziemas/5bdf7ede2b8c4b2d22bc308b6e70a144 to your computer and use it in GitHub Desktop.
[0/2] Re-checking globbed directories...
[1/887] Building CXX object decompiler/CMakeFiles/decomp.dir/analysis/final_output.cpp.o
FAILED: decompiler/CMakeFiles/decomp.dir/analysis/final_output.cpp.o
/usr/bin/clang++ -DFMT_SHARED -DHAVE_USLEEP=1 -DREPLXX_BUILDING_DLL -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=1 -Ddecomp_EXPORTS -I/home/ziemas/Development/jak-project/. -I/home/ziemas/Development/jak-project/third-party/curl/include -I/home/ziemas/Development/jak-project/third-party/tree-sitter/tree-sitter/lib/include -I/home/ziemas/Development/jak-project/third-party/lzokay -I/home/ziemas/Development/jak-project/third-party/fmt/include -I/home/ziemas/Development/jak-project/third-party/replxx/include -isystem /home/ziemas/Development/jak-project/third-party/inja -fcxx-exceptions -fexceptions -fdiagnostics-color=always -std=c++17 -mavx -Wall -Wno-c++11-narrowing -Wno-c++98-compat -O3 -D_CRT_SECURE_NO_WARNINGS -ggdb -g -Wextra -O3 -O3 -DNDEBUG -std=gnu++20 -fPIC -MD -MT decompiler/CMakeFiles/decomp.dir/analysis/final_output.cpp.o -MF decompiler/CMakeFiles/decomp.dir/analysis/final_output.cpp.o.d -o decompiler/CMakeFiles/decomp.dir/analysis/final_output.cpp.o -c /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:2:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/string:42:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/char_traits.h:50:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/type_traits:979:7: error: static assertion failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<decompiler::DerefTokenMatcher>{})': template argument must be a complete class or an unbounded array
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:188:21: note: in instantiation of template class 'std::is_destructible<decompiler::DerefTokenMatcher>' requested here
static_assert(is_destructible<_Value_type>::value,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:947:12: note: in instantiation of function template specialization 'std::_Destroy<decompiler::DerefTokenMatcher *>' requested here
std::_Destroy(__first, __last);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:732:7: note: in instantiation of function template specialization 'std::_Destroy<decompiler::DerefTokenMatcher *, decompiler::DerefTokenMatcher>' requested here
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::DerefTokenMatcher>::~vector' requested here
class Matcher {
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:42:39: note: in implicit destructor for 'decompiler::Matcher' first required here
static inline Matcher s6() { return Matcher::reg(Register(Reg::GPR, Reg::S6)); }
^
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:4:
In file included from /home/ziemas/Development/jak-project/./decompiler/Function/Function.h:7:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/vector:66:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:367:35: error: arithmetic on a pointer to an incomplete type 'decompiler::DerefTokenMatcher'
_M_impl._M_end_of_storage - _M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:730:7: note: in instantiation of member function 'std::_Vector_base<decompiler::DerefTokenMatcher, std::allocator<decompiler::DerefTokenMatcher>>::~_Vector_base' requested here
~vector() _GLIBCXX_NOEXCEPT
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::DerefTokenMatcher>::~vector' requested here
class Matcher {
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:42:39: note: in implicit destructor for 'decompiler::Matcher' first required here
static inline Matcher s6() { return Matcher::reg(Register(Reg::GPR, Reg::S6)); }
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:12:7: note: forward declaration of 'decompiler::DerefTokenMatcher'
class DerefTokenMatcher;
^
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:2:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/string:42:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/char_traits.h:50:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/type_traits:979:7: error: static assertion failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<decompiler::LetEntryMatcher>{})': template argument must be a complete class or an unbounded array
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:188:21: note: in instantiation of template class 'std::is_destructible<decompiler::LetEntryMatcher>' requested here
static_assert(is_destructible<_Value_type>::value,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:947:12: note: in instantiation of function template specialization 'std::_Destroy<decompiler::LetEntryMatcher *>' requested here
std::_Destroy(__first, __last);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:732:7: note: in instantiation of function template specialization 'std::_Destroy<decompiler::LetEntryMatcher *, decompiler::LetEntryMatcher>' requested here
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::LetEntryMatcher>::~vector' requested here
class Matcher {
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:42:39: note: in implicit destructor for 'decompiler::Matcher' first required here
static inline Matcher s6() { return Matcher::reg(Register(Reg::GPR, Reg::S6)); }
^
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:4:
In file included from /home/ziemas/Development/jak-project/./decompiler/Function/Function.h:7:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/vector:66:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:367:35: error: arithmetic on a pointer to an incomplete type 'decompiler::LetEntryMatcher'
_M_impl._M_end_of_storage - _M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:730:7: note: in instantiation of member function 'std::_Vector_base<decompiler::LetEntryMatcher, std::allocator<decompiler::LetEntryMatcher>>::~_Vector_base' requested here
~vector() _GLIBCXX_NOEXCEPT
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::LetEntryMatcher>::~vector' requested here
class Matcher {
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:42:39: note: in implicit destructor for 'decompiler::Matcher' first required here
static inline Matcher s6() { return Matcher::reg(Register(Reg::GPR, Reg::S6)); }
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:14:7: note: forward declaration of 'decompiler::LetEntryMatcher'
class LetEntryMatcher;
^
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:4:
In file included from /home/ziemas/Development/jak-project/./decompiler/Function/Function.h:7:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/vector:65:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:125:4: error: no matching function for call to '_Destroy'
std::_Destroy(__result, __cur);
^~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:371:14: note: in instantiation of function template specialization 'std::__do_uninit_copy<__gnu_cxx::__normal_iterator<const decompiler::DerefTokenMatcher *, std::vector<decompiler::DerefTokenMatcher>>, decompiler::DerefTokenMatcher *>' requested here
return std::__do_uninit_copy(__first, __last, __result);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:603:9: note: in instantiation of function template specialization 'std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator<const decompiler::DerefTokenMatcher *, std::vector<decompiler::DerefTokenMatcher>>, decompiler::DerefTokenMatcher *, decompiler::DerefTokenMatcher>' requested here
std::__uninitialized_copy_a(__x.begin(), __x.end(),
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::DerefTokenMatcher>::vector' requested here
class Matcher {
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:97:39: note: in implicit copy constructor for 'decompiler::Matcher' first required here
{ return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); }
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:115:9: note: in instantiation of function template specialization 'std::construct_at<decompiler::Matcher, const decompiler::Matcher &>' requested here
std::construct_at(__p, std::forward<_Args>(__args)...);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:120:11: note: in instantiation of function template specialization 'std::_Construct<decompiler::Matcher, const decompiler::Matcher &>' requested here
std::_Construct(std::__addressof(*__cur), *__first);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:371:14: note: in instantiation of function template specialization 'std::__do_uninit_copy<const decompiler::Matcher *, decompiler::Matcher *>' requested here
return std::__do_uninit_copy(__first, __last, __result);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:1692:11: note: in instantiation of function template specialization 'std::__uninitialized_copy_a<const decompiler::Matcher *, decompiler::Matcher *, decompiler::Matcher>' requested here
std::__uninitialized_copy_a(__first, __last,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:679:2: note: in instantiation of function template specialization 'std::vector<decompiler::Matcher>::_M_range_initialize<const decompiler::Matcher *>' requested here
_M_range_initialize(__l.begin(), __l.end(),
^
/home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:381:7: note: in instantiation of member function 'std::vector<decompiler::Matcher>::vector' requested here
{Matcher::any_symbol(type_name), Matcher::integer({}), Matcher::any_label(method_label)});
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:182:5: note: candidate template ignored: substitution failure [with _ForwardIterator = decompiler::DerefTokenMatcher *]
_Destroy(_ForwardIterator __first, _ForwardIterator __last)
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:146:5: note: candidate function template not viable: requires single argument '__pointer', but 2 arguments were provided
_Destroy(_Tp* __pointer)
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:928:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:944:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
^
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:1:
In file included from /home/ziemas/Development/jak-project/decompiler/analysis/final_output.h:4:
In file included from /home/ziemas/Development/jak-project/./decompiler/Function/Function.h:7:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/vector:65:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:125:4: error: no matching function for call to '_Destroy'
std::_Destroy(__result, __cur);
^~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:371:14: note: in instantiation of function template specialization 'std::__do_uninit_copy<__gnu_cxx::__normal_iterator<const decompiler::LetEntryMatcher *, std::vector<decompiler::LetEntryMatcher>>, decompiler::LetEntryMatcher *>' requested here
return std::__do_uninit_copy(__first, __last, __result);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:603:9: note: in instantiation of function template specialization 'std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator<const decompiler::LetEntryMatcher *, std::vector<decompiler::LetEntryMatcher>>, decompiler::LetEntryMatcher *, decompiler::LetEntryMatcher>' requested here
std::__uninitialized_copy_a(__x.begin(), __x.end(),
^
/home/ziemas/Development/jak-project/./decompiler/IR2/GenericElementMatcher.h:35:7: note: in instantiation of member function 'std::vector<decompiler::LetEntryMatcher>::vector' requested here
class Matcher {
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:97:39: note: in implicit copy constructor for 'decompiler::Matcher' first required here
{ return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); }
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:115:9: note: in instantiation of function template specialization 'std::construct_at<decompiler::Matcher, const decompiler::Matcher &>' requested here
std::construct_at(__p, std::forward<_Args>(__args)...);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:120:11: note: in instantiation of function template specialization 'std::_Construct<decompiler::Matcher, const decompiler::Matcher &>' requested here
std::_Construct(std::__addressof(*__cur), *__first);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_uninitialized.h:371:14: note: in instantiation of function template specialization 'std::__do_uninit_copy<const decompiler::Matcher *, decompiler::Matcher *>' requested here
return std::__do_uninit_copy(__first, __last, __result);
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:1692:11: note: in instantiation of function template specialization 'std::__uninitialized_copy_a<const decompiler::Matcher *, decompiler::Matcher *, decompiler::Matcher>' requested here
std::__uninitialized_copy_a(__first, __last,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_vector.h:679:2: note: in instantiation of function template specialization 'std::vector<decompiler::Matcher>::_M_range_initialize<const decompiler::Matcher *>' requested here
_M_range_initialize(__l.begin(), __l.end(),
^
/home/ziemas/Development/jak-project/decompiler/analysis/final_output.cpp:381:7: note: in instantiation of member function 'std::vector<decompiler::Matcher>::vector' requested here
{Matcher::any_symbol(type_name), Matcher::integer({}), Matcher::any_label(method_label)});
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:182:5: note: candidate template ignored: substitution failure [with _ForwardIterator = decompiler::LetEntryMatcher *]
_Destroy(_ForwardIterator __first, _ForwardIterator __last)
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/stl_construct.h:146:5: note: candidate function template not viable: requires single argument '__pointer', but 2 arguments were provided
_Destroy(_Tp* __pointer)
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:928:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/bits/alloc_traits.h:944:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
^
6 errors generated.
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment