{"action":"created","issue":{"url":"https://api.github.com/repos/clab/dynet/issues/1083","repository_url":"https://api.github.com/repos/clab/dynet","labels_url":"https://api.github.com/repos/clab/dynet/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/clab/dynet/issues/1083/comments","events_url":"https://api.github.com/repos/clab/dynet/issues/1083/events","html_url":"https://github.com/clab/dynet/issues/1083","id":275812979,"number":1083,"title":"train_xor example is not built with C++: problem with lpthreads?","user":{"login":"elisaF","id":12699327,"avatar_url":"https://avatars3.githubusercontent.com/u/12699327?v=4","gravatar_id":"","url":"https://api.github.com/users/elisaF","html_url":"https://github.com/elisaF","followers_url":"https://api.github.com/users/elisaF/followers","following_url":"https://api.github.com/users/elisaF/following{/other_user}","gists_url":"https://api.github.com/users/elisaF/gists{/gist_id}","starred_url":"https://api.github.com/users/elisaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elisaF/subscriptions","organizations_url":"https://api.github.com/users/elisaF/orgs","repos_url":"https://api.github.com/users/elisaF/repos","events_url":"https://api.github.com/users/elisaF/events{/privacy}","received_events_url":"https://api.github.com/users/elisaF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-21T18:21:18Z","updated_at":"2017-11-24T04:36:11Z","closed_at":null,"author_association":"NONE","body":"I am following the installation instructions for DyNet with C++. However, there is no train_xor executable in the examples directory after running the make command.\r\n\r\nI believe the problem is that cmake fails to find the library for pthread. Snippet from CMakeError.log:\r\n`CMakeFiles/cmTC_40759.dir/CheckSymbolExists.c.o: In function `main':\r\nCheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'\r\ncollect2: error: ld returned 1 exit status\r\nCMakeFiles/cmTC_40759.dir/build.make:97: recipe for target 'cmTC_40759' failed`\r\n\r\nSystem info:\r\nOS: Ubuntu 16.04.3 LTS (Xenial Xerus)\r\nbuild-essential: 12.2\r\ncmake: 3.9.6\r\nmercurial: 4.4.1\r\n\r\nNote that I have manually installed these since I do not have `ROOT` access on the system.\r\n\r\nSome env vars:\r\nPATH=~/bin:$PATH\r\nLD_LIBRARY_PATH=~/share:$LD_LIBRARY_PATH\r\n\r\nAttached files:\r\n[CMakeError.log](https://github.com/clab/dynet/files/1492491/CMakeError.log)\r\n[CMakeOutput.log](https://github.com/clab/dynet/files/1492492/CMakeOutput.log)\r\n[make.log](https://github.com/clab/dynet/files/1492493/make.log)\r\n"},"comment":{"url":"https://api.github.com/repos/clab/dynet/issues/comments/346741340","html_url":"https://github.com/clab/dynet/issues/1083#issuecomment-346741340","issue_url":"https://api.github.com/repos/clab/dynet/issues/1083","id":346741340,"user":{"login":"neubig","id":398875,"avatar_url":"https://avatars1.githubusercontent.com/u/398875?v=4","gravatar_id":"","url":"https://api.github.com/users/neubig","html_url":"https://github.com/neubig","followers_url":"https://api.github.com/users/neubig/followers","following_url":"https://api.github.com/users/neubig/following{/other_user}","gists_url":"https://api.github.com/users/neubig/gists{/gist_id}","starred_url":"https://api.github.com/users/neubig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neubig/subscriptions","organizations_url":"https://api.github.com/users/neubig/orgs","repos_url":"https://api.github.com/users/neubig/repos","events_url":"https://api.github.com/users/neubig/events{/privacy}","received_events_url":"https://api.github.com/users/neubig/received_events","type":"User","site_admin":false},"created_at":"2017-11-24T04:36:11Z","updated_at":"2017-11-24T04:36:11Z","author_association":"CONTRIBUTOR","body":"Hmm, this doesn't seem to be a DyNet specific issue then... Perhaps you could consult with the cmake mailing list?"}}
{"actor":{"display_login":"neubig"}}