Open dtsmith2001 opened 4 years ago
Same issue here.
ERROR: Skipping 'tensorflow:libtensorflow_all.so': 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/yohan/tensorflow/tensorflow/BUILD WARNING: Target pattern parsing failed. 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/yohan/tensorflow/tensorflow/BUILD INFO: Elapsed time: 5.102s INFO: 0 processes. FAILED: Build did NOT complete successfully (1 packages loaded)
Oh my goodness, just fixed it man. We are appending to the wrong BUILD file, the relevant one is in tensorflow/tensorflow not the root directory and is much longer.
After cloning the repo do:
cd tensorflow/tensorflow
Append the BUILD file there with
cc_binary( name = "libtensorflow_all.so", linkshared = 1, linkopts = ["-Wl,--version-script=tensorflow/tf_version_script.lds"], # Remove this line if you are using MacOS deps = [ "//tensorflow/core:framework_internal", "//tensorflow/core:tensorflow", "//tensorflow/cc:cc_ops", "//tensorflow/cc:client_session", "//tensorflow/cc:scope", "//tensorflow/c:c_api", ], )
Then return back to the root tensorflow and follow the rest of the instructions remembering ./configure.
Hope this helps.
I'm following Step 1 in the README.
I ran
./configure
. However, I getI ran
bazel clean
andbazel shutdown
, but I have the same problem. My command-line isLinux xxx 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 18.04.3 LTS
I apply all updates regularly.