Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue: Bazel paths #843

Closed
thompsonb opened this issue Jan 22, 2016 · 5 comments
Closed

build issue: Bazel paths #843

thompsonb opened this issue Jan 22, 2016 · 5 comments

Comments

@thompsonb
Copy link

As of 0db986d, I'm getting the error below when I try to build from source. Is my Bazel out of date or something?

ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:11:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:12:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:11:6: file '/tensorflow:tensorflow.bzl.bzl' was not correctly loaded. Make sure the 'load' statement appears in the global scope in your file.
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:12:6: file '/tensorflow:tensorflow.bzl.bzl' was not correctly loaded. Make sure the 'load' statement appears in the global scope in your file.
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:21:13: Traceback (most recent call last):
File "/home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD", line 14
cc_library(name = "cc_op_gen_main", srcs = ["ops/cc_op_gen.cc", "ops/cc_op_gen_main.cc"], hdrs = ["ops/cc_op_gen.h"], copts = tf_copts(), deps = ["//tensorflow/core:framework"])
File "/home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD", line 21, in cc_library
tf_copts
name 'tf_copts' is not defined.
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:28:1: name 'tf_gen_op_wrappers_cc' is not defined.
ERROR: /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD:66:13: Traceback (most recent call last):
File "/home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD", line 63
cc_binary(name = "tutorials_example_trainer", srcs = ["tutorials/example_trainer.cc"], copts = tf_copts(), linkopts = ["-lpthread", "-lm"], deps = [":cc_ops", "//tensorflow/core:kernels", "//tensorflow/core:tensorflow"])
File "/home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD", line 66, in cc_binary
tf_copts
name 'tf_copts' is not defined.
ERROR: no such target '//tensorflow/cc:tutorials_example_trainer': target 'tutorials_example_trainer' not declared in package 'tensorflow/cc' defined by /home/bjt/git_repos/tensorflow2/tensorflow/cc/BUILD.
INFO: Elapsed time: 2.232s

bazel version
Build label: 0.1.1
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/bazel-main_deploy.jar
Build time: Thu Oct 15 20:15:14 2015 (1444940114)
Build timestamp: 1444940114
Build timestamp as int: 1444940114

@vrv
Copy link

vrv commented Jan 22, 2016

As of current HEAD, you now have to upgrade to bazel 0.1.4. Let us know if you still have problems after upgrading.

@vrv vrv closed this as completed Jan 22, 2016
@thompsonb
Copy link
Author

Worked, thanks!

@alexatknit
Copy link

Please update the documentation on the website to reflect this: https://www.tensorflow.org/versions/master/get_started/os_setup.html#installation-for-linux

@vrv
Copy link

vrv commented Jan 25, 2016

Yeah, we updated here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#install-bazel

but we haven't updated the website from that. @martinwicke

@martinwicke
Copy link
Member

Done.

On Sun, Jan 24, 2016 at 10:10 PM Vijay Vasudevan notifications@github.com
wrote:

Yeah, we updated here:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#install-bazel

but we haven't updated the website from that. @martinwicke
https://github.com/martinwicke


Reply to this email directly or view it on GitHub
#843 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@vrv @martinwicke @thompsonb @alexatknit and others