{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/5706","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/5706/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/5706/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/5706/events","html_url":"https://github.com/pytorch/pytorch/pull/5706","id":304340707,"number":5706,"title":"Moved headers files copy for C++ extensions to build_ext in setup.py","user":{"login":"sdmonov","id":11948233,"avatar_url":"https://avatars3.githubusercontent.com/u/11948233?v=4","gravatar_id":"","url":"https://api.github.com/users/sdmonov","html_url":"https://github.com/sdmonov","followers_url":"https://api.github.com/users/sdmonov/followers","following_url":"https://api.github.com/users/sdmonov/following{/other_user}","gists_url":"https://api.github.com/users/sdmonov/gists{/gist_id}","starred_url":"https://api.github.com/users/sdmonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdmonov/subscriptions","organizations_url":"https://api.github.com/users/sdmonov/orgs","repos_url":"https://api.github.com/users/sdmonov/repos","events_url":"https://api.github.com/users/sdmonov/events{/privacy}","received_events_url":"https://api.github.com/users/sdmonov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-12T11:51:20Z","updated_at":"2018-03-15T16:46:31Z","closed_at":"2018-03-12T13:07:46Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/5706","html_url":"https://github.com/pytorch/pytorch/pull/5706","diff_url":"https://github.com/pytorch/pytorch/pull/5706.diff","patch_url":"https://github.com/pytorch/pytorch/pull/5706.patch"},"body":"The header files needed for the C++ extensions were copied to\r\ntorch/lib/include under install. In case of bdist_wheel or build develop\r\nfor example, the files are not copied and cpp_extensions test is failing:\r\n\r\n```shell\r\nRunning test_cpp_extensions.py ...\r\nrunning install\r\nrunning build\r\nrunning build_ext\r\n/home/moni/src/ibm/AI/pytorch/torch/utils/cpp_extension.py:79: UserWarning:\r\nYour compiler (g++) may be ABI-incompatible with PyTorch.\r\nPlease use a compiler that is ABI-compatible with GCC 4.9 and above.\r\nSee https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.\r\n  warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))\r\nbuilding 'torch_test_cpp_extension' extension\r\ncreating build\r\ncreating build/temp.linux-x86_64-3.6\r\ngcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/moni/src/ibm/AI/pytorch/torch/lib/include -I/home/moni/src/ibm/AI/pytorch/torch/lib/include/TH -I/home/moni/src/ibm/AI/pytorch/torch/lib/include/THC -I/home/moni/miniconda3/envs/pytorch/include/python3.6m -c extension.cpp -o build/temp.linux-x86_64-3.6/extension.o -g -DTORCH_EXTENSION_NAME=torch_test_cpp_extension -std=c++11\r\ncc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++\r\nextension.cpp:1:25: fatal error: torch/torch.h: No such file or directory\r\n #include <torch/torch.h>\r\n                         ^\r\ncompilation terminated.\r\nerror: command 'gcc' failed with exit status 1\r\n```"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/373444432","html_url":"https://github.com/pytorch/pytorch/pull/5706#issuecomment-373444432","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/5706","id":373444432,"user":{"login":"goldsborough","id":6429851,"avatar_url":"https://avatars3.githubusercontent.com/u/6429851?v=4","gravatar_id":"","url":"https://api.github.com/users/goldsborough","html_url":"https://github.com/goldsborough","followers_url":"https://api.github.com/users/goldsborough/followers","following_url":"https://api.github.com/users/goldsborough/following{/other_user}","gists_url":"https://api.github.com/users/goldsborough/gists{/gist_id}","starred_url":"https://api.github.com/users/goldsborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldsborough/subscriptions","organizations_url":"https://api.github.com/users/goldsborough/orgs","repos_url":"https://api.github.com/users/goldsborough/repos","events_url":"https://api.github.com/users/goldsborough/events{/privacy}","received_events_url":"https://api.github.com/users/goldsborough/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T16:46:30Z","updated_at":"2018-03-15T16:46:30Z","author_association":"CONTRIBUTOR","body":"@zhFuECL please file an issue rather than commenting here :)"}}
{"actor":{"display_login":"goldsborough"}}