[GH-ISSUE #880] Mac OS build error #248

Closed
opened 2026-02-27 21:05:21 +03:00 by kerem · 0 comments
Owner

Originally created by @LiveWorkx3Die on GitHub (Sep 12, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/880

Hi! I try to build the emulator on mac mini m1 2020 16/256 and get this error:

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/string:583:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
        _VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
        ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__config:897:17: note: expanded from macro '_VSTD'
#  define _VSTD std
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/deque:1778:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<Vulkan::Scheduler::PendingOp>>::construct<Vulkan::Scheduler::PendingOp, Common::UniqueFunction<void>, unsigned long long, void, void>' requested here
    __alloc_traits::construct(__a, _VSTD::addressof(*end()),
                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/queue:437:24: note: in instantiation of function template specialization 'std::deque<Vulkan::Scheduler::PendingOp>::emplace_back<Common::UniqueFunction<void>, unsigned long long>' requested here
            { return c.emplace_back(_VSTD::forward<_Args>(__args)...);}
                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/construct_at.h:39:38: note: candidate template ignored: substitution failure [with _Tp = Vulkan::Scheduler::PendingOp, _Args = <Common::UniqueFunction<void>, unsigned long long>]: no matching constructor for initialization of 'Vulkan::Scheduler::PendingOp'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
                                     ^
1 error generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:104: CMakeFiles/shadps4.dir/src/imgui/renderer/imgui_core.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /Users/nikitakurkurin/Downloads/shadPS4/src/core/file_format/pkg.cpp:6:
In file included from /Users/nikitakurkurin/Downloads/shadPS4/src/core/file_format/pkg.h:11:
/Users/nikitakurkurin/Downloads/shadPS4/src/common/endian.h:32:21: error: no member named 'byteswap' in namespace 'std'
        return std::byteswap(data);
               ~~~~~^
/Users/nikitakurkurin/Downloads/shadPS4/src/common/endian.h:40:21: error: no member named 'byteswap' in namespace 'std'
        data = std::byteswap(value);
               ~~~~~^
2 errors generated.
gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:426: CMakeFiles/shadps4.dir/src/core/file_format/pkg.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:556: CMakeFiles/shadps4.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Maybe someone know how to fix it?

Originally created by @LiveWorkx3Die on GitHub (Sep 12, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/880 Hi! I try to build the emulator on mac mini m1 2020 16/256 and get this error: ``` In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/string:583: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at' _VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...); ^~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__config:897:17: note: expanded from macro '_VSTD' # define _VSTD std ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/deque:1778:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<Vulkan::Scheduler::PendingOp>>::construct<Vulkan::Scheduler::PendingOp, Common::UniqueFunction<void>, unsigned long long, void, void>' requested here __alloc_traits::construct(__a, _VSTD::addressof(*end()), ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/queue:437:24: note: in instantiation of function template specialization 'std::deque<Vulkan::Scheduler::PendingOp>::emplace_back<Common::UniqueFunction<void>, unsigned long long>' requested here { return c.emplace_back(_VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/construct_at.h:39:38: note: candidate template ignored: substitution failure [with _Tp = Vulkan::Scheduler::PendingOp, _Args = <Common::UniqueFunction<void>, unsigned long long>]: no matching constructor for initialization of 'Vulkan::Scheduler::PendingOp' _LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) { ^ 1 error generated. gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:104: CMakeFiles/shadps4.dir/src/imgui/renderer/imgui_core.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... In file included from /Users/nikitakurkurin/Downloads/shadPS4/src/core/file_format/pkg.cpp:6: In file included from /Users/nikitakurkurin/Downloads/shadPS4/src/core/file_format/pkg.h:11: /Users/nikitakurkurin/Downloads/shadPS4/src/common/endian.h:32:21: error: no member named 'byteswap' in namespace 'std' return std::byteswap(data); ~~~~~^ /Users/nikitakurkurin/Downloads/shadPS4/src/common/endian.h:40:21: error: no member named 'byteswap' in namespace 'std' data = std::byteswap(value); ~~~~~^ 2 errors generated. gmake[2]: *** [CMakeFiles/shadps4.dir/build.make:426: CMakeFiles/shadps4.dir/src/core/file_format/pkg.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:556: CMakeFiles/shadps4.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2 ``` Maybe someone know how to fix it?
kerem closed this issue 2026-02-27 21:05:21 +03:00
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#248
No description provided.