{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9971","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9971/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9971/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9971/events","html_url":"https://github.com/tensorflow/tensorflow/issues/9971","id":229355143,"number":9971,"title":"Unable to build tensorflow for Java in Windows","user":{"login":"nectario","id":22030060,"avatar_url":"https://avatars1.githubusercontent.com/u/22030060?v=3","gravatar_id":"","url":"https://api.github.com/users/nectario","html_url":"https://github.com/nectario","followers_url":"https://api.github.com/users/nectario/followers","following_url":"https://api.github.com/users/nectario/following{/other_user}","gists_url":"https://api.github.com/users/nectario/gists{/gist_id}","starred_url":"https://api.github.com/users/nectario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nectario/subscriptions","organizations_url":"https://api.github.com/users/nectario/orgs","repos_url":"https://api.github.com/users/nectario/repos","events_url":"https://api.github.com/users/nectario/events{/privacy}","received_events_url":"https://api.github.com/users/nectario/received_events","type":"User","site_admin":false},"labels":[{"id":473184161,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:support","name":"type:support","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-05-17T13:37:07Z","updated_at":"2017-05-25T14:02:44Z","closed_at":"2017-05-17T23:44:47Z","body":"As many may have this problem, I am unable to build tensorflow for Java in Windows. I need to build tensorflow for Java with GPU support in Windows. I followed all the directions specified, and I get the following error message:\r\n\r\nThank you!\r\n\r\n$ bazel build --config opt //tensorflow/java:tensorflow //tensorflow/java:libtensorflow_jni\r\nERROR: C:/development/projects/tensorflow/tensorflow/java/BUILD:142:1: error loading package 'tensorflow/java/src/main/native': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):\r\n        File \"C:/development/projects/tensorflow/third_party/gpus/cuda_configure.bzl\", line 958\r\n                _create_cuda_repository(repository_ctx)\r\n        File \"C:/development/projects/tensorflow/third_party/gpus/cuda_configure.bzl\", line 846, in _create_cuda_repository\r\n                _get_cuda_config(repository_ctx)\r\n        File \"C:/development/projects/tensorflow/third_party/gpus/cuda_configure.bzl\", line 656, in _get_cuda_config\r\n                _cudnn_install_basedir(repository_ctx)\r\n        File \"C:/development/projects/tensorflow/third_party/gpus/cuda_configure.bzl\", line 211, in _cudnn_install_basedir\r\n                auto_configure_fail(\"Cannot find cudnn install path....)\r\n        File \"C:/development/projects/tensorflow/third_party/gpus/cuda_configure.bzl\", line 128, in auto_configure_fail\r\n                fail(\"\r\n%sAuto-Configuration Error:%s ...))\r\n\r\nAuto-Configuration Error: Cannot find cudnn install path.\r\n and referenced by '//tensorflow/java:libtensorflow_jni.so'.\r\nERROR: Analysis of target '//tensorflow/java:libtensorflow_jni' failed; build aborted.\r\nINFO: Elapsed time: 2.365s\r\n\r\n\r\n\r\n\r\n\r\n\r\nPlease go to Stack Overflow for help and support:\r\n\r\nhttp://stackoverflow.com/questions/tagged/tensorflow\r\n\r\nIf you open a GitHub issue, here is our policy:\r\n\r\n1. It must be a bug or a feature request.\r\n2. The form below must be filled out.\r\n\r\n**Here's why we have that policy**: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.\r\n\r\n------------------------\r\n\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Windows 10, msys2 64bit\r\n- **TensorFlow installed from (source or binary)**: Source\r\n- **TensorFlow version (use command below)**: 1.1.0\r\n- **Bazel version (if compiling from source)**: 0.4.5\r\n- **CUDA/cuDNN version**: 8.0/6.0\r\n- **GPU model and memory**: Quadro K5200\r\n- **Exact command to reproduce**: bazel build --config opt //tensorflow/java:tensorflow //tensorflow/java:libtensorflow_jni\r\n\r\nYou can collect some of this information using our environment capture script:\r\n\r\nhttps://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh\r\n\r\nYou can obtain the TensorFlow version with\r\n\r\npython -c \"import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)\"\r\n\r\n### Describe the problem\r\nDescribe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.\r\n\r\n### Source code / logs\r\nInclude any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/304017684","html_url":"https://github.com/tensorflow/tensorflow/issues/9971#issuecomment-304017684","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9971","id":304017684,"user":{"login":"wendal","id":589819,"avatar_url":"https://avatars0.githubusercontent.com/u/589819?v=3","gravatar_id":"","url":"https://api.github.com/users/wendal","html_url":"https://github.com/wendal","followers_url":"https://api.github.com/users/wendal/followers","following_url":"https://api.github.com/users/wendal/following{/other_user}","gists_url":"https://api.github.com/users/wendal/gists{/gist_id}","starred_url":"https://api.github.com/users/wendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendal/subscriptions","organizations_url":"https://api.github.com/users/wendal/orgs","repos_url":"https://api.github.com/users/wendal/repos","events_url":"https://api.github.com/users/wendal/events{/privacy}","received_events_url":"https://api.github.com/users/wendal/received_events","type":"User","site_admin":false},"created_at":"2017-05-25T14:02:44Z","updated_at":"2017-05-25T14:02:44Z","body":"@nectario The CI is using cmake too."}}
{"actor":{"display_login":"wendal"}}