hi @lissyx, im so sorry to borther you again ,but i hava been Plagued by this problem :I am trying to run run nativate_client/java, i have followed the introductions
to genareat libdeepspeech.so
and deepspeech
binary for Android on ARMv7 and ARM64 arch, and i cp libdeepspeech.so
into the libdeepspeech/libs/{arm64-v8a,armeabi-v7a}/
matching subdirectories, then gradle: it successed ,but when i run ‘./gradlew libdeepspeech:build’ , i got the errorTask:libdeepspeech:compileDebugJavaWithJavac FAILED
. then when i run 'make apk ', i got another error :
‘‘Makefile:31: recipe for target ‘bindings’ failed
make: *** [bindings] Error 1’’
could you give me some advices? thanks very much!
processing as following
(base) zhangp@zhangp:~/tmp/deepspeech-train-venv/tensorflow$ bazel build --workspace_status_command=“bash native_client/bazel_workspace_status_cmd.sh” --config=monolithic --config=android --config=android_arm64 --define=runtime=tflite --action_env ANDROID_NDK_API_LEVEL=21 --cxxopt=-std=c++11 --copt=-D_GLIBCXX_USE_C99 //native_client:libdeepspeech.so
Starting local Bazel server and connecting to it…
WARNING: The following configs were expanded more than once: [android]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
WARNING: The major revision of the Android NDK referenced by android_ndk_repository rule ‘androidndk’ is 21. The major revisions supported by Bazel are [10, 11, 12, 13, 14, 15, 16, 17, 18]. Bazel will attempt to treat the NDK as if it was r18. This may cause compilation and linkage problems. Please download a supported NDK version.
INFO: Analysed target //native_client:libdeepspeech.so (47 packages loaded, 7515 targets configured).
INFO: Found 1 target…
INFO: From Executing genrule //native_client:workspace_status:
++ grep STABLE_TF_GIT_VERSION bazel-out/stable-status.txt
++ cut '-d ’ -f2
- tf_git_version=v1.14.0-21-ge77504ac6b
++ grep STABLE_DS_VERSION bazel-out/stable-status.txt
++ cut '-d ’ -f2 - ds_version=0.7.0-alpha.3
++ grep STABLE_DS_GIT_VERSION bazel-out/stable-status.txt
++ cut '-d ’ -f2 - ds_git_version=v0.7.0-alpha.3-81-g40250988
++ grep STABLE_DS_GRAPH_VERSION bazel-out/stable-status.txt
++ cut '-d ’ -f2 - ds_graph_version=6
- cat
INFO: From Compiling tensorflow/lite/kernels/depthwise_conv.cc:
In file included from tensorflow/lite/kernels/depthwise_conv.cc:28:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_multithread.h:21:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h:23:
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:8296:9: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]
“sub sp, sp, #160\n” // =288
^
:1:1: note: instantiated into assembly here
sub sp, sp, #160
^
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:8296:9: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
“sub sp, sp, #160\n” // =288
^
:1:1: note: instantiated into assembly here
sub sp, sp, #160
^
In file included from tensorflow/lite/kernels/depthwise_conv.cc:28:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_multithread.h:21:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h:23:
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:8915:9: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]
“ldr w15, [%[function_params], #” STR(DP_OFFSET_OUTPUT_RESIDUAL_WIDTH) “]\n”
^
:1:1: note: instantiated into assembly here
ldr w15, [x4, #68 + 4 + 4 + 4 + 4 + 4 + 4]
^
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:8915:9: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
“ldr w15, [%[function_params], #” STR(DP_OFFSET_OUTPUT_RESIDUAL_WIDTH) “]\n”
^
:1:1: note: instantiated into assembly here
ldr w15, [x4, #68 + 4 + 4 + 4 + 4 + 4 + 4]
^
In file included from tensorflow/lite/kernels/depthwise_conv.cc:28:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_multithread.h:21:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h:23:
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:7197:9: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]
“sub sp, sp, #288\n” // =448
^
:1:1: note: instantiated into assembly here
sub sp, sp, #288
^
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:7197:9: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
“sub sp, sp, #288\n” // =448
^
:1:1: note: instantiated into assembly here
sub sp, sp, #288
^
In file included from tensorflow/lite/kernels/depthwise_conv.cc:28:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_multithread.h:21:
In file included from ./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h:23:
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:7882:9: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]
“sub sp, sp, #32\n” // =192
^
:1:1: note: instantiated into assembly here
sub sp, sp, #32
^
./tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h:7882:9: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
“sub sp, sp, #32\n” // =192
^
:1:1: note: instantiated into assembly here
sub sp, sp, #32
^
4 warnings generated.
Target //native_client:libdeepspeech.so up-to-date:
bazel-bin/native_client/libdeepspeech.so
INFO: Elapsed time: 173.099s, Critical Path: 47.99s
INFO: 270 processes: 270 local.
INFO: Build completed successfully, 274 total actions
(base) zhangp@zhangp:~/tmp/deepspeech-train-venv/DeepSpeech/native_client$ /home/zhangp/Android/Sdk/ndk/21.0.6113669/ndk-build APP_PLATFORM=android-21 APP_BUILD_SCRIPT=$(pwd)/Android.mk NDK_PROJECT_PATH=$(pwd) APP_STL=c++_shared TFDIR=$(pwd)/…/…/tensorflow/ TARGET_ARCH_ABI=arm64-v8a
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:748: warning: overriding recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/obj/local/arm64-v8a/libc++_shared.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:748: warning: ignoring old recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/obj/local/arm64-v8a/libc++_shared.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:772: warning: overriding recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/libs/arm64-v8a/libc++_shared.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:772: warning: ignoring old recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/libs/arm64-v8a/libc++_shared.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:476: warning: overriding recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/obj/local/arm64-v8a/objs/deepspeech/client.o’
…
…
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:748: warning: ignoring old recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/obj/local/arm64-v8a/libdeepspeech.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:772: warning: overriding recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/libs/arm64-v8a/libdeepspeech.so’
/home/zhangp/Android/Sdk/ndk/21.0.6113669/build/core/build-binary.mk:772: warning: ignoring old recipe for target ‘/home/zhangp/tmp/deepspeech-train-venv/tensorflow/native_client/libs/arm64-v8a/libdeepspeech.so’
[arm64-v8a] Prebuilt : libdeepspeech.so <= …/…/tensorflow//bazel-bin/native_client/
[arm64-v8a] Executable : deepspeech
[arm64-v8a] Install : deepspeech => libs/arm64-v8a/deepspeech
[arm64-v8a] Install : libdeepspeech.so => libs/arm64-v8a/libdeepspeech.so
[arm64-v8a] Install : libc++_shared.so => libs/arm64-v8a/libc++_shared.so
(base) zhangp@zhangp:~/tmp/deepspeech-train-venv/tensorflow/native_client/java$ gradle
Configure project :libdeepspeech
arm64-v8a armeabi-v7a x86_64
Task :help
Welcome to Gradle 5.1.1.
To run a build, run gradle …
To see a list of available tasks, run gradle tasks
To see a list of command-line options, run gradle --help
To see more detail about a task, run gradle help --task
For troubleshooting, visit https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
(base) zhangp@zhangp:~/tmp/deepspeech-train-venv/tensorflow/native_client/java$ ./gradlew libdeepspeech:build
Configure project :libdeepspeech
arm64-v8a armeabi-v7a x86_64
Task :libdeepspeech:compileDebugJavaWithJavac FAILED
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechStreamingState.java:4: error: cannot find symbol
private SWIGTYPE_p_StreamingState _sp;
^
symbol: class SWIGTYPE_p_StreamingState
location: class DeepSpeechStreamingState
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechStreamingState.java:6: error: cannot find symbol
public DeepSpeechStreamingState(SWIGTYPE_p_StreamingState sp) {
^
symbol: class SWIGTYPE_p_StreamingState
location: class DeepSpeechStreamingState
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechStreamingState.java:10: error: cannot find symbol
public SWIGTYPE_p_StreamingState get() {
^
symbol: class SWIGTYPE_p_StreamingState
location: class DeepSpeechStreamingState
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:14: error: cannot find symbol
private SWIGTYPE_p_p_ModelState _mspp;
^
symbol: class SWIGTYPE_p_p_ModelState
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:15: error: cannot find symbol
private SWIGTYPE_p_ModelState _msp;
^
symbol: class SWIGTYPE_p_ModelState
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:134: error: cannot find symbol
public Metadata sttWithMetadata(short buffer, int buffer_size, int num_results) {
^
symbol: class Metadata
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:184: error: cannot find symbol
public Metadata intermediateDecodeWithMetadata(DeepSpeechStreamingState ctx, int num_results) {
^
symbol: class Metadata
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:215: error: cannot find symbol
public Metadata finishStreamWithMetadata(DeepSpeechStreamingState ctx, int num_results) {
^
symbol: class Metadata
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:18: error: cannot find symbol
DeepSpeech_Error_Codes code = DeepSpeech_Error_Codes.swigToEnum(errorCode);
^
symbol: class DeepSpeech_Error_Codes
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:18: error: cannot find symbol
DeepSpeech_Error_Codes code = DeepSpeech_Error_Codes.swigToEnum(errorCode);
^
symbol: variable DeepSpeech_Error_Codes
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:19: error: cannot find symbol
if (code != DeepSpeech_Error_Codes.ERR_OK) {
^
symbol: variable DeepSpeech_Error_Codes
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:20: error: cannot find symbol
throw new RuntimeException(“Error: " + impl.ErrorCodeToErrorMessage(errorCode) + " (0x” + Integer.toHexString(errorCode) + “).”);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:34: error: cannot find symbol
this._mspp = impl.new_modelstatep();
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:35: error: cannot find symbol
evaluateErrorCode(impl.CreateModel(modelPath, this._mspp));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:36: error: cannot find symbol
this._msp = impl.modelstatep_value(this._mspp);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:46: error: cannot find symbol
return impl.GetModelBeamWidth(this._msp);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:58: error: cannot find symbol
evaluateErrorCode(impl.SetModelBeamWidth(this._msp, beamWidth));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:67: error: cannot find symbol
return impl.GetModelSampleRate(this._msp);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:74: error: cannot find symbol
impl.FreeModel(this._msp);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:85: error: cannot find symbol
evaluateErrorCode(impl.EnableExternalScorer(this._msp, scorer));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:94: error: cannot find symbol
evaluateErrorCode(impl.DisableExternalScorer(this._msp));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:106: error: cannot find symbol
evaluateErrorCode(impl.SetScorerAlphaBeta(this._msp, alpha, beta));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:119: error: cannot find symbol
return impl.SpeechToText(this._msp, buffer, buffer_size);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:135: error: cannot find symbol
return impl.SpeechToTextWithMetadata(this._msp, buffer, buffer_size, num_results);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:148: error: cannot find symbol
SWIGTYPE_p_p_StreamingState ssp = impl.new_streamingstatep();
^
symbol: class SWIGTYPE_p_p_StreamingState
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:148: error: cannot find symbol
SWIGTYPE_p_p_StreamingState ssp = impl.new_streamingstatep();
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:149: error: cannot find symbol
evaluateErrorCode(impl.CreateStream(this._msp, ssp));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:150: error: cannot find symbol
return new DeepSpeechStreamingState(impl.streamingstatep_value(ssp));
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:162: error: cannot find symbol
impl.FeedAudioContent(ctx.get(), buffer, buffer_size);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:173: error: cannot find symbol
return impl.IntermediateDecode(ctx.get());
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:185: error: cannot find symbol
return impl.IntermediateDecodeWithMetadata(ctx.get(), num_results);
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:199: error: cannot find symbol
return impl.FinishStream(ctx.get());
^
symbol: variable impl
location: class DeepSpeechModel
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/java/libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/DeepSpeechModel.java:216: error: cannot find symbol
return impl.FinishStreamWithMetadata(ctx.get(), num_results);
^
symbol: variable impl
location: class DeepSpeechModel
33 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:libdeepspeech:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface
BUILD FAILED in 0s
10 actionable tasks: 1 executed, 9 up-to-date
(base) zhangp@zhangp:~/tmp/deepspeech-train-venv/tensorflow/native_client/java$ make apk
./gradlew clean
Configure project :libdeepspeech
arm64-v8a armeabi-v7a x86_64
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface
BUILD SUCCESSFUL in 0s
5 actionable tasks: 3 executed, 2 up-to-date
rm -rf *.java jni/deepspeech_wrap.cpp
SWIG_LIB=“/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/share/swig/4.0.2/” PATH=“/opt/gradle/gradle-5.1.1/bin:/home/zhangp/anaconda3/bin:/home/zhangp/anaconda3/condabin:/home/zhangp/.local/bin:/home/zhangp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/zhangp/tmp/deepspeech-venv/v-6-1/DeepSpeech-0.6.1/kenlm/build/bin:/home/zhangp/bin:/usr/local/cuda-10.0/bin:/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/bin” swig -version
SWIG Version 3.0.12
Compiled with g++ [x86_64-pc-linux-gnu]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
SWIG_LIB=“/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/share/swig/4.0.2/” PATH=“/opt/gradle/gradle-5.1.1/bin:/home/zhangp/anaconda3/bin:/home/zhangp/anaconda3/condabin:/home/zhangp/.local/bin:/home/zhangp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/zhangp/tmp/deepspeech-venv/v-6-1/DeepSpeech-0.6.1/kenlm/build/bin:/home/zhangp/bin:/usr/local/cuda-10.0/bin:/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/bin” swig -swiglib
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/share/swig/4.0.2/
SWIG_LIB=“/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/share/swig/4.0.2/” PATH=“/opt/gradle/gradle-5.1.1/bin:/home/zhangp/anaconda3/bin:/home/zhangp/anaconda3/condabin:/home/zhangp/.local/bin:/home/zhangp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/zhangp/tmp/deepspeech-venv/v-6-1/DeepSpeech-0.6.1/kenlm/build/bin:/home/zhangp/bin:/usr/local/cuda-10.0/bin:/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/bin” swig -c++ -java -package org.mozilla.deepspeech.libdeepspeech -outdir libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/ -o jni/deepspeech_wrap.cpp jni/deepspeech.i
/home/zhangp/tmp/deepspeech-train-venv/DeepSpeech/native_client/ds-swig/share/swig/4.0.2/java/java.swg:1382: Error: Syntax error in input(1).
Makefile:31: recipe for target ‘bindings’ failed
make: *** [bindings] Error 1