android / ndk

The Android Native Development Kit
2k stars 257 forks source link

[BUG] clang++: error: unable to execute command: Segmentation fault #1397

Closed brussee closed 3 years ago

brussee commented 3 years ago

Description

Building LineageOS 17.1 for Samsung herolte following: https://wiki.lineageos.org/devices/herolte/build and using: https://github.com/8890q/ causes segmentation fault with request to do a bug report here.

Track trace:

[ 71% 70231/97940] //art/compiler:libart-compiler clang++ optimizing/instruction_builder.cc
FAILED: out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o
PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++ -c -Iart/compiler -Ibionic/libc/private -Iexternal/vixl/src -Iart/disassembler -Iart/compiler -D__ANDROID_APEX__=com.android.runtime.release  -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -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=date-time -Werror=format-security -nostdlibinc -march=armv8-a  -Iart/cmdline -Ilibnativehelper/header_only_include -Iart/libelffile -Isystem/core/base/include -Iart/runtime -Iart/libdexfile -Iart/libartbase -Iexternal/lz4/lib -Iexternal/lzma/C -Iout/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen -Iart/libartpalette/include -Iart/libprofile -Iexternal/libcxx/include -Iexternal/libcxxabi/include -Ibionic/libc/include -Ibionic/libc/system_properties/include -Isystem/core/property_service/libpropertyinfoparser/include -Iout/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs -Isystem/core/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -Ilibnativehelper/include_jni -fno-rtti -ggdb3 -Wall -Werror -Wextra -Wstrict-aliasing -fstrict-aliasing -Wunreachable-code -Wredundant-decls -Wshadow -Wunused -fvisibility=protected -Wthread-safety -Wthread-safety-negative -Wimplicit-fallthrough -Wfloat-equal -Wint-to-void-pointer-cast -Wused-but-marked-unused -Wdeprecated -Wunreachable-code-break -Wunreachable-code-return -Wno-invalid-offsetof -Winconsistent-missing-override -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -O3 -DART_DEFAULT_GC_TYPE_IS_CMS -DIMT_SIZE=43 -DART_USE_READ_BARRIER=1 -DART_READ_BARRIER_TYPE_IS_BAKER=1 -DART_USE_GENERATIONAL_CC=1 -DART_DEFAULT_COMPACT_DEX_LEVEL=fast -DART_STACK_OVERFLOW_GAP_arm=8192 -DART_STACK_OVERFLOW_GAP_arm64=8192 -DART_STACK_OVERFLOW_GAP_mips=16384 -DART_STACK_OVERFLOW_GAP_mips64=16384 -DART_STACK_OVERFLOW_GAP_x86=8192 -DART_STACK_OVERFLOW_GAP_x86_64=8192 -DUSE_D8_DESUGAR=1 -Wmissing-noreturn -DART_TARGET -DART_ENABLE_CODEGEN_arm -DART_ENABLE_CODEGEN_arm64 -Wframe-larger-than=1736 -DART_FRAME_SIZE_LIMIT=1736 -DART_BASE_ADDRESS=0x70000000 -DART_TARGET_ANDROID -DART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -DART_BASE_ADDRESS_MAX_DELTA=0x1000000 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -DANDROID_STRICT -fPIC -D_USING_LIBCXX -flto=thin -fsplit-lto-unit -fprofile-use=toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09 -Wno-backend-plugin -fexperimental-new-pass-manager -std=gnu++17 -Wsign-promo -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -fno-rtti  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11 -MD -MF out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o.d -o out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o art/compiler/optimizing/instruction_builder.cc
Stack dump:
0.      Program arguments: prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real -cc1 -triple aarch64-unknown-linux-android -emit-llvm-bc -flto=thin -flto-unit -disable-free -disable-llvm-verifier -discard-value-names -main-file-name instruction_builder.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mllvm -warn-stack-size=1736 -mdisable-fp-elim -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 -ffunction-sections -fdata-sections -fprofile-instrument-use-path=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09 -coverage-notes-file /proc/self/cwd/out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.gcno -nostdsysteminc -resource-dir prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3 -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -I art/compiler -I bionic/libc/private -I external/vixl/src -I art/disassembler -I art/compiler -D __ANDROID_APEX__=com.android.runtime.release -D ANDROID -D NDEBUG -U DEBUG -D __compiler_offsetof=__builtin_offsetof -D _FORTIFY_SOURCE=2 -I art/cmdline -I libnativehelper/header_only_include -I art/libelffile -I system/core/base/include -I art/runtime -I art/libdexfile -I art/libartbase -I external/lz4/lib -I external/lzma/C -I out/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen -I art/libartpalette/include -I art/libprofile -I external/libcxx/include -I external/libcxxabi/include -I bionic/libc/include -I bionic/libc/system_properties/include -I system/core/property_service/libpropertyinfoparser/include -I out/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -I libnativehelper/include_jni -D _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D ART_DEFAULT_GC_TYPE_IS_CMS -D IMT_SIZE=43 -D ART_USE_READ_BARRIER=1 -D ART_READ_BARRIER_TYPE_IS_BAKER=1 -D ART_USE_GENERATIONAL_CC=1 -D ART_DEFAULT_COMPACT_DEX_LEVEL=fast -D ART_STACK_OVERFLOW_GAP_arm=8192 -D ART_STACK_OVERFLOW_GAP_arm64=8192 -D ART_STACK_OVERFLOW_GAP_mips=16384 -D ART_STACK_OVERFLOW_GAP_mips64=16384 -D ART_STACK_OVERFLOW_GAP_x86=8192 -D ART_STACK_OVERFLOW_GAP_x86_64=8192 -D USE_D8_DESUGAR=1 -D ART_TARGET -D ART_ENABLE_CODEGEN_arm -D ART_ENABLE_CODEGEN_arm64 -D ART_FRAME_SIZE_LIMIT=1736 -D ART_BASE_ADDRESS=0x70000000 -D ART_TARGET_ANDROID -D ART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -D ART_BASE_ADDRESS_MAX_DELTA=0x1000000 -D ANDROID_STRICT -D _USING_LIBCXX -D _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -internal-isystem prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3/include -O3 -Werror=implicit-function-declaration -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wno-multichar -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -Wall -Wextra -Wstrict-aliasing -Wunreachable-code -Wredundant-decls -Wshadow -Wunused -Wthread-safety -Wthread-safety-negative -Wimplicit-fallthrough -Wfloat-equal -Wint-to-void-pointer-cast -Wused-but-marked-unused -Wdeprecated -Wunreachable-code-break -Wunreachable-code-return -Wno-invalid-offsetof -Winconsistent-missing-override -Wmissing-noreturn -Wno-backend-plugin -Wsign-promo -Wno-thread-safety-negative -Wno-gnu-include-next -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11 -Werror -std=gnu++17 -fdeprecated-macro -fdebug-compilation-dir /proc/self/cwd -fdebug-prefix-map=/proc/self/cwd= -ferror-limit 19 -fmessage-length 0 -fvisibility protected -fvisibility-inlines-hidden -stack-protector 2 -fno-rtti -fno-signed-char -fexperimental-new-pass-manager -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o -x c++ art/compiler/optimizing/instruction_builder.cc -fsplit-lto-unit -faddrsig
1.      <eof> parser at end of file
2.      Optimizer
 #0 0x000000000299ae9d (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x299ae9d)
 #1 0x00000000029983ce llvm::sys::RunSignalHandlers() (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x29983ce)
 #2 0x000000000299b348 (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x299b348)
 #3 0x00007f4ce85553c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #4 0x00000000023e2905 llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23e2905)
 #5 0x00000000023d9b73 llvm::MetadataAsValue::handleChangedMetadata(llvm::Metadata*) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23d9b73)
 #6 0x00000000023da816 llvm::ReplaceableMetadataImpl::replaceAllUsesWith(llvm::Metadata*) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23da816)
 #7 0x00000000023db289 llvm::ValueAsMetadata::handleDeletion(llvm::Value*) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23db289)
 #8 0x000000000238bcfc llvm::Function::~Function() (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x238bcfc)
 #9 0x000000000238b099 llvm::Function::eraseFromParent() (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x238b099)
