{"action":"opened","issue":{"url":"https://api.github.com/repos/AD-Vega/rtl-power-fftw/issues/9","labels_url":"https://api.github.com/repos/AD-Vega/rtl-power-fftw/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/AD-Vega/rtl-power-fftw/issues/9/comments","events_url":"https://api.github.com/repos/AD-Vega/rtl-power-fftw/issues/9/events","html_url":"https://github.com/AD-Vega/rtl-power-fftw/issues/9","id":121427700,"number":9,"title":"OSX compilation error","user":{"login":"chemplexity","id":5705840,"avatar_url":"https://avatars.githubusercontent.com/u/5705840?v=3","gravatar_id":"","url":"https://api.github.com/users/chemplexity","html_url":"https://github.com/chemplexity","followers_url":"https://api.github.com/users/chemplexity/followers","following_url":"https://api.github.com/users/chemplexity/following{/other_user}","gists_url":"https://api.github.com/users/chemplexity/gists{/gist_id}","starred_url":"https://api.github.com/users/chemplexity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemplexity/subscriptions","organizations_url":"https://api.github.com/users/chemplexity/orgs","repos_url":"https://api.github.com/users/chemplexity/repos","events_url":"https://api.github.com/users/chemplexity/events{/privacy}","received_events_url":"https://api.github.com/users/chemplexity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T08:17:51Z","updated_at":"2015-12-10T08:17:51Z","closed_at":null,"body":"I'm unable to compile `rtl-power-fftw` on `OSX 10.11`. The issue seems to be something `std::thread` related from `/rtl-power-fftw/src/rtl_power_fftw.cxx:411:19`. \r\n\r\n````\r\nstd::thread t(&Datastore::fftThread, std::ref(data));\r\n````\r\n\r\nHere is the compilation output:\r\n\r\n````\r\n$ cmake ..\r\n-- The C compiler identification is AppleClang 7.0.0.7000176\r\n-- The CXX compiler identification is AppleClang 7.0.0.7000176\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Found PkgConfig: /usr/local/bin/pkg-config (found version \"0.29\") \r\n-- Checking for module 'tclap'\r\n--   Found tclap, version 1.2.1\r\n-- Checking for module 'librtlsdr'\r\n--   Found librtlsdr, version v0.5.3-12-ge3c0\r\n-- Checking for module 'fftw3f'\r\n--   Found fftw3f, version 3.3.4\r\n-- Check size of long long int\r\n-- Check size of long long int - done\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /rtl-power-fftw/build\r\n\r\n$ make\r\n[ 25%] Building CXX object CMakeFiles/rtl_power_fftw.dir/src/rtl_power_fftw.cxx.o\r\nIn file included from /rtl-power-fftw/src/rtl_power_fftw.cxx:34:\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/thread:337:5: error: attempt to use a deleted function\r\n    __invoke(_VSTD::move(_VSTD::get<0>(__t)), _VSTD::move(_VSTD::get<_Indices>(__t))...);\r\n    ^\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/thread:347:5: note: in instantiation of function template specialization\r\n      'std::__1::__thread_execute<void (Datastore::*)(), std::__1::reference_wrapper<Datastore> , 1>' requested here\r\n    __thread_execute(*__p, _Index());\r\n    ^\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/thread:359:42: note: in instantiation of function template specialization\r\n      'std::__1::__thread_proxy<std::__1::tuple<void (Datastore::*)(), std::__1::reference_wrapper<Datastore> > >' requested here\r\n    int __ec = pthread_create(&__t_, 0, &__thread_proxy<_Gp>, __p.get());\r\n                                         ^\r\n/rtl-power-fftw/src/rtl_power_fftw.cxx:411:19: note: in instantiation of function template specialization 'std::__1::thread::thread<void\r\n      (Datastore::*)(), std::__1::reference_wrapper<Datastore> , void>' requested here\r\n      std::thread t(&Datastore::fftThread, std::ref(data));\r\n                  ^\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1043:5: note: '~__nat' has been explicitly marked deleted here\r\n    ~__nat() = delete;\r\n    ^\r\n1 error generated.\r\nmake[2]: *** [CMakeFiles/rtl_power_fftw.dir/src/rtl_power_fftw.cxx.o] Error 1\r\nmake[1]: *** [CMakeFiles/rtl_power_fftw.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n````"}}