llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.87k stars 11.92k forks source link

clang: error: clang frontend command failed with exit code 135 (use -v to see invocation) #85029

Open Vanfordeng opened 7 months ago

Vanfordeng commented 7 months ago

AOSP: android 12

[2024-03-13T05:13:52.055Z] [ 73% 109774/150344] target thumb C: libspkrprot_32 <= vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c
[2024-03-13T05:13:52.055Z] FAILED: out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o
[2024-03-13T05:13:52.057Z] /bin/bash -c "PWD=/proc/self/cwd  prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang -I external/tinyalsa/include -I vendor/qcom/opensource/tinycompress/include -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_route/include -I vendor/qcom/opensource/audio-hal/primary-hal/hal -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I vendor/qcom/opensource/audio-hal/primary-hal/hal/msm8974 -I system/media/audio_effects/include -I vendor/qcom/opensource/audio-kernel/include/uapi -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/techpack/audio/include -I out/target/product/sa8295_v4_st_a/obj/include/mm-audio/audio-log-utils -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates -I out/target/product/sa8295_v4_st_a/gen/SHARED_LIBRARIES/libspkrprot_intermediates  -Isystem/media/audio_utils/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libutils/include -Isystem/unwinding/libbacktrace/include -Isystem/logging/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/logging/liblog/include_vndk -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include   -Iexternal/expat/lib -Iexternal/expat/lib  -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc/android_vendor.32_arm_armv7-a-neon_cortex-a9_shared/gen/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi/asm-arm   -Iexternal/libcxxabi/include  -Ihardware/libhardware/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libsystem/include -Isystem/bt/types -Isystem/core/libsystem/include   -isystem out/target/product/sa8295_v4_st_a/obj/include -c  -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profiling -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon  -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin   -std=gnu99 -mthumb -Os   -Wall -Werror -Wno-unused-function -Wno-unused-variable -DSPKR_PROT_ENABLED -DDYNAMIC_LOG_ENABLED -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -D__ANDROID_VENDOR__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi32   -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation  -MD -MF out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.d -o out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c"
[2024-03-13T05:13:52.057Z] PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
[2024-03-13T05:13:52.057Z] Stack dump:
[2024-03-13T05:13:52.059Z] 0.   Program arguments: prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real -I external/tinyalsa/include -I vendor/qcom/opensource/tinycompress/include -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_route/include -I vendor/qcom/opensource/audio-hal/primary-hal/hal -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I vendor/qcom/opensource/audio-hal/primary-hal/hal/msm8974 -I system/media/audio_effects/include -I vendor/qcom/opensource/audio-kernel/include/uapi -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/techpack/audio/include -I out/target/product/sa8295_v4_st_a/obj/include/mm-audio/audio-log-utils -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates -I out/target/product/sa8295_v4_st_a/gen/SHARED_LIBRARIES/libspkrprot_intermediates -Isystem/media/audio_utils/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libutils/include -Isystem/unwinding/libbacktrace/include -Isystem/logging/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/logging/liblog/include_vndk -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include -Iexternal/expat/lib -Iexternal/expat/lib -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc/android_vendor.32_arm_armv7-a-neon_cortex-a9_shared/gen/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Iexternal/libcxxabi/include -Ihardware/libhardware/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libsystem/include -Isystem/bt/types -Isystem/core/libsystem/include -isystem out/target/product/sa8295_v4_st_a/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profiling -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -Wall -Werror -Wno-unused-function -Wno-unused-variable -DSPKR_PROT_ENABLED -DDYNAMIC_LOG_ENABLED -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -D__ANDROID_VENDOR__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi32 -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation -MD -MF out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.d -o out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c
[2024-03-13T05:13:52.059Z] 1.   vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:535:23 <Spelling=out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio/linux/msm_audio_calibration.h:7:25>: current parser token ''a''
[2024-03-13T05:13:52.059Z] 2.   vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:511:1: parsing function body 'get_spkr_prot_cal'
[2024-03-13T05:13:52.059Z] 3.   vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:511:1: in compound statement ('{}')
[2024-03-13T05:13:52.059Z]  #0 0x0000000003fba0e8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3fba0e8)
[2024-03-13T05:13:52.059Z]  #1 0x0000000003fb9f70 llvm::sys::RunSignalHandlers() (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3fb9f70)
[2024-03-13T05:13:52.060Z]  #2 0x0000000003f86c53 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3f86c53)
[2024-03-13T05:13:52.060Z]  #3 0x0000000003f86e51 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3f86e51)
[2024-03-13T05:13:52.060Z]  #4 0x00007f85da2d5980 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12980)
[2024-03-13T05:13:52.060Z]  #5 0x0000000002518351 clang::CharLiteralParser::CharLiteralParser(char const*, char const*, clang::SourceLocation, clang::Preprocessor&, clang::tok::TokenKind) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2518351)
[2024-03-13T05:13:52.060Z]  #6 0x00000000024f39f2 clang::Sema::ActOnCharacterConstant(clang::Token const&, clang::Scope*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24f39f2)
[2024-03-13T05:13:52.060Z]  #7 0x00000000024add76 clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24add76)
[2024-03-13T05:13:52.060Z]  #8 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d)
[2024-03-13T05:13:52.060Z]  #9 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f)
[2024-03-13T05:13:52.060Z] #10 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d)
[2024-03-13T05:13:52.060Z] #11 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f)
[2024-03-13T05:13:52.060Z] #12 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d)
[2024-03-13T05:13:52.060Z] #13 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f)
[2024-03-13T05:13:52.060Z] #14 0x00000000024aa816 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*, true>, clang::prec::Level) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24aa816)
[2024-03-13T05:13:52.061Z] #15 0x00000000024c4c59 clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c59)
[2024-03-13T05:13:52.061Z] #16 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f)
[2024-03-13T05:13:52.061Z] #17 0x00000000024afed9 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24afed9)
[2024-03-13T05:13:52.061Z] #18 0x00000000024ac7d5 clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac7d5)
[2024-03-13T05:13:52.061Z] #19 0x0000000002ddf8d7 clang::Parser::ParseExpression(clang::Parser::TypeCastState) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddf8d7)
[2024-03-13T05:13:52.061Z] #20 0x0000000002ddd118 clang::Parser::ParseParenExprOrCondition(clang::ActionResult<clang::Stmt*, true>*, clang::Sema::ConditionResult&, clang::SourceLocation, clang::Sema::ConditionKind, clang::SourceLocation*, clang::SourceLocation*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddd118)
[2024-03-13T05:13:52.061Z] #21 0x0000000002ddc69f clang::Parser::ParseIfStatement(clang::SourceLocation*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddc69f)
[2024-03-13T05:13:52.061Z] #22 0x0000000002dde38a clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2dde38a)
[2024-03-13T05:13:52.061Z] #23 0x0000000002647cfb clang::Parser::ParseCompoundStatementBody(bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2647cfb)
[2024-03-13T05:13:52.061Z] #24 0x00000000026470e1 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x26470e1)
[2024-03-13T05:13:52.061Z] #25 0x00000000026457d1 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x26457d1)
[2024-03-13T05:13:52.062Z] #26 0x00000000025a81ce clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a81ce)
[2024-03-13T05:13:52.062Z] #27 0x00000000025a2868 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a2868)
[2024-03-13T05:13:52.062Z] #28 0x00000000025a4d39 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a4d39)
[2024-03-13T05:13:52.062Z] #29 0x00000000030c76cd clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x30c76cd)
[2024-03-13T05:13:52.062Z] #30 0x00000000030c7318 clang::ParseAST(clang::Sema&, bool, bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x30c7318)
[2024-03-13T05:13:52.062Z] #31 0x00000000032420fd clang::FrontendAction::Execute() (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x32420fd)
[2024-03-13T05:13:52.062Z] #32 0x0000000003241ac8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3241ac8)
[2024-03-13T05:13:52.062Z] #33 0x000000000323f06f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x323f06f)
[2024-03-13T05:13:52.062Z] #34 0x000000000323d669 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x323d669)
[2024-03-13T05:13:52.062Z] #35 0x00000000038a5de7 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x38a5de7)
[2024-03-13T05:13:52.062Z] #36 0x0000000005364b82 clang::driver::CC1Command::setEnvironment(llvm::ArrayRef<char const*>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x5364b82)
[2024-03-13T05:13:52.062Z] #37 0x00000000034faf85 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x34faf85)
[2024-03-13T05:13:52.062Z] #38 0x00000000034fad45 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x34fad45)
[2024-03-13T05:13:52.062Z] #39 0x0000000003310564 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3310564)
[2024-03-13T05:13:52.063Z] #40 0x0000000002f9a1f1 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2f9a1f1)
[2024-03-13T05:13:52.063Z] #41 0x0000000002f95312 main (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2f95312)
[2024-03-13T05:13:52.063Z] #42 0x00007f85d9314c87 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c87)
[2024-03-13T05:13:52.063Z] #43 0x0000000005283ca9 _start (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x5283ca9)
[2024-03-13T05:13:52.063Z] clang: error: clang frontend command failed with exit code 135 (use -v to see invocation)
[2024-03-13T05:13:52.063Z] Android (7485623, based on r416183b1) clang version 12.0.7 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)
[2024-03-13T05:13:52.063Z] Target: armv7a-unknown-linux-android32
[2024-03-13T05:13:52.063Z] Thread model: posix
[2024-03-13T05:13:52.063Z] InstalledDir: prebuilts/clang/host/linux-x86/clang-r416183b1/bin
[2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: 
[2024-03-13T05:13:52.063Z] ********************
[2024-03-13T05:13:52.063Z] 
[2024-03-13T05:13:52.063Z] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
[2024-03-13T05:13:52.063Z] Preprocessed source(s) and associated run script(s) are located at:
[2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: /home/jenkins/workspace/android/out/soong/.temp/spkr_protection-13b9da.c
[2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: /home/jenkins/workspace/android/out/soong/.temp/spkr_protection-13b9da.sh
[2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: 
[2024-03-13T05:13:52.063Z] 
[2024-03-13T05:13:52.063Z] ********************
dtcxzyw commented 7 months ago

clang version 12.0.7

Could you please reproduce this issue with the trunk version of clang?

llvmbot commented 7 months ago

@llvm/issue-subscribers-clang-frontend

Author: Doctor (Vanfordeng)

AOSP: android 12 [2024-03-13T05:13:52.055Z] [ 73% 109774/150344] target thumb C: libspkrprot_32 <= vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c [2024-03-13T05:13:52.055Z] FAILED: out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o [2024-03-13T05:13:52.057Z] /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang -I external/tinyalsa/include -I vendor/qcom/opensource/tinycompress/include -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_route/include -I vendor/qcom/opensource/audio-hal/primary-hal/hal -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I vendor/qcom/opensource/audio-hal/primary-hal/hal/msm8974 -I system/media/audio_effects/include -I vendor/qcom/opensource/audio-kernel/include/uapi -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/techpack/audio/include -I out/target/product/sa8295_v4_st_a/obj/include/mm-audio/audio-log-utils -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates -I out/target/product/sa8295_v4_st_a/gen/SHARED_LIBRARIES/libspkrprot_intermediates -Isystem/media/audio_utils/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libutils/include -Isystem/unwinding/libbacktrace/include -Isystem/logging/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/logging/liblog/include_vndk -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include -Iexternal/expat/lib -Iexternal/expat/lib -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc/android_vendor.32_arm_armv7-a-neon_cortex-a9_shared/gen/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Iexternal/libcxxabi/include -Ihardware/libhardware/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libsystem/include -Isystem/bt/types -Isystem/core/libsystem/include -isystem out/target/product/sa8295_v4_st_a/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profiling -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -Wall -Werror -Wno-unused-function -Wno-unused-variable -DSPKR_PROT_ENABLED -DDYNAMIC_LOG_ENABLED -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -D__ANDROID_VENDOR__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi32 -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation -MD -MF out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.d -o out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c" [2024-03-13T05:13:52.057Z] PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script. [2024-03-13T05:13:52.057Z] Stack dump: [2024-03-13T05:13:52.059Z] 0. Program arguments: prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real -I external/tinyalsa/include -I vendor/qcom/opensource/tinycompress/include -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_route/include -I vendor/qcom/opensource/audio-hal/primary-hal/hal -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I vendor/qcom/opensource/audio-hal/primary-hal/hal/msm8974 -I system/media/audio_effects/include -I vendor/qcom/opensource/audio-kernel/include/uapi -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio -I out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/techpack/audio/include -I out/target/product/sa8295_v4_st_a/obj/include/mm-audio/audio-log-utils -I vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn -I out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates -I out/target/product/sa8295_v4_st_a/gen/SHARED_LIBRARIES/libspkrprot_intermediates -Isystem/media/audio_utils/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libutils/include -Isystem/unwinding/libbacktrace/include -Isystem/logging/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/logging/liblog/include_vndk -Iexternal/tinyalsa/include -Iexternal/tinyalsa/include -Iexternal/expat/lib -Iexternal/expat/lib -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc/android_vendor.32_arm_armv7-a-neon_cortex-a9_shared/gen/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Iexternal/libcxxabi/include -Ihardware/libhardware/include -Isystem/media/audio/include -Isystem/core/libcutils/include_outside_system -Isystem/core/libsystem/include -Isystem/bt/types -Isystem/core/libsystem/include -isystem out/target/product/sa8295_v4_st_a/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profiling -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -Wall -Werror -Wno-unused-function -Wno-unused-variable -DSPKR_PROT_ENABLED -DDYNAMIC_LOG_ENABLED -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -D__ANDROID_VNDK__ -D__ANDROID_VENDOR__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi32 -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation -MD -MF out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.d -o out/target/product/sa8295_v4_st_a/obj_arm/SHARED_LIBRARIES/libspkrprot_intermediates/spkr_protection.o vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c [2024-03-13T05:13:52.059Z] 1. vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:535:23 <Spelling=out/target/product/sa8295_v4_st_a/obj/KERNEL_OBJ/usr/include/audio/linux/msm_audio_calibration.h:7:25>: current parser token ''a'' [2024-03-13T05:13:52.059Z] 2. vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:511:1: parsing function body 'get_spkr_prot_cal' [2024-03-13T05:13:52.059Z] 3. vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/spkr_protection.c:511:1: in compound statement ('{}') [2024-03-13T05:13:52.059Z] #0 0x0000000003fba0e8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3fba0e8) [2024-03-13T05:13:52.059Z] #1 0x0000000003fb9f70 llvm::sys::RunSignalHandlers() (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3fb9f70) [2024-03-13T05:13:52.060Z] #2 0x0000000003f86c53 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3f86c53) [2024-03-13T05:13:52.060Z] #3 0x0000000003f86e51 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3f86e51) [2024-03-13T05:13:52.060Z] #4 0x00007f85da2d5980 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12980) [2024-03-13T05:13:52.060Z] #5 0x0000000002518351 clang::CharLiteralParser::CharLiteralParser(char const*, char const*, clang::SourceLocation, clang::Preprocessor&, clang::tok::TokenKind) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2518351) [2024-03-13T05:13:52.060Z] #6 0x00000000024f39f2 clang::Sema::ActOnCharacterConstant(clang::Token const&, clang::Scope*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24f39f2) [2024-03-13T05:13:52.060Z] #7 0x00000000024add76 clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24add76) [2024-03-13T05:13:52.060Z] #8 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d) [2024-03-13T05:13:52.060Z] #9 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f) [2024-03-13T05:13:52.060Z] #10 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d) [2024-03-13T05:13:52.060Z] #11 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f) [2024-03-13T05:13:52.060Z] #12 0x00000000024c4c3d clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c3d) [2024-03-13T05:13:52.060Z] #13 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f) [2024-03-13T05:13:52.060Z] #14 0x00000000024aa816 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*, true>, clang::prec::Level) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24aa816) [2024-03-13T05:13:52.061Z] #15 0x00000000024c4c59 clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24c4c59) [2024-03-13T05:13:52.061Z] #16 0x00000000024ac74f clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac74f) [2024-03-13T05:13:52.061Z] #17 0x00000000024afed9 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24afed9) [2024-03-13T05:13:52.061Z] #18 0x00000000024ac7d5 clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x24ac7d5) [2024-03-13T05:13:52.061Z] #19 0x0000000002ddf8d7 clang::Parser::ParseExpression(clang::Parser::TypeCastState) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddf8d7) [2024-03-13T05:13:52.061Z] #20 0x0000000002ddd118 clang::Parser::ParseParenExprOrCondition(clang::ActionResult<clang::Stmt*, true>*, clang::Sema::ConditionResult&, clang::SourceLocation, clang::Sema::ConditionKind, clang::SourceLocation*, clang::SourceLocation*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddd118) [2024-03-13T05:13:52.061Z] #21 0x0000000002ddc69f clang::Parser::ParseIfStatement(clang::SourceLocation*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2ddc69f) [2024-03-13T05:13:52.061Z] #22 0x0000000002dde38a clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2dde38a) [2024-03-13T05:13:52.061Z] #23 0x0000000002647cfb clang::Parser::ParseCompoundStatementBody(bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2647cfb) [2024-03-13T05:13:52.061Z] #24 0x00000000026470e1 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x26470e1) [2024-03-13T05:13:52.061Z] #25 0x00000000026457d1 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x26457d1) [2024-03-13T05:13:52.062Z] #26 0x00000000025a81ce clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a81ce) [2024-03-13T05:13:52.062Z] #27 0x00000000025a2868 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a2868) [2024-03-13T05:13:52.062Z] #28 0x00000000025a4d39 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x25a4d39) [2024-03-13T05:13:52.062Z] #29 0x00000000030c76cd clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x30c76cd) [2024-03-13T05:13:52.062Z] #30 0x00000000030c7318 clang::ParseAST(clang::Sema&, bool, bool) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x30c7318) [2024-03-13T05:13:52.062Z] #31 0x00000000032420fd clang::FrontendAction::Execute() (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x32420fd) [2024-03-13T05:13:52.062Z] #32 0x0000000003241ac8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3241ac8) [2024-03-13T05:13:52.062Z] #33 0x000000000323f06f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x323f06f) [2024-03-13T05:13:52.062Z] #34 0x000000000323d669 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x323d669) [2024-03-13T05:13:52.062Z] #35 0x00000000038a5de7 (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x38a5de7) [2024-03-13T05:13:52.062Z] #36 0x0000000005364b82 clang::driver::CC1Command::setEnvironment(llvm::ArrayRef<char const*>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x5364b82) [2024-03-13T05:13:52.062Z] #37 0x00000000034faf85 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x34faf85) [2024-03-13T05:13:52.062Z] #38 0x00000000034fad45 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x34fad45) [2024-03-13T05:13:52.062Z] #39 0x0000000003310564 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x3310564) [2024-03-13T05:13:52.063Z] #40 0x0000000002f9a1f1 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2f9a1f1) [2024-03-13T05:13:52.063Z] #41 0x0000000002f95312 main (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x2f95312) [2024-03-13T05:13:52.063Z] #42 0x00007f85d9314c87 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c87) [2024-03-13T05:13:52.063Z] #43 0x0000000005283ca9 _start (prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang.real+0x5283ca9) [2024-03-13T05:13:52.063Z] clang: error: clang frontend command failed with exit code 135 (use -v to see invocation) [2024-03-13T05:13:52.063Z] Android (7485623, based on r416183b1) clang version 12.0.7 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee) [2024-03-13T05:13:52.063Z] Target: armv7a-unknown-linux-android32 [2024-03-13T05:13:52.063Z] Thread model: posix [2024-03-13T05:13:52.063Z] InstalledDir: prebuilts/clang/host/linux-x86/clang-r416183b1/bin [2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: [2024-03-13T05:13:52.063Z] ******************** [2024-03-13T05:13:52.063Z] [2024-03-13T05:13:52.063Z] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: [2024-03-13T05:13:52.063Z] Preprocessed source(s) and associated run script(s) are located at: [2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: /home/jenkins/workspace/android/out/soong/.temp/spkr_protection-13b9da.c [2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: /home/jenkins/workspace/android/out/soong/.temp/spkr_protection-13b9da.sh [2024-03-13T05:13:52.063Z] clang: note: diagnostic msg: [2024-03-13T05:13:52.063Z] [2024-03-13T05:13:52.063Z] ********************