#10 0x00000000024aef7b llvm::GlobalDCEPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x24aef7b)
#11 0x00000000039f0a6d (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x39f0a6d)
#12 0x00000000023f445d llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23f445d)
#13 0x00000000039ffbed (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x39ffbed)
#14 0x00000000023f445d llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x23f445d)
#15 0x0000000002f8e269 (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x2f8e269)
#16 0x0000000002f879dc clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x2f879dc)
#17 0x00000000033efdcf (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x33efdcf)
#18 0x00000000042b3a44 clang::ParseAST(clang::Sema&, bool, bool) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x42b3a44)
#19 0x0000000003332261 clang::FrontendAction::Execute() (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x3332261)
#20 0x0000000003287528 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x3287528)
#21 0x00000000033ea993 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x33ea993)
#22 0x000000000165b602 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x165b602)
#23 0x0000000001659310 main (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x1659310)
#24 0x00007f4ce80c70b3 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b3)
#25 0x0000000001656029 _start (prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real+0x1656029)
clang++: error: unable to execute command: Segmentation fault
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (6052599 based on r353983c1) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 31c3f8c4ae6cc980405a3b90e7e88db00249eba5) (based on LLVM 9.0.3svn)
Target: aarch64-unknown-linux-android
Thread model: posix
InstalledDir: prebuilts/clang/host/linux-x86/clang-r353983c1/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: /home/paul/android/lineage/out/soong/.temp/instruction_builder-d20893.cpp
clang++: note: diagnostic msg: /home/paul/android/lineage/out/soong/.temp/instruction_builder-d20893.sh
clang++: note: diagnostic msg:

