{"action":"closed","issue":{"url":"https://api.github.com/repos/RPCS3/rpcs3/issues/2525","repository_url":"https://api.github.com/repos/RPCS3/rpcs3","labels_url":"https://api.github.com/repos/RPCS3/rpcs3/issues/2525/labels{/name}","comments_url":"https://api.github.com/repos/RPCS3/rpcs3/issues/2525/comments","events_url":"https://api.github.com/repos/RPCS3/rpcs3/issues/2525/events","html_url":"https://github.com/RPCS3/rpcs3/issues/2525","id":213740253,"number":2525,"title":"error: no matching       function for call to 'pthread_detach'","user":{"login":"yurikoles","id":922873,"avatar_url":"https://avatars2.githubusercontent.com/u/922873?v=3","gravatar_id":"","url":"https://api.github.com/users/yurikoles","html_url":"https://github.com/yurikoles","followers_url":"https://api.github.com/users/yurikoles/followers","following_url":"https://api.github.com/users/yurikoles/following{/other_user}","gists_url":"https://api.github.com/users/yurikoles/gists{/gist_id}","starred_url":"https://api.github.com/users/yurikoles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurikoles/subscriptions","organizations_url":"https://api.github.com/users/yurikoles/orgs","repos_url":"https://api.github.com/users/yurikoles/repos","events_url":"https://api.github.com/users/yurikoles/events{/privacy}","received_events_url":"https://api.github.com/users/yurikoles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-13T11:31:14Z","updated_at":"2017-03-13T14:28:16Z","closed_at":"2017-03-13T14:28:16Z","body":"Building on macOS.\r\n<details>\r\n\r\n```\r\n[  8%] Building CXX object rpcs3/CMakeFiles/rpcs3.dir/__/Utilities/Thread.cpp.o\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:885:52: warning: '&' within '|'\r\n      [-Wbitwise-op-parentheses]\r\n  ...case 1: *X64REG(context, reg - X64R_RAX) = value & 0xff | *X64REG(contex...\r\n                                                ~~~~~~^~~~~~ ~\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:885:52: note: place parentheses\r\n      around the '&' expression to silence this warning\r\n  ...case 1: *X64REG(context, reg - X64R_RAX) = value & 0xff | *X64REG(contex...\r\n                                                      ^\r\n                                                (           )\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:885:94: warning: '&' within '|'\r\n      [-Wbitwise-op-parentheses]\r\n  ...= value & 0xff | *X64REG(context, reg - X64R_RAX) & 0xffffff00; return t...\r\n                    ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:885:94: note: place parentheses\r\n      around the '&' expression to silence this warning\r\n  ...= value & 0xff | *X64REG(context, reg - X64R_RAX) & 0xffffff00; return t...\r\n                                                       ^\r\n                      (                                            )\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:886:52: warning: '&' within '|'\r\n      [-Wbitwise-op-parentheses]\r\n  ...case 2: *X64REG(context, reg - X64R_RAX) = value & 0xffff | *X64REG(cont...\r\n                                                ~~~~~~^~~~~~~~ ~\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:886:52: note: place parentheses\r\n      around the '&' expression to silence this warning\r\n  ...case 2: *X64REG(context, reg - X64R_RAX) = value & 0xffff | *X64REG(cont...\r\n                                                      ^\r\n                                                (             )\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:886:96: warning: '&' within '|'\r\n      [-Wbitwise-op-parentheses]\r\n  ...= value & 0xffff | *X64REG(context, reg - X64R_RAX) & 0xffff0000; retur...\r\n                      ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:886:96: note: place parentheses\r\n      around the '&' expression to silence this warning\r\n  ...= value & 0xffff | *X64REG(context, reg - X64R_RAX) & 0xffff0000; retur...\r\n                                                         ^\r\n                        (                                            )\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:1386:22: warning: 'extern'\r\n      variable has an initializer [-Wextern-initializer]\r\nextern atomic_t<u32> g_thread_count(0);\r\n                     ^\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:1437:17: error: no viable\r\n      overloaded '='\r\n        ctrl->m_thread = thread;\r\n        ~~~~~~~~~~~~~~ ^ ~~~~~~\r\n/Users/yurikoles/work/rpcs3/Utilities/Atomic.h:776:12: note: candidate function\r\n      not viable: no known conversion from 'pthread_t' (aka\r\n      '_opaque_pthread_t *') to 'const atomic_t<unsigned long>' for 1st argument\r\n        atomic_t& operator =(const atomic_t&) = delete;\r\n                  ^\r\n/Users/yurikoles/work/rpcs3/Utilities/Atomic.h:902:7: note: candidate function\r\n      not viable: no known conversion from 'pthread_t' (aka\r\n      '_opaque_pthread_t *') to 'const type' (aka 'const unsigned long') for 1st\r\n      argument\r\n        type operator =(const type& rhs)\r\n             ^\r\n/Users/yurikoles/work/rpcs3/Utilities/Thread.cpp:1621:3: error: no matching\r\n      function for call to 'pthread_detach'\r\n                pthread_detach(m_thread.raw());\r\n                ^~~~~~~~~~~~~~\r\n/usr/include/pthread.h:337:5: note: candidate function not viable: no known\r\n      conversion from 'type' (aka 'unsigned long') to 'pthread_t _Nonnull' (aka\r\n      '_opaque_pthread_t *') for 1st argument\r\nint pthread_detach(pthread_t);\r\n    ^\r\n5 warnings and 2 errors generated.\r\nmake[2]: *** [rpcs3/CMakeFiles/rpcs3.dir/__/Utilities/Thread.cpp.o] Error 1\r\nmake[1]: *** [rpcs3/CMakeFiles/rpcs3.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```"}}
{"actor":{"display_login":"AniLeo"}}