You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bazel build //tensorflow:libtensorflow.so
Extracting Bazel installation...
Sending SIGTERM to previous Bazel server (pid=8488)... done.
.
ERROR: /Users/Projects/tensorflow/tensorflow/core/BUILD:942:1: no such target '//tensorflow/tools/git:gen/spec.json': target 'gen/spec.json' not declared in package 'tensorflow/tools/git' defined by /Users/Projects/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: /Users/Projects/tensorflow/tensorflow/core/BUILD:942:1: no such target '//tensorflow/tools/git:gen/head': target 'gen/head' not declared in package 'tensorflow/tools/git' defined by /Users/Projects/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: /Users/Projects/tensorflow/tensorflow/core/BUILD:942:1: no such target '//tensorflow/tools/git:gen/branch_ref': target 'gen/branch_ref' not declared in package 'tensorflow/tools/git' defined by /Users/Projects/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: Analysis of target '//tensorflow:libtensorflow.so' failed; build aborted.
INFO: Elapsed time: 5.724s
Reacted by Gonçalo Oliveira, Dávid Komorowicz, Zihao Zheng, Francis Kim, fettay, Aaron Freeland, Vinton, Dylan Yelton, Cara McCormack, Yusuf Mansour and 33 more
@aselle Any chance we can add an error message mentioning ./configure here? We used to have a helpful prompt for idiots like me who forgot to run it, but I'm not sure where it went. I'm betting that would save quite a few engineer-hours for all our users. :)
Reacted by Dan Brickley, Saurabh Jain, Boris Smus, Damon Da Tong, manasakankanala, Jack Styles, Lucy Park, Elson Rodriguez, Tor E Hagemann, Shane McKee and 28 more
Reacted by Dan Brickley, Saurabh Jain and Nicolas
Reacted by Dan Brickley, Saurabh Jain and Anand Umashankar
Reacted by Dan Brickley, Saurabh Jain, rhythm9229, Aaron Freeland, James DiPadua and Vitaly Krumins
Do you know of an easy way to accomplish this in Bazel? We could always make a dependent filename "please_rerun_configure" but that is unintuitive to the uninitiated (and smells of the pre C++11 template static_assert technique). Filed bug for that #4386.
I'm having the same issue, (gen/spec.json not declared in package) but I'm using Windows 10, so how do I run ./configure on windows? Or is there any other solution for the issue? This is my issue. #11279
Hi, I am using Ubuntu 14.04. I tried to follow the instructions from here but i get an error saying
ERROR: no such target '//tensorflow:libtensorflow_all.so': target 'libtensorflow_all.so' not declared in package 'tensorflow' (did you mean 'libtensorflow_cc.so'?) defined by /home/muazzam/mywork/python/tensorflow/tensorflow/BUILD. INFO: Elapsed time: 0.047s
This error occurs when I use the following command from the cjweeks/tensorflow repository documentation bazel build tensorflow:libtensorflow_all.so
Activity
aselle commentedon Sep 9, 2016
It looks like you haven't run ./configure.
hillegass commentedon Sep 9, 2016
Ugh. I'm an idiot. (I had run configure, but then I did pull to update my copy of the repository.) I'm so sorry.
petewarden commentedon Sep 14, 2016
@aselle Any chance we can add an error message mentioning ./configure here? We used to have a helpful prompt for idiots like me who forgot to run it, but I'm not sure where it went. I'm betting that would save quite a few engineer-hours for all our users. :)
aselle commentedon Sep 14, 2016
Do you know of an easy way to accomplish this in Bazel? We could always make a dependent filename "please_rerun_configure" but that is unintuitive to the uninitiated (and smells of the pre C++11 template static_assert technique). Filed bug for that #4386.
DimanNe commentedon Jun 21, 2017
Can anybody add that I have to run
./configurehere?aselle commentedon Jun 21, 2017
I'll do that.
Branch 160346151 (#11094)
RohitDulam commentedon Jul 4, 2017
I'm having the same issue, (gen/spec.json not declared in package) but I'm using Windows 10, so how do I run ./configure on windows? Or is there any other solution for the issue? This is my issue. #11279
Branch 160346151 (tensorflow#11094)
mozi22 commentedon Jul 15, 2017
Hi, I am using Ubuntu 14.04. I tried to follow the instructions from here but i get an error saying
ERROR: no such target '//tensorflow:libtensorflow_all.so': target 'libtensorflow_all.so' not declared in package 'tensorflow' (did you mean 'libtensorflow_cc.so'?) defined by /home/muazzam/mywork/python/tensorflow/tensorflow/BUILD. INFO: Elapsed time: 0.047sThis error occurs when I use the following command from the cjweeks/tensorflow repository documentation
bazel build tensorflow:libtensorflow_all.soanybody has any clues ?
qiaohaijun commentedon Jan 5, 2018
I forgot exec
./configureTomhouxin commentedon Aug 1, 2018
@mozi22 I ran into the same problem as you, and I executed./configure, how do you solve it, thank you
Htiango commentedon Aug 8, 2018
@Tomhouxin did you solve it? I did the execution and still met the problem