Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsl+ubuntu 20.0LTS: text ops cross compile to android platform failure with clang failed (Exit 254) : small_constants_optimizer.cc #1243

Open
sunfvrise opened this issue Jan 5, 2024 · 0 comments

Comments

@sunfvrise
Copy link

sunfvrise commented Jan 5, 2024

Env:

tensorflow-2.13.0
android-ndk-r20b
android build-tools 29.0.0

Messages:

$ bazel build //tensorflow_text/core/kernels:fast_wordpiece_tokenizer_tflite -
-config=android_arm64
Starting local Bazel server and connecting to it...
INFO: Reading 'startup' options from /home/sunfvrise/.bazelrc: --host_jvm_args=-Djavax.net.ssl.trustStore=/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts, --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=120
INFO: Reading rc options for 'build' from /home/sunfvrise/dev/tensorflow/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/sunfvrise/dev/tensorflow/text/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug --action_env TF_HEADER_DIR=/home/sunfvrise/.local/lib/python3.10/site-packages/tensorflow/include --action_env TF_SHARED_LIBRARY_DIR=/home/sunfvrise/.local/lib/python3.10/site-packages/tensorflow --action_env TF_SHARED_LIBRARY_NAME=libtensorflow_framework.so.2 --action_env TF_CXX11_ABI_FLAG=1
INFO: Found applicable config definition build:short_logs in file /home/sunfvrise/dev/tensorflow/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/sunfvrise/dev/tensorflow/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:android_arm64 in file /home/sunfvrise/dev/tensorflow/text/.bazelrc: --config=android --cpu=arm64-v8a --fat_apk_cpu=arm64-v8a
INFO: Found applicable config definition build:android in file /home/sunfvrise/dev/tensorflow/text/.bazelrc: --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --dynamic_mode=off --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false
DEBUG: /home/sunfvrise/.cache/bazel/_bazel_sunfvrise/b11f347e5fdbcdceaa6c809f71a3252f/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'icu' because it already exists.
DEBUG: /home/sunfvrise/.cache/bazel/_bazel_sunfvrise/b11f347e5fdbcdceaa6c809f71a3252f/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Analyzed target //tensorflow_text/core/kernels:fast_wordpiece_tokenizer_tflite (194 packages loaded, 12001 targets configured).
INFO: Found 1 target...
ERROR: /home/sunfvrise/.cache/bazel/_bazel_sunfvrise/b11f347e5fdbcdceaa6c809f71a3252f/external/org_tensorflow/tensorflow/core/BUILD:1005:11: Compiling tensorflow/core/common_runtime/eager/small_constants_optimizer.cc failed: (Exit 254): clang failed: error executing command external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 -target ... (remaining 95 arguments skipped)
Stack dump:
0.      Program arguments: external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -cc1 -triple aarch64-none-linux-android -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name small_constants_optimizer.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file /proc/self/cwd/bazel-out/arm64-v8a-opt/bin/external/org_tensorflow/tensorflow/core/_objs/portable_tensorflow_lib_lite/small_constants_optimizer.pic.gcno -resource-dir external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7 -dependency-file bazel-out/arm64-v8a-opt/bin/external/org_tensorflow/tensorflow/core/_objs/portable_tensorflow_lib_lite/small_constants_optimizer.pic.d -MT bazel-out/arm64-v8a-opt/bin/external/org_tensorflow/tensorflow/core/_objs/portable_tensorflow_lib_lite/small_constants_optimizer.pic.o -sys-header-deps -isystem external/androidndk/ndk/sysroot/usr/include/aarch64-linux-android -iquote external/org_tensorflow -iquote bazel-out/arm64-v8a-opt/bin/external/org_tensorflow -iquote external/com_google_absl -iquote bazel-out/arm64-v8a-opt/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/arm64-v8a-opt/bin/external/nsync -iquote external/eigen_archive -iquote bazel-out/arm64-v8a-opt/bin/external/eigen_archive -iquote external/com_google_protobuf -iquote bazel-out/arm64-v8a-opt/bin/external/com_google_protobuf -iquote external/double_conversion -iquote bazel-out/arm64-v8a-opt/bin/external/double_conversion -iquote external/com_googlesource_code_re2 -iquote bazel-out/arm64-v8a-opt/bin/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/arm64-v8a-opt/bin/external/farmhash_archive -isystem external/nsync/public -isystem bazel-out/arm64-v8a-opt/bin/external/nsync/public -isystem external/eigen_archive -isystem bazel-out/arm64-v8a-opt/bin/external/eigen_archive -isystem external/com_google_protobuf/src -isystem bazel-out/arm64-v8a-opt/bin/external/com_google_protobuf/src -isystem external/farmhash_archive/src -isystem bazel-out/arm64-v8a-opt/bin/external/farmhash_archive/src -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem external/androidndk/ndk/sources/android/support/include -isystem external/androidndk/ndk/sysroot/usr/include -D __ANDROID_API__=26 -D NDEBUG -D EIGEN_MPL2_ONLY -D EIGEN_MAX_ALIGN_BYTES=64 -D SUPPORT_SELECTIVE_REGISTRATION -D EIGEN_AVOID_STL_ARRAY -I external/gemmlowp -D TF_LEAN_BINARY -isysroot external/androidndk/ndk/platforms/android-26/arch-arm64 -internal-isystem external/androidndk/ndk/platforms/android-26/arch-arm64/usr/local/include -internal-isystem external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include -internal-externc-isystem external/androidndk/ndk/platforms/android-26/arch-arm64/include -internal-externc-isystem external/androidndk/ndk/platforms/android-26/arch-arm64/usr/include -O2 -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -Werror=return-type -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-function-declaration -Wno-sign-compare -Wno-narrowing -w -std=c++17 -fdeprecated-macro -fdebug-compilation-dir /proc/self/cwd -ftemplate-depth 900 -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o bazel-out/arm64-v8a-opt/bin/external/org_tensorflow/tensorflow/core/_objs/portable_tensorflow_lib_lite/small_constants_optimizer.pic.o -x c++ external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc
1.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:167:61: current parser token '{'
2.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:35:1: parsing namespace 'tensorflow'
3.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:36:1: parsing namespace 'tensorflow::small_constants_optimizer::(anonymous)'
4.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:108:57: parsing function body 'tensorflow::small_constants_optimizer::(anonymous namespace)::FoldBoolInputTensor'
5.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:108:57: in compound statement ('{}')
6.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:135:53: in compound statement ('{}')
7.      external/org_tensorflow/tensorflow/core/common_runtime/eager/small_constants_optimizer.cc:151:68: in compound statement ('{}')
#0 0x000000000242f066 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x242f066)
#1 0x000000000242dca0 llvm::sys::RunSignalHandlers() (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x242dca0)
#2 0x000000000242f34f (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x242f34f)
#3 0x00007fd438662520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000000000335e360 (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x335e360)
#5 0x0000000003338645 (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3338645)
#6 0x0000000003337875 clang::Sema::CheckCompleteDecompositionDeclaration(clang::DecompositionDecl*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3337875)
#7 0x00000000032bb435 clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x32bb435)
#8 0x00000000032b9c19 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x32b9c19)
#9 0x00000000035098e4 clang::Sema::BuildCXXForRangeStmt(clang::SourceLocation, clang::SourceLocation, clang::Stmt*, clang::SourceLocation, clang::Stmt*, clang::Stmt*, clang::Stmt*, clang::Expr*, clang::Expr*, clang::Stmt*, clang::SourceLocation, clang::Sema::BuildForRangeKind) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x35098e4)
#10 0x0000000003508e1b clang::Sema::ActOnCXXForRangeStmt(clang::Scope*, clang::SourceLocation, clang::SourceLocation, clang::Stmt*, clang::Stmt*, clang::SourceLocation, clang::Expr*, clang::SourceLocation, clang::Sema::BuildForRangeKind) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3508e1b)
#11 0x0000000003092c42 clang::Parser::ParseForStatement(clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3092c42)
#12 0x000000000308ff62 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308ff62)
#13 0x000000000308fc40 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fc40)
#14 0x00000000030946cd clang::Parser::ParseCompoundStatementBody(bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30946cd)
#15 0x0000000003093c1a clang::Parser::ParseCompoundStatement(bool, unsigned int) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3093c1a)
#16 0x000000000308feb8 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308feb8)
#17 0x000000000308fc40 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fc40)
#18 0x000000000308fb7b clang::Parser::ParseStatement(clang::SourceLocation*, bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fb7b)
#19 0x0000000003091425 clang::Parser::ParseIfStatement(clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3091425)
#20 0x000000000308fed7 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fed7)
#21 0x000000000308fc40 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fc40)
#22 0x00000000030946cd clang::Parser::ParseCompoundStatementBody(bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30946cd)
#23 0x0000000003093c1a clang::Parser::ParseCompoundStatement(bool, unsigned int) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3093c1a)
#24 0x000000000308feb8 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308feb8)
#25 0x000000000308fc40 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fc40)
#26 0x000000000308fb7b clang::Parser::ParseStatement(clang::SourceLocation*, bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fb7b)
#27 0x00000000030924d8 clang::Parser::ParseForStatement(clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30924d8)
#28 0x000000000308ff62 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308ff62)
#29 0x000000000308fc40 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308fc40)
#30 0x00000000030946cd clang::Parser::ParseCompoundStatementBody(bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30946cd)
#31 0x0000000003094f09 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3094f09)
#32 0x000000000308063d clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x308063d)
#33 0x00000000030abb27 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30abb27)
#34 0x0000000003080029 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3080029)
#35 0x000000000307fd52 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307fd52)
#36 0x000000000307ece3 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307ece3)
#37 0x00000000030ce482 clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, std::__1::vector<clang::IdentifierInfo*, std::__1::allocator<clang::IdentifierInfo*> >&, std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30ce482)
#38 0x00000000030cd3e2 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30cd3e2)
#39 0x00000000030a85b7 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30a85b7)
#40 0x000000000307ec86 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307ec86)
#41 0x00000000030ce482 clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, std::__1::vector<clang::IdentifierInfo*, std::__1::allocator<clang::IdentifierInfo*> >&, std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30ce482)
#42 0x00000000030ce425 clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, std::__1::vector<clang::IdentifierInfo*, std::__1::allocator<clang::IdentifierInfo*> >&, std::__1::vector<clang::SourceLocation, std::__1::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30ce425)
#43 0x00000000030cd3e2 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30cd3e2)
#44 0x00000000030a85b7 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x30a85b7)
#45 0x000000000307ec86 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307ec86)
#46 0x000000000307e73c clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307e73c)
#47 0x000000000307b782 clang::ParseAST(clang::Sema&, bool, bool) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x307b782)
#48 0x00000000028d0cf5 clang::FrontendAction::Execute() (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x28d0cf5)
#49 0x000000000286db67 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x286db67)
#50 0x0000000002932ff5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x2932ff5)
#51 0x00000000018876d4 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x18876d4)
#52 0x0000000001883f22 main (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x1883f22)
#53 0x00007fd438649d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#54 0x00007fd438649e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#55 0x0000000001883029 _start (external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x1883029)
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)
Target: aarch64-none-linux-android
Thread model: posix
InstalledDir: external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/small_constants_optimizer-584207.cpp
clang: note: diagnostic msg: /tmp/small_constants_optimizer-584207.sh
clang: note: diagnostic msg:

********************
Target //tensorflow_text/core/kernels:fast_wordpiece_tokenizer_tflite failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 211.291s, Critical Path: 194.93s
INFO: 837 processes: 21 internal, 816 local.
FAILED: Build did NOT complete successfully
@sunfvrise sunfvrise changed the title text ops cross compile to android platform failed with clang small_constants_optimizer.cc text ops cross compile to android platform failed with clang small_constants_optimizer.cc (Exit 254) Jan 5, 2024
@sunfvrise sunfvrise changed the title text ops cross compile to android platform failed with clang small_constants_optimizer.cc (Exit 254) text ops cross compile to android platform failure with clang failed (Exit 254) : small_constants_optimizer.cc Jan 5, 2024
@sunfvrise sunfvrise changed the title text ops cross compile to android platform failure with clang failed (Exit 254) : small_constants_optimizer.cc wsl+ubuntu 20.0LTS: text ops cross compile to android platform failure with clang failed (Exit 254) : small_constants_optimizer.cc Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant