{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/13679","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/13679/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/13679/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/13679/events","html_url":"https://github.com/pytorch/pytorch/issues/13679","id":378455377,"node_id":"MDU6SXNzdWUzNzg0NTUzNzc=","number":13679,"title":"CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mnist-app.dir/all' failed","user":{"login":"Suhail","id":66225,"node_id":"MDQ6VXNlcjY2MjI1","avatar_url":"https://avatars1.githubusercontent.com/u/66225?v=4","gravatar_id":"","url":"https://api.github.com/users/Suhail","html_url":"https://github.com/Suhail","followers_url":"https://api.github.com/users/Suhail/followers","following_url":"https://api.github.com/users/Suhail/following{/other_user}","gists_url":"https://api.github.com/users/Suhail/gists{/gist_id}","starred_url":"https://api.github.com/users/Suhail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suhail/subscriptions","organizations_url":"https://api.github.com/users/Suhail/orgs","repos_url":"https://api.github.com/users/Suhail/repos","events_url":"https://api.github.com/users/Suhail/events{/privacy}","received_events_url":"https://api.github.com/users/Suhail/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"goldsborough","id":6429851,"node_id":"MDQ6VXNlcjY0Mjk4NTE=","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},"assignees":[{"login":"goldsborough","id":6429851,"node_id":"MDQ6VXNlcjY0Mjk4NTE=","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}],"milestone":null,"comments":1,"created_at":"2018-11-07T20:26:05Z","updated_at":"2018-11-16T07:12:16Z","closed_at":"2018-11-16T07:12:16Z","author_association":"NONE","body":"## 🐛 Bug\r\n\r\n```\r\nmake\r\nScanning dependencies of target mnist-app\r\n[ 50%] Building CXX object CMakeFiles/mnist-app.dir/mnist.cpp.o\r\n[100%] Linking CXX executable mnist-app\r\n/usr/bin/ld: warning: libgomp-7bcb08ae.so.1, needed by /home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so, not found (try using -rpath or -rpath-link)\r\n/usr/bin/ld: warning: cannot find entry symbol arch_paths_first; defaulting to 0000000000400bd0\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_ordered_static_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_dynamic_next@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_sections_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_critical_end@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_sections_end_nowait@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_get_num_threads@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_in_parallel@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_ordered_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_critical_name_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_ordered_end@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_critical_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_parallel@GOMP_4.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_set_num_threads@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_end@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_get_thread_num@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_parallel_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_sections_next@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_single_start@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_get_num_procs@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_end_nowait@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_critical_name_end@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `omp_get_max_threads@OMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_ordered_static_next@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_parallel_end@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_barrier@GOMP_1.0'\r\n/home/paperspace/mnist-test/mnist-app/libtorch/lib/libcaffe2.so: undefined reference to `GOMP_loop_dynamic_start@GOMP_1.0'\r\ncollect2: error: ld returned 1 exit status\r\nCMakeFiles/mnist-app.dir/build.make:96: recipe for target 'mnist-app' failed\r\nmake[2]: *** [mnist-app] Error 1\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mnist-app.dir/all' failed\r\nmake[1]: *** [CMakeFiles/mnist-app.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\n## To Reproduce\r\n\r\nSteps to reproduce the behavior:\r\n\r\nFollowing this tutorial: https://pytorch.org/tutorials/advanced/cpp_export.html\r\n\r\n## Expected behavior\r\n\r\nTo compile the .cpp file\r\n\r\n## Environment\r\n\r\nCollecting environment information...\r\nPyTorch version: 1.0.0.dev20181029\r\nIs debug build: No\r\nCUDA used to build PyTorch: 9.0.176\r\n\r\nOS: Ubuntu 16.04.4 LTS\r\nGCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609\r\nCMake version: version 3.5.1\r\n\r\nPython version: 3.6\r\nIs CUDA available: Yes\r\nCUDA runtime version: Could not collect\r\nGPU models and configuration: GPU 0: Quadro M4000\r\nNvidia driver version: 390.67\r\ncuDNN version: Probably one of the following:\r\n/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so\r\n/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so.7\r\n/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn.so.7.0.5\r\n/usr/local/cuda-9.1/targets/x86_64-linux/lib/libcudnn_static.a\r\n\r\nVersions of relevant libraries:\r\n[pip] Could not collect\r\n[conda] pytorch-nightly           1.0.0.dev20181029 py3.6_cuda9.0.176_cudnn7.1.2_0    pytorch\r\n[conda] torch                     0.4.1                     <pip>\r\n[conda] torchtext                 0.2.3                     <pip>\r\n[conda] torchvision               0.2.1                     <pip>\r\n\r\n## Additional context\r\n\r\n```\r\ncat build/build.sh\r\nexport Torch_DIR=../libtorch/share/cmake/Torch\r\nexport Caffe2_DIR=../libtorch/share/cmake/Caffe2\r\n#cmake -DCMAKE_PREFIX_PATH=../libtorch/ ..\r\ncmake -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_PROCESSOR=i386 -DCMAKE_SYSTEM_VERSION=10 -DCMAKE_PREFIX_PATH=../libtorch/ ..\r\n\r\n```\r\n\r\nCode:\r\n```\r\n#include <torch/script.h> // One-stop header.\r\n\r\n#include <iostream>\r\n#include <memory>\r\n\r\nint main(int argc, const char* argv[]) {\r\n  if (argc != 2) {\r\n    std::cerr << \"usage: example-app <path-to-exported-script-module>\\n\";\r\n    return -1;\r\n  }\r\n\r\n  // Deserialize the ScriptModule from a file using torch::jit::load().\r\n  std::shared_ptr<torch::jit::script::Module> module = torch::jit::load(argv[1]);\r\n\r\n  assert(module != nullptr);\r\n  std::cout << \"ok\\n\";\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/439302918","html_url":"https://github.com/pytorch/pytorch/issues/13679#issuecomment-439302918","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/13679","id":439302918,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTMwMjkxOA==","user":{"login":"Suhail","id":66225,"node_id":"MDQ6VXNlcjY2MjI1","avatar_url":"https://avatars1.githubusercontent.com/u/66225?v=4","gravatar_id":"","url":"https://api.github.com/users/Suhail","html_url":"https://github.com/Suhail","followers_url":"https://api.github.com/users/Suhail/followers","following_url":"https://api.github.com/users/Suhail/following{/other_user}","gists_url":"https://api.github.com/users/Suhail/gists{/gist_id}","starred_url":"https://api.github.com/users/Suhail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suhail/subscriptions","organizations_url":"https://api.github.com/users/Suhail/orgs","repos_url":"https://api.github.com/users/Suhail/repos","events_url":"https://api.github.com/users/Suhail/events{/privacy}","received_events_url":"https://api.github.com/users/Suhail/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T07:12:16Z","updated_at":"2018-11-16T07:12:16Z","author_association":"NONE","body":"Answer to this is simple: just build it on mac os or go to https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip (though, not sure if it's built as a nightly)"}}
{"actor":{"display_login":"Suhail"}}