Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy
https://codechecker.readthedocs.io
Apache License 2.0
2.15k stars 357 forks source link

Android 11 build with codechecker does not generate any reports #3340

Open Securee opened 3 years ago

Securee commented 3 years ago

I want to build Android 11 with codechecker, but there is not any reports generated. I have checked the configuration according to issue 2979 and 2916, but have no luck.

CodeChecker version

Kind | Version

Base package version | 6.16.0
Package build date | 2021-06-01T19:35
Git commit ID (hash) | f6e3f5a87e3eaaa794cedaccdcc63493df170dd2 Git tag information | 6.16

CodeChecker web version:

Kind | Version

Base package version | 6.16.0
Package build date | 2021-06-01T19:35
Git commit ID (hash) | f6e3f5a87e3eaaa794cedaccdcc63493df170dd2 Git tag information | 6.16
Server supported API (Thrift) | 6.40
Client API (Thrift) | 6.40

The Configuration of package_layout.json { "runtime": { "analyzers": { "clangsa": "/AndroidSource/aosp/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang", "clang-tidy": "/AndroidSource/aosp/prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang-tidy" }, "clang-apply-replacements": "clang-apply-replacements" }, "ld_lib_path_extra" : [], "path_env_extra" : [] }

Content of mybuild.sh

!/bin/bash

export _JAVA_OPTIONS="-Xmx4g" export CC_LOGGER_DEBUG_FILE="/home/lzy/codechecker.debug.log" export CC_LOGGER_NEW_ESCAPING=true

cd /AndroidSource/aosp source ./build/envsetup.sh choosecombo 1 aosp_arm 2 1 make -j10

To Reproduce 1 cd to android 11 source cd /AndroidSource 2 source /home/lzy/tools/codechecker/venv/bin/activate 3 CodeChecker check -b "./mybuild.sh" -o ./results --verbose debug

The error is :

build completed successfully (01:57:47 (hh:mm:ss))

[INFO][2021-06-02 13:30:38] {buildlogger} [3362] <140327881258816> - build_manager.py:131 perform_build_command() - Build finished successfully. [DEBUG_ANALYZER][2021-06-02 13:30:38] {buildlogger} [3362] <140327881258816> - build_manager.py:132 perform_build_command() - The logfile is: /tmp/tmpkxbbpk2i [INFO][2021-06-02 13:30:38] {buildlogger} [3362] <140327881258816> - build_manager.py:144 perform_build_command() - The debug log file is: /AndroidSource/results/codechecker.logger.debug [DEBUG][2021-06-02 13:30:38] {system} [3362] <140327881258816> - check.py:830 main() - Calling ANALYZE with args: [DEBUG][2021-06-02 13:30:38] {system} [3362] <140327881258816> - check.py:831 main() - Namespace(analyzer_config=['clang-tidy:HeaderFilterRegex=.'], compile_uniqueing='none', config_file=None, jobs=12, keep_gcc_include_fixed=False, keep_gcc_intrin=False, logfile='/tmp/tmpkxbbpk2i', output_format='plist', output_path='/AndroidSource/results', verbose='debug') [DEBUG][2021-06-02 13:30:38] {system} [3362] <140327881258816> - analyze.py:937 main() - args: Namespace(analyzer_config=['clang-tidy:HeaderFilterRegex=.'], compile_uniqueing='none', config_file=None, jobs=12, keep_gcc_include_fixed=False, keep_gcc_intrin=False, logfile='/tmp/tmpkxbbpk2i', output_format='plist', output_path='/AndroidSource/results', verbose='debug') [DEBUG][2021-06-02 13:30:38] {system} [3362] <140327881258816> - analyze.py:938 main() - Output will be stored to: '/AndroidSource/results' [DEBUG][2021-06-02 13:30:38] {buildlogger} [3362] <140327881258816> - log_parser.py:1356 parse_unique_log() - Writing compiler info into:/AndroidSource/results/compiler_info.json [DEBUG][2021-06-02 13:30:38] {buildlogger} [3362] <140327881258816> - log_parser.py:1359 parse_unique_log() - Parsing log file done. [INFO][2021-06-02 13:30:38] {system} [3362] <140327881258816> - analyze.py:963 main() - No analysis is required. There were no compilation commands in the provided compilation database or all of them were skipped.

and the content of /tmp/tmpkxbbpk2i is empty: [ ]

Desktop OS: Linux - Ubuntu Browser: Chrome Version: 20.04

Expected behaviour CodeChecker should not fail for a full Android 11 build.

csordasmarton commented 3 years ago

@Securee CodeChecker check command is just a wrapper of 3 other commands: CodeChecker log, CodeChecker analyze and CodeChecker parse. Your log says that your compilation database is empty. First we need to figure out why is that.

For this please try to use the CodeChecker log command (CodeChecker log -b "./mybuild.sh" -o ./compilation_database.json --verbose debug).

Also CodeChecker related environment variables (CC_LOGGER_DEBUG_FILE) are need to be set before the CodeChecker command call. Also you don't have to set the CC_LOGGER_NEW_ESCAPING environment variable because it is the default now.

