{"action":"created","issue":{"url":"https://api.github.com/repos/dealii/dealii/issues/1493","labels_url":"https://api.github.com/repos/dealii/dealii/issues/1493/labels{/name}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/1493/comments","events_url":"https://api.github.com/repos/dealii/dealii/issues/1493/events","html_url":"https://github.com/dealii/dealii/issues/1493","id":104141556,"number":1493,"title":"CXX11 thread test fails if forcing mpic++","user":{"login":"tjhei","id":1531285,"avatar_url":"https://avatars.githubusercontent.com/u/1531285?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhei","html_url":"https://github.com/tjhei","followers_url":"https://api.github.com/users/tjhei/followers","following_url":"https://api.github.com/users/tjhei/following{/other_user}","gists_url":"https://api.github.com/users/tjhei/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhei/subscriptions","organizations_url":"https://api.github.com/users/tjhei/orgs","repos_url":"https://api.github.com/users/tjhei/repos","events_url":"https://api.github.com/users/tjhei/events{/privacy}","received_events_url":"https://api.github.com/users/tjhei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-31T21:50:46Z","updated_at":"2015-09-03T13:35:33Z","closed_at":null,"body":"when configuring with\r\n```\r\nCXX=mpic++ cmake -D DEAL_II_WITH_MPI=ON .\r\n```\r\nI am getting DEAL_II_WITH_CXX11 = OFF with gcc 4.8 because\r\n```\r\n/usr/bin/mpic++    -DDEAL_II_HAVE_CXX11_THREAD -std=c++11 -pthread    CMakeFiles/cmTryCompileExec3306332637.dir/src.cxx.o  -o cmTryCompileExec3306332637 -rdynamic \r\nmake[1]: Leaving directory `/scratch/deal-build/build-temp/CMakeFiles/CMakeTmp'\r\n\r\nReturn value: FAILED_TO_RUN\r\nSource file was:\r\n\r\n        #include <thread>\r\n        void f(int){}\r\n        int main(){ std::thread t(f,1); t.join(); return 0; }\r\n```\r\nwhile \r\n```\r\ncmake -D DEAL_II_WITH_MPI=ON .\r\n```\r\nsucceeds with c++11 support. I think this is because -Wl,--no-as-needed is handled differently (or -pthread is not at the end)."},"comment":{"url":"https://api.github.com/repos/dealii/dealii/issues/comments/137447214","html_url":"https://github.com/dealii/dealii/issues/1493#issuecomment-137447214","issue_url":"https://api.github.com/repos/dealii/dealii/issues/1493","id":137447214,"user":{"login":"Rombur","id":368538,"avatar_url":"https://avatars.githubusercontent.com/u/368538?v=3","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T13:35:33Z","updated_at":"2015-09-03T13:35:33Z","body":"So I commented the CXX11 threads test and I was able to compile deal.II and run step-32. To reproduce the bug I have to use a virtual machine on my laptop so I can't run the full testsuite but it seems that we can just run the test with -Wl,-no-as-needed."}}