********************
17:38:47 ninja failed with: exit status 1

#### failed to build some targets (02:18:57 (hh:mm:ss)) ####

cat /home/paul/android/lineage/out/soong/.temp/instruction_builder-d20893.sh

# Crash reproducer for Android (6052599 based on r353983c1) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 31c3f8c4ae6cc980405a3b90e7e88db00249eba5) (based on LLVM 9.0.3svn)
# Driver args: "--driver-mode=g++" "-Werror=implicit-function-declaration" "-fmessage-length=0" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-no-canonical-prefixes" "-fno-exceptions" "-Wno-multichar" "-O2" "-g" "-fno-strict-aliasing" "-fdebug-prefix-map=/proc/self/cwd=" "-faddrsig" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-fcolor-diagnostics" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-ffunction-sections" "-fdata-sections" "-fno-short-enums" "-funwind-tables" "-fstack-protector-strong" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-nostdlibinc" "-march=armv8-a" "-fno-rtti" "-ggdb3" "-Wall" "-Wextra" "-Wstrict-aliasing" "-fstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-fvisibility=protected" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-O3" "-Wmissing-noreturn" "-Wframe-larger-than=1736" "--target=aarch64-linux-android" "-B" "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin" "-fPIC" "-flto=thin" "-fsplit-lto-unit" "-fprofile-use=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-Wno-backend-plugin" "-fexperimental-new-pass-manager" "-std=gnu++17" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-fvisibility-inlines-hidden" "-fno-rtti" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Wa,--noexecstack" "-Werror" "-I" "art/compiler" "-I" "bionic/libc/private" "-I" "external/vixl/src" "-I" "art/disassembler" "-I" "art/compiler" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-I" "art/cmdline" "-I" "libnativehelper/header_only_include" "-I" "art/libelffile" "-I" "system/core/base/include" "-I" "art/runtime" "-I" "art/libdexfile" "-I" "art/libartbase" "-I" "external/lz4/lib" "-I" "external/lzma/C" "-I" "out/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen" "-I" "art/libartpalette/include" "-I" "art/libprofile" "-I" "external/libcxx/include" "-I" "external/libcxxabi/include" "-I" "bionic/libc/include" "-I" "bionic/libc/system_properties/include" "-I" "system/core/property_service/libpropertyinfoparser/include" "-I" "out/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs" "-I" "system/core/include" "-I" "system/media/audio/include" "-I" "hardware/libhardware/include" "-I" "hardware/libhardware_legacy/include" "-I" "hardware/ril/include" "-I" "frameworks/native/include" "-I" "frameworks/native/opengl/include" "-I" "frameworks/av/include" "-isystem" "bionic/libc/include" "-isystem" "bionic/libc/kernel/uapi" "-isystem" "bionic/libc/kernel/uapi/asm-arm64" "-isystem" "bionic/libc/kernel/android/scsi" "-isystem" "bionic/libc/kernel/android/uapi" "-I" "libnativehelper/include_jni" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-c" "-o" "out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o" "art/compiler/optimizing/instruction_builder.cc"
# Original command:  "prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real" "-cc1" "-triple" "aarch64-unknown-linux-android" "-emit-llvm-bc" "-flto=thin" "-flto-unit" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "instruction_builder.cc" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mllvm" "-warn-stack-size=1736" "-mdisable-fp-elim" "-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" "-ffunction-sections" "-fdata-sections" "-fprofile-instrument-use-path=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-coverage-notes-file" "/proc/self/cwd/out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.gcno" "-nostdsysteminc" "-resource-dir" "prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3" "-isystem" "bionic/libc/include" "-isystem" "bionic/libc/kernel/uapi" "-isystem" "bionic/libc/kernel/uapi/asm-arm64" "-isystem" "bionic/libc/kernel/android/scsi" "-isystem" "bionic/libc/kernel/android/uapi" "-I" "art/compiler" "-I" "bionic/libc/private" "-I" "external/vixl/src" "-I" "art/disassembler" "-I" "art/compiler" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-I" "art/cmdline" "-I" "libnativehelper/header_only_include" "-I" "art/libelffile" "-I" "system/core/base/include" "-I" "art/runtime" "-I" "art/libdexfile" "-I" "art/libartbase" "-I" "external/lz4/lib" "-I" "external/lzma/C" "-I" "out/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen" "-I" "art/libartpalette/include" "-I" "art/libprofile" "-I" "external/libcxx/include" "-I" "external/libcxxabi/include" "-I" "bionic/libc/include" "-I" "bionic/libc/system_properties/include" "-I" "system/core/property_service/libpropertyinfoparser/include" "-I" "out/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs" "-I" "system/core/include" "-I" "system/media/audio/include" "-I" "hardware/libhardware/include" "-I" "hardware/libhardware_legacy/include" "-I" "hardware/ril/include" "-I" "frameworks/native/include" "-I" "frameworks/native/opengl/include" "-I" "frameworks/av/include" "-I" "libnativehelper/include_jni" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-internal-isystem" "prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3/include" "-O3" "-Werror=implicit-function-declaration" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-Wno-multichar" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-Wall" "-Wextra" "-Wstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-Wmissing-noreturn" "-Wno-backend-plugin" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Werror" "-std=gnu++17" "-fdeprecated-macro" "-fdebug-compilation-dir" "/proc/self/cwd" "-fdebug-prefix-map=/proc/self/cwd=" "-ferror-limit" "19" "-fmessage-length" "0" "-fvisibility" "protected" "-fvisibility-inlines-hidden" "-stack-protector" "2" "-fno-rtti" "-fno-signed-char" "-fexperimental-new-pass-manager" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-o" "out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o" "-x" "c++" "art/compiler/optimizing/instruction_builder.cc" "-fsplit-lto-unit" "-faddrsig"
 "prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real" "-cc1" "-triple" "aarch64-unknown-linux-android" "-emit-llvm-bc" "-flto=thin" "-flto-unit" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "instruction_builder.cc" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mllvm" "-warn-stack-size=1736" "-mdisable-fp-elim" "-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" "-ffunction-sections" "-fdata-sections" "-fprofile-instrument-use-path=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-coverage-notes-file" "/proc/self/cwd/out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.gcno" "-nostdsysteminc" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-O3" "-Werror=implicit-function-declaration" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-Wno-multichar" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-Wall" "-Wextra" "-Wstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-Wmissing-noreturn" "-Wno-backend-plugin" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Werror" "-std=gnu++17" "-fdeprecated-macro" "-fdebug-prefix-map=/proc/self/cwd=" "-ferror-limit" "19" "-fmessage-length" "0" "-fvisibility" "protected" "-fvisibility-inlines-hidden" "-stack-protector" "2" "-fno-rtti" "-fno-signed-char" "-fexperimental-new-pass-manager" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-x" "c++" "instruction_builder-d20893.cpp" "-fsplit-lto-unit" "-faddrsig"