By default if you don't override the CC_LOGGER_DEBUG_FILE environment variable CodeChecker will generate a codechecker.logger.debug beside your ./compilation_database.json file. Could you please send this file to us?

Securee commented 3 years ago

@csordasmarton Ok, I re-build it by the command:CodeChecker log -b "./mybuild.sh" -o ./compilation_database.json --verbose debug and before this, I delete the CC_LOGGER_NEW_ESCAPING in mybuild.sh. To re-build the Android 11, it may take 2 hours or so. Before it finishes, the content of codechecker.logger.debug is : [INFO 2021-06-02 15:40:09][src/ldlogger-logger.c:192] - Processing command: ./mybuild.sh ./mybuild.sh [INFO 2021-06-02 15:40:09][src/ldlogger-tool.c:165] - './mybuild.sh' does not match any program name! Current environment variables are: CC_LOGGER_GCC_LIKE (gcc:g++:clang:clang++:cc:c++), CC_LOGGER_JAVAC_LIKE()

I will update it if any changes after finished.

After 2 hours build, the content of codechecker.logger.debug is not changed. and the compilation_database.json is also empty.

Securee commented 3 years ago

@csordasmarton I'm not sure the issue is related to log in codechecker.debug.log follow or not: [INFO 2021-06-02 17:46:08][src/ldlogger-tool.c:165] - '/bin/bash' does not match any program name! Current environment variables are: CC_LOGGER_GCC_LIKE (gcc:g++:clang:clang++:cc:c++), CC_LOGGER_JAVAC_LIKE()

the real compile command seems to be wrapped in /bin/bash when I run ps -ef and found: lzy 2170201 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170203 2170201 96 20:04 ? 00:00:04 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170338 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170339 2170338 99 20:04 ? 00:00:02 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170344 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170345 2170344 99 20:04 ? 00:00:02 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170494 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170495 2170494 80 20:04 ? 00:00:01 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170527 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170528 2170527 99 20:04 ? 00:00:01 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170533 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170534 2170533 99 20:04 ? 00:00:01 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170545 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170546 2170545 91 20:04 ? 00:00:00 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170551 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170552 2170551 67 20:04 ? 00:00:00 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170557 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170558 2170557 57 20:04 ? 00:00:00 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de lzy 2170563 2131367 0 20:04 ? 00:00:00 /bin/sh -c PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointe lzy 2170564 2170563 0 20:04 ? 00:00:00 prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++.real -c -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-de

csordasmarton commented 3 years ago

From this log it seems to me that your compiler name is not clang++ but clang++.real. Could you please specify it in the CC_LOGGER_GCC_LIKE environment variable before CodeChecker log command call?

So similar to this: CC_LOGGER_GCC_LIKE="gcc:g++:clang:clang++:clang++.real:cc:c++" CodeChecker log ...

Securee commented 3 years ago

@csordasmarton I have added the clang++.real and clang.real to env, the content of codechecker.logger.debug is [INFO 2021-06-02 20:31:41][src/ldlogger-logger.c:192] - Processing command: ./mybuild.sh ./mybuild.sh [INFO 2021-06-02 20:31:41][src/ldlogger-tool.c:165] - './mybuild.sh' does not match any program name! Current environment variables are: CC_LOGGER_GCC_LIKE (gcc:g++:clang:clang++:cc:c++:clang.real:clang++.real), CC_LOGGER_JAVAC_LIKE()

and the content of compilation_database.json is empty.

How the codechecker to capture the compile command ?

I also have tried to add TEMPORARY_DISABLE_PATH_RESTRICTIONS=true to env according the issue "compile AOSP with CodeQL", but there is not any reports too.

Any other suggestions to this issue?

Securee commented 3 years ago

@csordasmarton I add the following content to the file "~/.bashrc": export ALLOW_NINJA_ENV=1 export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true export CC_LOGGER_GCC_LIKE="gcc:g++:clang:clang++:cc:c++:clang.real:clang++.real:/bin/bash"

and then re-build with codecheck: Codechecker log -b "./mybuild.sh" -o ./compile_database.json --verbose debug

