Replies: 1 comment
-
>>> carlfm01 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
>>> pvk444
[July 21, 2019, 10:19pm]
Am trying to build libdeepspeech.so on Windows from source. Folling the
description on github, I installed MSYS2 and Bazel, and did run
configure.py to use CUDA.
When running the command :
> bazel build slash --workspace_status_command='bash
> native_client/bazel_workspace_status_cmd.sh' -c opt slash --config=cuda
> slash --copt=/arch:AVX slash --copt=/arch:AVX2 //native_client:libdeepspeech.so
I always the the error:
> ERROR: D:/projects/deepspeech/tensorflow/native_client/BUILD:3:1: file
> '[ slash org_tensorflow]//tensorflow:tensorflow.bzl' does not
> contain symbol 'if_cuda' slash
> ERROR: D:/projects/deepspeech/tensorflow/native_client/BUILD:148:10:
> Traceback (most recent call last): slash
> File 'D:/projects/deepspeech/tensorflow/native_client/BUILD', line 61 slash
> tf_cc_shared_object(name = 'libdeepspeech.so', srcs = ... slash ' slash ]})), slash <5
> more arguments slash >) slash
> File 'D:/projects/deepspeech/tensorflow/native_client/BUILD', line
> 148, in tf_cc_shared_object slash
> if_cuda slash
> name 'if_cuda' is not defined slash
> ERROR: Skipping '//native_client:libdeepspeech.so': no such target
> '//native_client:libdeepspeech.so': target 'libdeepspeech.so' not
> declared in package 'native_client' defined by
> D:/projects/deepspeech/tensorflow/native_client/BUILD slash
> WARNING: Target pattern parsing failed. slash
> ERROR: no such target '//native_client:libdeepspeech.so': target
> 'libdeepspeech.so' not declared in package 'native_client' defined by
> D:/projects/deepspeech/tensorflow/native_client/BUILD slash
> INFO: Elapsed time: 0.147s slash
> INFO: 0 processes. slash
> FAILED: Build did NOT complete successfully (1 packages loaded)
Unfortunately I don't know Bazel, and my simplistic attempts of adding
something like
> def if_cuda(a, b slash [ slash ]) slash
> return a
did of course not solve anything.
Any help how to resolve this issue would be greatly appreciated.
[This is an archived TTS discussion thread from discourse.mozilla.org/t/windows-build-bazel-errror]
Beta Was this translation helpful? Give feedback.
All reactions