Unable to succesfully complete bazel build step during native build deepspeech v0.6.1

$bazel build --workspace_status_command="bash native_client/bazel_workspace_status_cmd.sh" --config=monolithic -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-fvisibility=hidden //native_client:libdeepspeech.so //native_client:generate_trie

output of the command

INFO: Analysed 2 targets (0 packages loaded, 0 targets configured).
INFO: Found 2 targets...
ERROR: Process exited with status 128: Process exited with status 128
++ git describe --long --tags
+ tf_git_rev=v1.14.0-21-ge77504ac6b
+ echo 'STABLE_TF_GIT_VERSION v1.14.0-21-ge77504ac6b'
+ pushd native_client
++ git describe --long --tags
fatal: No names found, cannot describe anything.
+ ds_git_rev=
STABLE_TF_GIT_VERSION v1.14.0-21-ge77504ac6b
~/Desktop/TCS_Internship/DeepspeechModel/tensorflow/native_client ~/Desktop/TCS_Internship/DeepspeechModel/tensorflow
INFO: Elapsed time: 6.701s, Critical Path: 3.77s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

i used this command to download the correct version of tensorflow
git clone --branch r1.14 https://github.com/mozilla/tensorflow.git
but when i am performinf following command it is giving error …
$git checkout origin/r1.14
error: pathspec ‘origin/r1.14’ did not match any file(s) known to git

You have not documented if you properly did git clone the deepspeech repo as well. Again, your first error suggests that no.

If you pass --branch r1.14 you should not need.

Why do you use v0.6.1 ? It’s old now, you should work on v0.7.3 at least.

1 Like

thanks, @lissyx for help… The issue has been resolved. As you told it was because of git clone
I used the following commands to clone the deepspeech and mozilla/tensorflow.

$git clone --branch r1.14 https://github.com/mozilla/tensorflow.git
$ git clone -b v0.6.1 https://github.com/mozilla/DeepSpeech.git
then used the bazel build

1 Like