This time, the content of ompile_database.json show as following: [ { "directory": "/AndroidSource/aosp", "command": "/bin/bash -c PWD=/proc/self/cwd\ \ prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang\ -I\ frameworks/native/cmds/ip-up-vpn\ -I\ out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates\ -I\ out/target/product/generic/gen/EXECUTABLES/ip-up-vpn_intermediates\ -I\ libnativehelper/include_jni\ -Isystem/core/libcutils/include\ -Isystem/core/libprocessgroup/include\ -Isystem/core/liblog/include\ -Iexternal/libcxx/include\ -Iexternal/libcxxabi/include\ -DLIBC_API=10000\ -Ibionic/libc/include\ -DLIBM_API=10000\ -DLIBM_API=10000\ -DLIBDL_API=10000\ -Iexternal/libcxxabi/include\ \ \ -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-arm\ -isystem\ bionic/libc/kernel/android/scsi\ -isystem\ bionic/libc/kernel/android/uapi\ -c\ \ -fomit-frame-pointer\ -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\ -Werror=date-time\ -Werror=pragma-pack\ -Werror=pragma-pack-suspicious-include\ -fdebug-prefix-map=/proc/self/cwd=\ -Dcompiler_offsetof=__builtin_offsetof\ -faddrsig\ -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\ -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\ -fPIE\ -DANDROID_STRICT\ -target\ armv7a-linux-androideabi10000\ \ \ -Werror=int-to-pointer-cast\ -Werror=pointer-to-int-cast\ -Werror=fortify-source\ -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\ -MD\ -MF\ out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates/ip-up-vpn.d\ -o\ out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates/ip-up-vpn.o\ frameworks/native/cmds/ip-up-vpn/ip-up-vpn.c", "file": "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang -I frameworks/native/cmds/ip-up-vpn -I out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates -I out/target/product/generic/gen/EXECUTABLES/ip-up-vpn_intermediates -I libnativehelper/include_jni -Isystem/core/libcutils/include -Isystem/core/libprocessgroup/include -Isystem/core/liblog/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -DLIBC_API=10000 -Ibionic/libc/include -DLIBM_API=10000 -DLIBM_API=10000 -DLIBDL_API=10000 -Iexternal/libcxxabi/include -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-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fomit-frame-pointer -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 -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=builtin_offsetof -faddrsig -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 -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 -fPIE -DANDROID_STRICT -target armv7a-linux-androideabi10000 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -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 -MD -MF out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates/ip-up-vpn.d -o out/target/product/generic/obj/EXECUTABLES/ip-up-vpn_intermediates/ip-up-vpn.o frameworks/native/cmds/ip-up-vpn/ip-up-vpn.c" } ... It seem like the logger for compile command have successfully captured the command, but the "file" seem wrong, not the .c file. And in this case ,the re-build process failed: [ 14% 13098/89460] target thumb C++: libvulkan_enc <= device/generic/goldfish-opengl/system/vulkan_enc/AndroidHardwareBuffer.cpp FAILED: out/target/product/generic/obj/SHARED_LIBRARIES/libvulkan_enc_intermediates/AndroidHardwareBuffer.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I device/generic/goldfish-opengl/system/renderControl_enc -I device/generic/goldfish-opengl/shared/OpenglCodecCommon -I device/generic/goldfish-opengl/system/vulkan_enc -I device/generic/goldfish-opengl/host/include/libOpenglRender -I device/generic/goldfish-opengl/system/include -I device/generic/goldfish-opengl/system/vulkan_enc -I device/generic/goldfish-opengl/system/vulkan_enc -I external/libdrm -I external/minigbm/cros_gralloc -I device/generic/goldfish-opengl/system/vulkan_enc -I out/target/product/generic/obj/SHARED_LIBRARIES/libvulkan_enc_intermediates -I out/target/product/generic/gen/SHARED_LIBRARIES/libvulkan_enc_intermediates -Isystem/core/libsync/include -Iframeworks/native/libs/nativewindow/include -Idevice/generic/goldfish-opengl/android-emu -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem/core/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/liblog/include_vndk -Iexternal/libdrm/include/drm -Iexternal/libdrm/android -Iexternal/libdrm/include/drm -Iexternal/libdrm/android -isystem external/libdrm -isystem external/libdrm -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc.llndk/android_vendor.30_arm_armv7-a-neon_shared/gen/include -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -Idevice/generic/goldfish-opengl/shared/GoldfishAddressSpace/include -Idevice/generic/goldfish-opengl/shared/qemupipe/include -Idevice/generic/goldfish-opengl/shared/qemupipe/include-types -Iframeworks/native/libs/arect/include -Iexternal/libcxxabi/include -Iframeworks/native/vulkan/include -Isystem/core/libcutils/include_vndk -Ihardware/libhardware/include -Isystem/media/audio/include -Isystem/core/libsystem/include -Isystem/bt/types -Iexternal/vulkan-headers/include -isystem out/target/product/generic/obj/include -c -fomit-frame-pointer -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 -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -Dcompiler_offsetof=__builtin_offsetof -faddrsig -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 -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 -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -mthumb -Os -fno-rtti -DWITH_GLES2 -DPLATFORM_SDK_VERSION=30 -DGOLDFISH_HIDL_GRALLOC -DEMULATOR_OPENGL_POST_O=1 -DGOLDFISH_VULKAN -DLOG_TAG=\\"goldfish_vulkan\\" -DVK_ANDROID_native_buffer -DVK_GOOGLE_address_space -Wno-missing-field-initializers -Werror -fstrict-aliasing -DVK_USE_PLATFORM_ANDROID_KHR -DVK_NO_PROTOTYPES -DANDROID_VNDK__ -fPIC -DANDROID_STRICT -target armv7a-linux-androideabi30 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -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 -MD -MF out/target/product/generic/obj/SHARED_LIBRARIES/libvulkan_enc_intermediates/AndroidHardwareBuffer.d -o out/target/product/generic/obj/SHARED_LIBRARIES/libvulkan_enc_intermediates/AndroidHardwareBuffer.o device/generic/goldfish-opengl/system/vulkan_enc/AndroidHardwareBuffer.cpp" buffer overflow detected : terminated Aborted (core dumped)

: (