[GH-ISSUE #1269] cmake error on macos #404

Closed
opened 2026-02-27 21:06:08 +03:00 by kerem · 4 comments
Owner

Originally created by @kaisyaliu on GitHub (Oct 6, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1269

[ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_list_frame.cpp.o
In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/mocs_compilation.cpp:11:
In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/YDF7JMINI2/moc_main_window.cpp:9:
In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/YDF7JMINI2/../../../src/qt_gui/main_window.h:16:
In file included from /Users/jingliu/Downloads/shadPS4/src/emulator.h:10:
/Users/jingliu/Downloads/shadPS4/src/core/linker.h:86:30: error: no member named 'contains' in namespace 'std::__1::ranges'
if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) {
~~~~~~~~~~~~~^
3 warnings generated.
[ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_grid_frame.cpp.o
[ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_install_dialog.cpp.o
1 error generated.
make[2]: *** [CMakeFiles/shadps4.dir/shadps4_autogen/mocs_compilation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/jingliu/Downloads/shadPS4/src/qt_gui/main_window.cpp:19:
In file included from /Users/jingliu/Downloads/shadPS4/src/qt_gui/main_window.h:16:
In file included from /Users/jingliu/Downloads/shadPS4/src/emulator.h:10:
/Users/jingliu/Downloads/shadPS4/src/core/linker.h:86:30: error: no member named 'contains' in namespace 'std::__1::ranges'
if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) {
~~~~~~~~~~~~~^
In file included from /Users/jingliu/Downloads/shadPS4/src/imgui/renderer/imgui_core.cpp:7:
In file included from /Users/jingliu/Downloads/shadPS4/src/common/config.h:6:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/filesystem:245:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/directory_entry.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/filesystem_error.h:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/string:534:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__memory/allocator_traits.h:298:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__config:695:17: note: expanded from macro '_VSTD'

define _VSTD std

Originally created by @kaisyaliu on GitHub (Oct 6, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1269 [ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_list_frame.cpp.o In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/mocs_compilation.cpp:11: In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/YDF7JMINI2/moc_main_window.cpp:9: In file included from /Users/jingliu/Downloads/shadPS4/build/shadps4_autogen/YDF7JMINI2/../../../src/qt_gui/main_window.h:16: In file included from /Users/jingliu/Downloads/shadPS4/src/emulator.h:10: /Users/jingliu/Downloads/shadPS4/src/core/linker.h:86:30: error: no member named 'contains' in namespace 'std::__1::ranges' if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) { ~~~~~~~~~~~~~^ 3 warnings generated. [ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_grid_frame.cpp.o [ 75%] Building CXX object CMakeFiles/shadps4.dir/src/qt_gui/game_install_dialog.cpp.o 1 error generated. make[2]: *** [CMakeFiles/shadps4.dir/shadps4_autogen/mocs_compilation.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /Users/jingliu/Downloads/shadPS4/src/qt_gui/main_window.cpp:19: In file included from /Users/jingliu/Downloads/shadPS4/src/qt_gui/main_window.h:16: In file included from /Users/jingliu/Downloads/shadPS4/src/emulator.h:10: /Users/jingliu/Downloads/shadPS4/src/core/linker.h:86:30: error: no member named 'contains' in namespace 'std::__1::ranges' if (std::ranges::contains(imports, m->name, &ModuleInfo::name)) { ~~~~~~~~~~~~~^ In file included from /Users/jingliu/Downloads/shadPS4/src/imgui/renderer/imgui_core.cpp:7: In file included from /Users/jingliu/Downloads/shadPS4/src/common/config.h:6: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/filesystem:245: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/directory_entry.h:20: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/filesystem_error.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:20: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/string:534: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13: /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__memory/allocator_traits.h:298:9: error: no matching function for call to 'construct_at' _VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...); ^~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__config:695:17: note: expanded from macro '_VSTD' # define _VSTD std
kerem closed this issue 2026-02-27 21:06:08 +03:00
Author
Owner

@qurious-pixel commented on GitHub (Oct 6, 2024):

It is similar to this issue: https://github.com/shadps4-emu/shadPS4/issues/799

Your Clang/AppleClang does not have the std::ranges::contains

<!-- gh-comment-id:2395493309 --> @qurious-pixel commented on GitHub (Oct 6, 2024): It is similar to this issue: https://github.com/shadps4-emu/shadPS4/issues/799 Your Clang/AppleClang does not have the `std::ranges::contains`
Author
Owner

@kaisyaliu commented on GitHub (Oct 6, 2024):

This's my gcc version info. it's version wrong?

Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

<!-- gh-comment-id:2395502747 --> @kaisyaliu commented on GitHub (Oct 6, 2024): This's my gcc version info. it's version wrong? Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: x86_64-apple-darwin22.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Author
Owner

@squidbus commented on GitHub (Oct 6, 2024):

You need Xcode 16.

<!-- gh-comment-id:2395503588 --> @squidbus commented on GitHub (Oct 6, 2024): You need Xcode 16.
Author
Owner

@kaisyaliu commented on GitHub (Oct 6, 2024):

You need Xcode 16.

Thanks a lot.

<!-- gh-comment-id:2395505237 --> @kaisyaliu commented on GitHub (Oct 6, 2024): > You need Xcode 16. Thanks a lot.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#404
No description provided.