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
> Task :app:buildCMakeDebug[arm64-v8a][decoder_main,wenet]
C/C++: ninja: Entering directory `/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a'
C/C++: /Users/yanghongli/wenet/runtime/android/app/src/main/cpp/kaldi/base/kaldi-math.cc:81:21: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
C/C++: /Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:132:18: note: expanded from macro 'RAND_MAX'
C/C++: /Users/yanghongli/wenet/runtime/android/app/src/main/cpp/kaldi/base/kaldi-math.cc:93:29: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
C/C++: /Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:132:18: note: expanded from macro 'RAND_MAX'
C/C++: ld.lld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld.lld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
C/C++: ld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: ld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ld.lld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
> Task :app:buildCMakeDebug[arm64-v8a][decoder_main,wenet] FAILED
Execution failed for task ':app:buildCMakeDebug[arm64-v8a][decoder_main,wenet]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a'
[1/36] Performing update step for 'wetextprocessing'
[2/36] No patch step for 'wetextprocessing'
[3/36] Performing configure step for 'wetextprocessing'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a/wetextprocessing-prefix/src/wetextprocessing-build
[4/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/base/kaldi-error.cc.o
[5/36] Building CXX object utils/CMakeFiles/utils.dir/utils.cc.o
[6/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/base/kaldi-math.cc.o
/Users/yanghongli/wenet/runtime/android/app/src/main/cpp/kaldi/base/kaldi-math.cc:81:21: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
} else if (prob * RAND_MAX < 128.0) {
~ ^~~~~~~~
/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:132:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX 0x7fffffff
^~~~~~~~~~
/Users/yanghongli/wenet/runtime/android/app/src/main/cpp/kaldi/base/kaldi-math.cc:93:29: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
return (Rand(state) < ((RAND_MAX + static_cast<BaseFloat>(1.0)) * prob));
^~~~~~~~ ~
/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/stdlib.h:132:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX 0x7fffffff
^~~~~~~~~~
2 warnings generated.
[7/36] Building CXX object utils/CMakeFiles/utils.dir/string.cc.o
[8/36] Building CXX object frontend/CMakeFiles/frontend.dir/feature_pipeline.cc.o
[9/36] Linking CXX static library utils/libutils.a
[10/36] Linking CXX static library frontend/libfrontend.a
[11/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/util/kaldi-io.cc.o
[12/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/util/simple-io-funcs.cc.o
[13/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/util/text-utils.cc.o
[14/36] Building CXX object kaldi/CMakeFiles/kaldi-util.dir/util/parse-options.cc.o
[15/36] Linking CXX static library kaldi/libkaldi-util.a
[16/36] Building CXX object kaldi/CMakeFiles/kaldi-decoder.dir/lat/lattice-functions.cc.o
[17/36] Building CXX object kaldi/CMakeFiles/kaldi-decoder.dir/lat/determinize-lattice-pruned.cc.o
[18/36] Building CXX object kaldi/CMakeFiles/kaldi-decoder.dir/decoder/lattice-faster-decoder.cc.o
[19/36] Building CXX object kaldi/CMakeFiles/kaldi-decoder.dir/decoder/lattice-faster-online-decoder.cc.o
[20/36] Linking CXX static library kaldi/libkaldi-decoder.a
[21/36] Performing build step for 'wetextprocessing'
[1/7] Building CXX object utils/CMakeFiles/wetext_utils.dir/wetext_string.cc.o
[2/7] Linking CXX static library utils/libwetext_utils.a
[3/7] Building CXX object bin/CMakeFiles/processor_main.dir/processor_main.cc.o
[4/7] Building CXX object processor/CMakeFiles/wetext_processor.dir/wetext_token_parser.cc.o
[5/7] Building CXX object processor/CMakeFiles/wetext_processor.dir/wetext_processor.cc.o
[6/7] Linking CXX static library processor/libwetext_processor.a
[7/7] Linking CXX executable bin/processor_main
[22/36] No install step for 'wetextprocessing'
[23/36] Completed 'wetextprocessing'
[24/36] Building CXX object decoder/CMakeFiles/decoder.dir/ctc_endpoint.cc.o
[25/36] Building CXX object post_processor/CMakeFiles/post_processor.dir/post_processor.cc.o
[26/36] Building CXX object decoder/CMakeFiles/decoder.dir/ctc_prefix_beam_search.cc.o
[27/36] Linking CXX static library post_processor/libpost_processor.a
[28/36] Building CXX object decoder/CMakeFiles/decoder.dir/asr_decoder.cc.o
[29/36] Building CXX object decoder/CMakeFiles/decoder.dir/context_graph.cc.o
[30/36] Building CXX object decoder/CMakeFiles/decoder.dir/ctc_wfst_beam_search.cc.o
[31/36] Building CXX object decoder/CMakeFiles/decoder.dir/torch_asr_model.cc.o
[32/36] Linking CXX static library decoder/libdecoder.a
[33/36] Building CXX object CMakeFiles/wenet.dir/wenet.cc.o
[34/36] Building CXX object CMakeFiles/decoder_main.dir/bin/decoder_main.cc.o
[35/36] Linking CXX shared library /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/libwenet.so
FAILED: /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/libwenet.so
: && /Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=c++14 -DC10_USE_GLOG -DC10_USE_MINIMAL_GLOG -DANDROID -Wno-c++11-narrowing -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--allow-multiple-definition -fuse-ld=lld -shared -Wl,-soname,libwenet.so -o /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/libwenet.so CMakeFiles/wenet.dir/wenet.cc.o -L/Users/yanghongli/wenet/runtime/android/app/src/main/cpp/../../../build/wenet-openfst-android-1.0.2.aar/jni/arm64-v8a -L/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a/wetextprocessing-prefix/src/wetextprocessing-build/processor -L/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a/wetextprocessing-prefix/src/wetextprocessing-build/utils -L/Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a -llog -lgflags_nothreads -lglog -lfst -lwetext_utils frontend/libfrontend.a decoder/libdecoder.a -landroid frontend/libfrontend.a decoder/libdecoder.a -landroid -lc++_shared frontend/libfrontend.a kaldi/libkaldi-decoder.a kaldi/libkaldi-util.a post_processor/libpost_processor.a utils/libutils.a -llog -lgflags_nothreads -lglog -lfst -lwetext_processor -lwetext_utils -lpytorch_jni -lfbjni -latomic -lm && :
ld.lld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld.lld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[36/36] Linking CXX executable /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/decoder_main
FAILED: /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/decoder_main
: && /Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/yanghongli/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=c++14 -DC10_USE_GLOG -DC10_USE_MINIMAL_GLOG -DANDROID -Wno-c++11-narrowing -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/decoder_main.dir/bin/decoder_main.cc.o -o /Users/yanghongli/wenet/runtime/android/app/build/intermediates/cxx/Debug/3m6x5n10/obj/arm64-v8a/decoder_main -L/Users/yanghongli/wenet/runtime/android/app/src/main/cpp/../../../build/wenet-openfst-android-1.0.2.aar/jni/arm64-v8a -L/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a/wetextprocessing-prefix/src/wetextprocessing-build/processor -L/Users/yanghongli/wenet/runtime/android/app/.cxx/Debug/3m6x5n10/arm64-v8a/wetextprocessing-prefix/src/wetextprocessing-build/utils -L/Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a -llog -lgflags_nothreads -lglog -lfst -lwetext_utils frontend/libfrontend.a decoder/libdecoder.a -landroid -lc++_shared frontend/libfrontend.a kaldi/libkaldi-decoder.a kaldi/libkaldi-util.a post_processor/libpost_processor.a utils/libutils.a -llog -lgflags_nothreads -lglog -lfst -lwetext_processor -lwetext_utils -lpytorch_jni -lfbjni -latomic -lm && :
ld: error: found local symbol '__bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_end' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_edata' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__bss_start__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '_bss_end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
ld: error: found local symbol '__end__' in global part of symbol table in file /Users/yanghongli/wenet/runtime/android/app/build/pytorch_android-1.13.0.aar/jni/arm64-v8a/libpytorch_jni.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
* 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.
Any idea what's causing the issue?
The text was updated successfully, but these errors were encountered:
Getting below error while running ./gradlew build
Any idea what's causing the issue?
The text was updated successfully, but these errors were encountered: