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

(Linux/Debian) An error occurs while trying to use cmake --build . --parallel$(nproc) #1905

Open
yuk1ko-chan opened this issue Dec 26, 2024 · 3 comments

Comments

@yuk1ko-chan
Copy link

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>
^
/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
^
/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,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/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
^
/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, unsigned long>' requested here
_Alloc_traits::construct(this->_M_impl,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_queue.h:297:13: note: in instantiation of function template specialization 'std::dequeVulkan::Scheduler::PendingOp::emplace_back<Common::UniqueFunction, unsigned long>' requested here
{ return c.emplace_back(std::forward<_Args>(__args)...); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_construct.h:94:5: note: candidate template ignored: substitution failure [with _Tp = Vulkan::Scheduler::PendingOp, _Args = <Common::UniqueFunction, unsigned long>]: no matching constructor for initialization of 'Vulkan::Scheduler::PendingOp'
construct_at(_Tp
__location, _Args&&... __args)
^
In file included from /home/yuki/shadPS4/src/imgui/renderer/imgui_core.cpp:17:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_presenter.h:10:
In file included from /home/yuki/shadPS4/src/video_core/renderer_vulkan/vk_scheduler.h:7:
In file included from /home/yuki/shadPS4/externals/ext-boost/boost/container/static_vector.hpp:25:
In file included from /home/yuki/shadPS4/externals/ext-boost/boost/container/vector.hpp:27:
/home/yuki/shadPS4/externals/ext-boost/boost/container/allocator_traits.hpp:424:51: error: no matching constructor for initialization of 'Shader::PersistentSrtInfo::SrtSharpReservation'
{ ::new((void
)p, boost_container_new_t()) T(::boost::forward(args)...); }
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/yuki/shadPS4/externals/ext-boost/boost/container/allocator_traits.hpp:369:28: note: in instantiation of function template specialization 'boost::container::allocator_traits<boost::container::small_vector_allocator<Shader::PersistentSrtInfo::SrtSharpReservation, boost::container::new_allocator, void>>::priv_construct<Shader::PersistentSrtInfo::SrtSharpReservation, unsigned int &, unsigned int &, unsigned int &>' requested here
allocator_traits::priv_construct(flag, a, p, ::boost::forward(args)...);
^
/home/yuki/shadPS4/externals/ext-boost/boost/container/vector.hpp:1882:33: note: in instantiation of function template specialization 'boost::container::allocator_traits<boost::container::small_vector_allocator<Shader::PersistentSrtInfo::SrtSharpReservation, boost::container::new_allocator, void>>::construct<Shader::PersistentSrtInfo::SrtSharpReservation, unsigned int &, unsigned int &, unsigned int &>' requested here
allocator_traits_type::construct(this->m_holder.alloc(), p, ::boost::forward(args)...);
^
/home/yuki/shadPS4/src/shader_recompiler/ir/passes/srt.h:31:26: note: in instantiation of function template specialization 'boost::container::vector<Shader::PersistentSrtInfo::SrtSharpReservation, boost::container::small_vector_allocator<Shader::PersistentSrtInfo::SrtSharpReservation, boost::container::new_allocator, void>>::emplace_back<unsigned int &, unsigned int &, unsigned int &>' requested here
srt_reservations.emplace_back(sgpr_base, dword_offset, num_dwords);
^
/home/yuki/shadPS4/src/shader_recompiler/ir/passes/srt.h:16:12: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
struct SrtSharpReservation {
^
/home/yuki/shadPS4/src/shader_recompiler/ir/passes/srt.h:16:12: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
/home/yuki/shadPS4/src/shader_recompiler/ir/passes/srt.h:16:12: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 3 were provided
6 errors generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:267: CMakeFiles/shadps4.dir/src/imgui/renderer/imgui_core.cpp.o] Error 1
In file included from /home/yuki/shadPS4/src/qt_gui/settings_dialog.cpp:21:
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)) {
~~~~~~~~~~~~~^
1 error generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:393: CMakeFiles/shadps4.dir/src/qt_gui/main_window.cpp.o] Error 1
1 error generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:547: CMakeFiles/shadps4.dir/src/qt_gui/main.cpp.o] Error 1
2 errors generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:533: CMakeFiles/shadps4.dir/src/qt_gui/settings_dialog.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:691: CMakeFiles/shadps4.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

@mailwl
Copy link
Contributor

mailwl commented Dec 26, 2024

too old clang version. just checked on my debian 12:
clang --version
Debian clang version 14.0.6

if your same, you probably should remove current version, and install clang-19 or something like this
need linux guru helps

@mailwl
Copy link
Contributor

mailwl commented Dec 26, 2024

just checked, clang-19 leads to compile errors, too (but different)

@Hermiten
Copy link
Collaborator

What is your problem with clang 19 ?

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

3 participants