{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3526","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3526/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3526/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3526/events","html_url":"https://github.com/tensorflow/tensorflow/issues/3526","id":167826448,"number":3526,"title":"Build fails on Ubuntu 16.04 LTS, CUDA Toolkit 8.0, cuDNN 5.0.5, and Bazel 0.3.0-jdk7","user":{"login":"adam-erickson","id":5751456,"avatar_url":"https://avatars.githubusercontent.com/u/5751456?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-erickson","html_url":"https://github.com/adam-erickson","followers_url":"https://api.github.com/users/adam-erickson/followers","following_url":"https://api.github.com/users/adam-erickson/following{/other_user}","gists_url":"https://api.github.com/users/adam-erickson/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-erickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-erickson/subscriptions","organizations_url":"https://api.github.com/users/adam-erickson/orgs","repos_url":"https://api.github.com/users/adam-erickson/repos","events_url":"https://api.github.com/users/adam-erickson/events{/privacy}","received_events_url":"https://api.github.com/users/adam-erickson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T10:55:16Z","updated_at":"2016-07-27T16:57:58Z","closed_at":null,"body":"Hi Everyone,\r\n\r\nI've downgraded my gcc to 5.3.0 by building from source in order to install CUDA Toolkit 8.0 with cuDNN 5.0.5. I also installed OpenCL freeglut3 and mesa libraries via apt-get. I then built Bazel from source using the installer script. Next, I installed the TensorFlow and Google Cloud Platform Python dependencies. I then cloned the tensorflow GitHub repository and modified the CROSSTOOL file variable cxx_builtin_include_directory to include the gcc location for 5.3.0. I then ran ./configure with default settings and tried to build with Bazel, but it always fails with an error like this, which appears to be a gcc issue:\r\n\r\nWARNING: /root/.cache/bazel/_bazel_root/fbc06f9baef46cade6e35d9e4137e37c/external/protobuf/WORKSPACE:1: Workspace name in /root/.cache/bazel/_bazel_root/fbc06f9baef46cade6e35d9e4137e37c/external/protobuf/WORKSPACE (@__main__) does not match the name given in the repository's definition (@protobuf); this will cause a build error in future versions.\r\n\r\nERROR: /root/.cache/bazel/_bazel_root/fbc06f9baef46cade6e35d9e4137e37c/external/zlib_archive/BUILD:7:1: undeclared inclusion(s) in rule '@zlib_archive//:zlib'\r\n\r\nThis rule is missing dependency declarations for the following files included by 'external/zlib_archive/zlib-1.2.8/inftrees.c':\r\n  '/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed/limits.h'\r\n  '/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed/syslimits.h'\r\n  '/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include/stddef.h'\r\n  '/usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include/stdarg.h'.\r\nTarget //tensorflow/cc:tutorials_example_trainer failed to build\r\n\r\nIf I change the gcc version to 4.8 (installed via apt-get) in ./configure and revert CROSSTOOL I get many warnings:\r\n  INFO: ... warning: variable 'parsed_colon' set but not used\r\n\r\nThis warning is followed by an error:\r\nERROR: /opt/tensorflow/tensorflow/core/kernels/BUILD:1527:1: undeclared inclusion(s) in rule '//tensorflow/core/kernels:depth_space_ops_gpu':\r\nthis rule is missing dependency declarations for the following files included by 'tensorflow/core/kernels/spacetodepth_op_gpu.cu.cc':\r\n  '/usr/local/cuda-8.0/include/cuda_runtime.h'\r\n  '/usr/local/cuda-8.0/include/host_config.h'\r\n  '/usr/local/cuda-8.0/include/builtin_types.h'\r\n  '/usr/local/cuda-8.0/include/device_types.h'\r\n  '/usr/local/cuda-8.0/include/host_defines.h'\r\n  '/usr/local/cuda-8.0/include/driver_types.h'\r\n  ...\r\n\r\nThis time, it appears to be an issue with CUDA Toolkit 8.0. Everything seems to work flawlessly up until building tensorflow from source.\r\n\r\nThanks,\r\n\r\nAdam"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/235650014","html_url":"https://github.com/tensorflow/tensorflow/issues/3526#issuecomment-235650014","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3526","id":235650014,"user":{"login":"yaroslavvb","id":23068,"avatar_url":"https://avatars.githubusercontent.com/u/23068?v=3","gravatar_id":"","url":"https://api.github.com/users/yaroslavvb","html_url":"https://github.com/yaroslavvb","followers_url":"https://api.github.com/users/yaroslavvb/followers","following_url":"https://api.github.com/users/yaroslavvb/following{/other_user}","gists_url":"https://api.github.com/users/yaroslavvb/gists{/gist_id}","starred_url":"https://api.github.com/users/yaroslavvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaroslavvb/subscriptions","organizations_url":"https://api.github.com/users/yaroslavvb/orgs","repos_url":"https://api.github.com/users/yaroslavvb/repos","events_url":"https://api.github.com/users/yaroslavvb/events{/privacy}","received_events_url":"https://api.github.com/users/yaroslavvb/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T16:57:58Z","updated_at":"2016-07-27T16:57:58Z","body":"I worked around similar issue by adding `cxx_builtin_include_directory`\r\nhttps://github.com/tensorflow/tensorflow/issues/3431"}}
{"actor":{"display_login":"yaroslavvb"}}