cat /home/paul/android/lineage/out/soong/.temp/instruction_builder-d20893.sh

# Crash reproducer for Android (6052599 based on r353983c1) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 31c3f8c4ae6cc980405a3b90e7e88db00249eba5) (based on LLVM 9.0.3svn)
# Driver args: "--driver-mode=g++" "-Werror=implicit-function-declaration" "-fmessage-length=0" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-no-canonical-prefixes" "-fno-exceptions" "-Wno-multichar" "-O2" "-g" "-fno-strict-aliasing" "-fdebug-prefix-map=/proc/self/cwd=" "-faddrsig" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-fcolor-diagnostics" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-ffunction-sections" "-fdata-sections" "-fno-short-enums" "-funwind-tables" "-fstack-protector-strong" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-nostdlibinc" "-march=armv8-a" "-fno-rtti" "-ggdb3" "-Wall" "-Wextra" "-Wstrict-aliasing" "-fstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-fvisibility=protected" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-O3" "-Wmissing-noreturn" "-Wframe-larger-than=1736" "--target=aarch64-linux-android" "-B" "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin" "-fPIC" "-flto=thin" "-fsplit-lto-unit" "-fprofile-use=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-Wno-backend-plugin" "-fexperimental-new-pass-manager" "-std=gnu++17" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-fvisibility-inlines-hidden" "-fno-rtti" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Wa,--noexecstack" "-Werror" "-I" "art/compiler" "-I" "bionic/libc/private" "-I" "external/vixl/src" "-I" "art/disassembler" "-I" "art/compiler" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-I" "art/cmdline" "-I" "libnativehelper/header_only_include" "-I" "art/libelffile" "-I" "system/core/base/include" "-I" "art/runtime" "-I" "art/libdexfile" "-I" "art/libartbase" "-I" "external/lz4/lib" "-I" "external/lzma/C" "-I" "out/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen" "-I" "art/libartpalette/include" "-I" "art/libprofile" "-I" "external/libcxx/include" "-I" "external/libcxxabi/include" "-I" "bionic/libc/include" "-I" "bionic/libc/system_properties/include" "-I" "system/core/property_service/libpropertyinfoparser/include" "-I" "out/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs" "-I" "system/core/include" "-I" "system/media/audio/include" "-I" "hardware/libhardware/include" "-I" "hardware/libhardware_legacy/include" "-I" "hardware/ril/include" "-I" "frameworks/native/include" "-I" "frameworks/native/opengl/include" "-I" "frameworks/av/include" "-isystem" "bionic/libc/include" "-isystem" "bionic/libc/kernel/uapi" "-isystem" "bionic/libc/kernel/uapi/asm-arm64" "-isystem" "bionic/libc/kernel/android/scsi" "-isystem" "bionic/libc/kernel/android/uapi" "-I" "libnativehelper/include_jni" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-c" "-o" "out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o" "art/compiler/optimizing/instruction_builder.cc"
# Original command:  "prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real" "-cc1" "-triple" "aarch64-unknown-linux-android" "-emit-llvm-bc" "-flto=thin" "-flto-unit" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "instruction_builder.cc" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mllvm" "-warn-stack-size=1736" "-mdisable-fp-elim" "-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" "-ffunction-sections" "-fdata-sections" "-fprofile-instrument-use-path=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-coverage-notes-file" "/proc/self/cwd/out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.gcno" "-nostdsysteminc" "-resource-dir" "prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3" "-isystem" "bionic/libc/include" "-isystem" "bionic/libc/kernel/uapi" "-isystem" "bionic/libc/kernel/uapi/asm-arm64" "-isystem" "bionic/libc/kernel/android/scsi" "-isystem" "bionic/libc/kernel/android/uapi" "-I" "art/compiler" "-I" "bionic/libc/private" "-I" "external/vixl/src" "-I" "art/disassembler" "-I" "art/compiler" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-I" "art/cmdline" "-I" "libnativehelper/header_only_include" "-I" "art/libelffile" "-I" "system/core/base/include" "-I" "art/runtime" "-I" "art/libdexfile" "-I" "art/libartbase" "-I" "external/lz4/lib" "-I" "external/lzma/C" "-I" "out/soong/.intermediates/art/tools/cpp-define-generator/cpp-define-generator-asm-support/android_arm64_armv8-a_core/gen" "-I" "art/libartpalette/include" "-I" "art/libprofile" "-I" "external/libcxx/include" "-I" "external/libcxxabi/include" "-I" "bionic/libc/include" "-I" "bionic/libc/system_properties/include" "-I" "system/core/property_service/libpropertyinfoparser/include" "-I" "out/soong/.intermediates/art/compiler/art_compiler_operator_srcs/gen/gensrcs" "-I" "system/core/include" "-I" "system/media/audio/include" "-I" "hardware/libhardware/include" "-I" "hardware/libhardware_legacy/include" "-I" "hardware/ril/include" "-I" "frameworks/native/include" "-I" "frameworks/native/opengl/include" "-I" "frameworks/av/include" "-I" "libnativehelper/include_jni" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-internal-isystem" "prebuilts/clang/host/linux-x86/clang-r353983c1/lib64/clang/9.0.3/include" "-O3" "-Werror=implicit-function-declaration" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-Wno-multichar" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-Wall" "-Wextra" "-Wstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-Wmissing-noreturn" "-Wno-backend-plugin" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Werror" "-std=gnu++17" "-fdeprecated-macro" "-fdebug-compilation-dir" "/proc/self/cwd" "-fdebug-prefix-map=/proc/self/cwd=" "-ferror-limit" "19" "-fmessage-length" "0" "-fvisibility" "protected" "-fvisibility-inlines-hidden" "-stack-protector" "2" "-fno-rtti" "-fno-signed-char" "-fexperimental-new-pass-manager" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-o" "out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.o" "-x" "c++" "art/compiler/optimizing/instruction_builder.cc" "-fsplit-lto-unit" "-faddrsig"
 "prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang++.real" "-cc1" "-triple" "aarch64-unknown-linux-android" "-emit-llvm-bc" "-flto=thin" "-flto-unit" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "instruction_builder.cc" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mllvm" "-warn-stack-size=1736" "-mdisable-fp-elim" "-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" "-ffunction-sections" "-fdata-sections" "-fprofile-instrument-use-path=/home/paul/android/lineage/toolchain/pgo-profiles/art/dex2oat_arm_arm64.profdata.2019-05-09" "-coverage-notes-file" "/proc/self/cwd/out/soong/.intermediates/art/compiler/libart-compiler/android_arm64_armv8-a_core_shared_com.android.runtime.release/obj/art/compiler/optimizing/instruction_builder.gcno" "-nostdsysteminc" "-D" "__ANDROID_APEX__=com.android.runtime.release" "-D" "ANDROID" "-D" "NDEBUG" "-U" "DEBUG" "-D" "__compiler_offsetof=__builtin_offsetof" "-D" "_FORTIFY_SOURCE=2" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-D" "ART_DEFAULT_GC_TYPE_IS_CMS" "-D" "IMT_SIZE=43" "-D" "ART_USE_READ_BARRIER=1" "-D" "ART_READ_BARRIER_TYPE_IS_BAKER=1" "-D" "ART_USE_GENERATIONAL_CC=1" "-D" "ART_DEFAULT_COMPACT_DEX_LEVEL=fast" "-D" "ART_STACK_OVERFLOW_GAP_arm=8192" "-D" "ART_STACK_OVERFLOW_GAP_arm64=8192" "-D" "ART_STACK_OVERFLOW_GAP_mips=16384" "-D" "ART_STACK_OVERFLOW_GAP_mips64=16384" "-D" "ART_STACK_OVERFLOW_GAP_x86=8192" "-D" "ART_STACK_OVERFLOW_GAP_x86_64=8192" "-D" "USE_D8_DESUGAR=1" "-D" "ART_TARGET" "-D" "ART_ENABLE_CODEGEN_arm" "-D" "ART_ENABLE_CODEGEN_arm64" "-D" "ART_FRAME_SIZE_LIMIT=1736" "-D" "ART_BASE_ADDRESS=0x70000000" "-D" "ART_TARGET_ANDROID" "-D" "ART_BASE_ADDRESS_MIN_DELTA=-0x1000000" "-D" "ART_BASE_ADDRESS_MAX_DELTA=0x1000000" "-D" "ANDROID_STRICT" "-D" "_USING_LIBCXX" "-D" "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" "-O3" "-Werror=implicit-function-declaration" "-W" "-Wall" "-Wno-unused" "-Winit-self" "-Wpointer-arith" "-Wno-multichar" "-Wimplicit-fallthrough" "-Werror=int-conversion" "-Wno-reserved-id-macro" "-Wno-format-pedantic" "-Wno-unused-command-line-argument" "-Wno-zero-as-null-pointer-constant" "-Wno-sign-compare" "-Wno-defaulted-function-deleted" "-Wno-inconsistent-missing-override" "-Wstrict-aliasing=2" "-Werror=return-type" "-Werror=non-virtual-dtor" "-Werror=address" "-Werror=sequence-point" "-Werror=date-time" "-Werror=format-security" "-Wall" "-Wextra" "-Wstrict-aliasing" "-Wunreachable-code" "-Wredundant-decls" "-Wshadow" "-Wunused" "-Wthread-safety" "-Wthread-safety-negative" "-Wimplicit-fallthrough" "-Wfloat-equal" "-Wint-to-void-pointer-cast" "-Wused-but-marked-unused" "-Wdeprecated" "-Wunreachable-code-break" "-Wunreachable-code-return" "-Wno-invalid-offsetof" "-Winconsistent-missing-override" "-Wmissing-noreturn" "-Wno-backend-plugin" "-Wsign-promo" "-Wno-thread-safety-negative" "-Wno-gnu-include-next" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-Werror=address-of-temporary" "-Werror=return-type" "-Wno-tautological-constant-compare" "-Wno-tautological-type-limit-compare" "-Wno-tautological-unsigned-enum-zero-compare" "-Wno-tautological-unsigned-zero-compare" "-Wno-c++98-compat-extra-semi" "-Wno-return-std-move-in-c++11" "-Werror" "-std=gnu++17" "-fdeprecated-macro" "-fdebug-prefix-map=/proc/self/cwd=" "-ferror-limit" "19" "-fmessage-length" "0" "-fvisibility" "protected" "-fvisibility-inlines-hidden" "-stack-protector" "2" "-fno-rtti" "-fno-signed-char" "-fexperimental-new-pass-manager" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-x" "c++" "instruction_builder-d20893.cpp" "-fsplit-lto-unit" "-faddrsig"

Environment Details

pirama-arumuga-nainar commented 3 years ago

Can you also share instruction_builder-d20893.cpp?

pirama-arumuga-nainar commented 3 years ago

Also to set expectations, clang-r353983c1 is from Android Q-QPR2. It's highly unlikely we'd update that branch with a fix.

brussee commented 3 years ago

Apologies, I see I've cat the same file twice by mistake. A second attempt to compile succeeded without errors, so I cannot reproduce (ccache enabled) (that file is already gone).

Thanks for the quick reply!