{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2413","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2413/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2413/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2413/events","html_url":"https://github.com/tensorflow/tensorflow/issues/2413","id":155416689,"number":2413,"title":"Compile Failed Numerous Times","user":{"login":"guopei","id":6256717,"avatar_url":"https://avatars.githubusercontent.com/u/6256717?v=3","gravatar_id":"","url":"https://api.github.com/users/guopei","html_url":"https://github.com/guopei","followers_url":"https://api.github.com/users/guopei/followers","following_url":"https://api.github.com/users/guopei/following{/other_user}","gists_url":"https://api.github.com/users/guopei/gists{/gist_id}","starred_url":"https://api.github.com/users/guopei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guopei/subscriptions","organizations_url":"https://api.github.com/users/guopei/orgs","repos_url":"https://api.github.com/users/guopei/repos","events_url":"https://api.github.com/users/guopei/events{/privacy}","received_events_url":"https://api.github.com/users/guopei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/installation/startup","name":"installation/startup","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-18T04:57:15Z","updated_at":"2016-05-19T19:00:24Z","closed_at":null,"body":"Ubuntu 14.04\r\nGCC 4.8.4\r\nCuda 7.5\r\nCudnn 4.0.7\r\nBazel 0.2.2b\r\n\r\n-----\r\n\r\n`bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer`\r\nINFO: Found 1 target...\r\nERROR: /home/peiguo/.cache/bazel/_bazel_peiguo/67521296d96959142b2d5d303d9c774c/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':\r\nthis rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':\r\n  '/usr/include/stdc-predef.h'\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h'\r\n  '/usr/include/string.h'\r\n  '/usr/include/features.h'\r\n  '/usr/include/x86_64-linux-gnu/sys/cdefs.h'\r\n  '/usr/include/x86_64-linux-gnu/bits/wordsize.h'\r\n  '/usr/include/x86_64-linux-gnu/gnu/stubs.h'\r\n  '/usr/include/x86_64-linux-gnu/gnu/stubs-64.h'\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h'\r\n  '/usr/include/xlocale.h'\r\n  '/usr/include/x86_64-linux-gnu/bits/string3.h'\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h'\r\n  '/usr/include/stdint.h'\r\n  '/usr/include/x86_64-linux-gnu/bits/wchar.h'.\r\nTarget //tensorflow/cc:tutorials_example_trainer failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 2.329s, Critical Path: 2.01s\r\n\r\n---\r\n\r\nI have tried many times, the error is always undeclared inclusion(s) in rule xxxx, but the xxxx is changing constantly.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/220420753","html_url":"https://github.com/tensorflow/tensorflow/issues/2413#issuecomment-220420753","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2413","id":220420753,"user":{"login":"guopei","id":6256717,"avatar_url":"https://avatars.githubusercontent.com/u/6256717?v=3","gravatar_id":"","url":"https://api.github.com/users/guopei","html_url":"https://github.com/guopei","followers_url":"https://api.github.com/users/guopei/followers","following_url":"https://api.github.com/users/guopei/following{/other_user}","gists_url":"https://api.github.com/users/guopei/gists{/gist_id}","starred_url":"https://api.github.com/users/guopei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guopei/subscriptions","organizations_url":"https://api.github.com/users/guopei/orgs","repos_url":"https://api.github.com/users/guopei/repos","events_url":"https://api.github.com/users/guopei/events{/privacy}","received_events_url":"https://api.github.com/users/guopei/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T19:00:24Z","updated_at":"2016-05-19T19:00:24Z","body":"This is what I got from `bazel build -c opt //tensorflow/cc:tutorials_example_trainer`\r\n\r\nWARNING: /home/peiguo/.cache/bazel/_bazel_peiguo/f093626f144ca8499d84c1ae3f196d29/external/re2/WORKSPACE:1: Workspace name in /home/peiguo/.cache/bazel/_bazel_peiguo/f093626f144ca8499d84c1ae3f196d29/external/re2/WORKSPACE (@__main__) does not match the name given in the repository's definition (@re2); this will cause a build error in future versions.\r\nWARNING: /scratch/peiguo/tensor-flow/tensorflow/google/protobuf/BUILD:59:16: in includes attribute of cc_library rule //google/protobuf:protobuf_lite: 'src/' resolves to 'google/protobuf/src' not in 'third_party'. This will be an error in the future.\r\nWARNING: /scratch/peiguo/tensor-flow/tensorflow/google/protobuf/BUILD:124:16: in includes attribute of cc_library rule //google/protobuf:protobuf: 'src/' resolves to 'google/protobuf/src' not in 'third_party'. This will be an error in the future.\r\nWARNING: /scratch/peiguo/tensor-flow/tensorflow/google/protobuf/BUILD:266:16: in includes attribute of cc_library rule //google/protobuf:protoc_lib: 'src/' resolves to 'google/protobuf/src' not in 'third_party'. This will be an error in the future.\r\nINFO: Found 1 target...\r\nERROR: /home/peiguo/.cache/bazel/_bazel_peiguo/f093626f144ca8499d84c1ae3f196d29/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':\r\nthis rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h'\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h'\r\n  '/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h'.\r\nTarget //tensorflow/cc:tutorials_example_trainer failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 4.951s, Critical Path: 1.28s\r\n"}}