shadPS4
shadPS4 copied to clipboard
(Linux/Debian) An error occurs while trying to use cmake --build . --parallel$(nproc)
My os: Debian GNU/Linux 12 (bookworm) Error:
[ 1%] Built target xxhash
[ 1%] Automatic MOC and UIC for target Dear_ImGui_FontEmbed
[ 3%] Built target LibAtrac9
[ 3%] Built target Dear_ImGui
[ 3%] Built target fmt
[ 3%] Built target Dear_ImGui_FontEmbed_autogen
[ 5%] Built target Zycore
[ 7%] Built target SDL_uclibc
[ 9%] Built target sirit
[ 13%] Built target glslang
[ 14%] Built target png_scripts_pnglibconf_c
[ 14%] Built target pnglibconf_c
[ 14%] Built target png_scripts_symbols_out
[ 14%] Built target pngprefix_h
[ 14%] Built target TracyClient
[ 14%] Built target gcn
[ 15%] Built target discord-rpc
[ 16%] Built target host_shaders
[ 16%] Built target Dear_ImGui_FontEmbed
[ 16%] Built target pugixml-static
[ 33%] Built target cryptopp
[ 35%] Built target Zydis
[ 36%] Built target pnglibconf_out
[ 36%] Built target png_scripts_symbols_chk
[ 36%] Automatic MOC and UIC for target ImGui_Resources
[ 36%] Built target pnglibconf_h
[ 36%] Built target png_scripts_prefix_out
[ 36%] Built target ImGui_Resources_autogen
[ 36%] Built target png_scripts_intprefix_out
[ 36%] Built target png_scripts_sym_out
[ 37%] Built target png_scripts_vers_out
[ 37%] Built target ImGui_Resources
[ 37%] Built target png_genvers
[ 37%] Built target png_gensym
[ 38%] Built target png_genfiles
[ 40%] Built target png_static
[ 70%] Built target SDL3-static
[ 70%] Automatic MOC and UIC for target shadps4
[ 70%] Built target shadps4_autogen
[ 70%] Building CXX object CMakeFiles/shadps4.dir/shadps4_autogen/mocs_compilation.cpp.o
[ 70%] Building CXX object CMakeFiles/shadps4.dir/src/imgui/renderer/imgui_core.cpp.o
[ 70%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/main_window.cpp.o
[ 70%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/trophy_viewer.cpp.o
[ 71%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/elf_viewer.cpp.o
[ 71%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/main_window_themes.cpp.o
[ 71%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/settings_dialog.cpp.o
[ 71%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/main.cpp.o
In file included from /home/yuki/shadPS4/src/qt_gui/main_window.cpp:22:
In file included from /home/yuki/shadPS4/src/qt_gui/main_window.h:17:
In file included from /home/yuki/shadPS4/src/emulator.h:10:
/home/yuki/shadPS4/src/core/linker.h:113:30: error: no member named 'contains' in namespace 'std::ranges'
if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) {
~~~~~~~~~~~~~^
In file included from /home/yuki/shadPS4/build/shadps4_autogen/mocs_compilation.cpp:13:
In file included from /home/yuki/shadPS4/build/shadps4_autogen/YDF7JMINI2/moc_main_window.cpp:10:
In file included from /home/yuki/shadPS4/build/shadps4_autogen/YDF7JMINI2/../../../src/qt_gui/main_window.h:17:
In file included from /home/yuki/shadPS4/src/emulator.h:10:
/home/yuki/shadPS4/src/core/linker.h:113:30: error: no member named 'contains' in namespace 'std::ranges'
if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) {
~~~~~~~~~~~~~^
In file included from /home/yuki/shadPS4/src/qt_gui/main.cpp:10:
In file included from /home/yuki/shadPS4/src/emulator.h:10:
/home/yuki/shadPS4/src/core/linker.h:113:30: error: no member named 'contains' in namespace 'std::ranges'
if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) {
~~~~~~~~~~~~~^
1 error generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:253: CMakeFiles/shadps4.dir/shadps4_autogen/mocs_compilation.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/yuki/shadPS4/src/qt_gui/settings_dialog.cpp:17:
In file included from /home/yuki/shadPS4/externals/toml11/include/toml.hpp:29:
/home/yuki/shadPS4/externals/toml11/include/toml11/compat.hpp:433:25: error: no type named 'source_location' in namespace 'std'; did you mean 'std::experimental::source_location'?
using source_location = std::source_location;
^~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/experimental/source_location:43:10: note: 'std::experimental::source_location' declared here
struct source_location
^
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:7:
In file included from /home/yuki/shadPS4/src/common/config.h:6:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/filesystem:44:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/fs_fwd.h:35:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/system_error:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/string:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/char_traits.h:46:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_construct.h:61:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:71:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:982:13: error: no matching function for call to '__begin'
= decltype(ranges::__cust_access::__begin(std::declval<_Tp&>()));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:595:5: note: in instantiation of template type alias '__range_iter_t' requested here
using iterator_t = std::__detail::__range_iter_t<_Tp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:121:36: note: in instantiation of template type alias 'iterator_t' requested here
requires contiguous_iterator<iterator_t<_Derived>>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:228:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>>' requested here
class subrange : public view_interface<subrange<_It, _Sent, _Kind>>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_algo.h:1061:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>' requested here
operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const
^
/home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:178:62: note: in instantiation of function template specialization 'std::ranges::__remove_fn::operator()<std::vector<ImGui::Layer *> &, ImGui::Layer *, std::identity>' requested here
const auto [begin, end] = std::ranges::remove(layers, layer);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:966:7: note: candidate template ignored: constraints not satisfied [with _Tp = std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>]
__begin(_Tp& __t)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:16: note: because 'is_array_v<std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *> >, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *> >, std::ranges::subrange_kind::sized> >' evaluated to false
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:35: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin'
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:947:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>'
{ __decay_copy(__t.begin()) } -> input_or_output_iterator;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:59: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin'
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:958:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin'
{ __decay_copy(begin(__t)) } -> input_or_output_iterator;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:982:13: error: no matching function for call to '__begin'
= decltype(ranges::__cust_access::__begin(std::declval<_Tp&>()));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:595:5: note: in instantiation of template type alias '__range_iter_t' requested here
using iterator_t = std::__detail::__range_iter_t<_Tp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:127:25: note: in instantiation of template type alias 'iterator_t' requested here
&& contiguous_iterator<iterator_t<const _Derived>>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:228:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>>' requested here
class subrange : public view_interface<subrange<_It, _Sent, _Kind>>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_algo.h:1061:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>' requested here
operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const
^
/home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:178:62: note: in instantiation of function template specialization 'std::ranges::__remove_fn::operator()<std::vector<ImGui::Layer *> &, ImGui::Layer *, std::identity>' requested here
const auto [begin, end] = std::ranges::remove(layers, layer);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:966:7: note: candidate template ignored: constraints not satisfied [with _Tp = const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>]
__begin(_Tp& __t)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:16: note: because 'is_array_v<const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *> >, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *> >, std::ranges::subrange_kind::sized> >' evaluated to false
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:35: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin'
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:947:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>'
{ __decay_copy(__t.begin()) } -> input_or_output_iterator;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:964:59: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin'
requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/iterator_concepts.h:958:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin'
{ __decay_copy(begin(__t)) } -> input_or_output_iterator;
^
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:11:
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.h:6:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_instance.h:9:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_platform.h:10:
In file included from /home/yuki/shadPS4/src/common/logging/log.h:6:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:63:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_algo.h:36:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:133:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>]
&& sized_sentinel_for<sentinel_t<_Derived>, iterator_t<_Derived>>
^~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:228:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>>' requested here
class subrange : public view_interface<subrange<_It, _Sent, _Kind>>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_algo.h:1061:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>' requested here
operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const
^
/home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:178:62: note: in instantiation of function template specialization 'std::ranges::__remove_fn::operator()<std::vector<ImGui::Layer *> &, ImGui::Layer *, std::identity>' requested here
const auto [begin, end] = std::ranges::remove(layers, layer);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:597:12: note: because 'std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>' does not satisfy 'range'
template<range _Range>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:585:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin'
ranges::begin(__t);
^
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:11:
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.h:6:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_instance.h:9:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_platform.h:10:
In file included from /home/yuki/shadPS4/src/common/logging/log.h:6:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:63:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_algo.h:36:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_util.h:139:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, std::ranges::subrange_kind::sized>]
&& sized_sentinel_for<sentinel_t<const _Derived>,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:597:12: note: because 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<ImGui::Layer **, std::vector<ImGui::Layer *>>, __gnu_cxx::__normal_iterator<ImGui::Layer *, std::vector<ImGui::Layer >>, std::ranges::subrange_kind::sized>' does not satisfy 'range'
template<range _Range>
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/ranges_base.h:585:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin'
ranges::begin(__t);
^
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:7:
In file included from /home/yuki/shadPS4/src/common/config.h:6:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/filesystem:44:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/fs_fwd.h:35:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/system_error:41:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/stdexcept:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/string:53:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/ext/alloc_traits.h:34:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/alloc_traits.h:518:4: error: no matching function for call to 'construct_at'
std::construct_at(__p, std::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/deque.tcc:170:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocatorVulkan::Scheduler::PendingOp>::construct<Vulkan::Scheduler::PendingOp, Common::UniqueFunction