shakalaca / android_device_asus_Z017

14 stars 7 forks source link

Compile instruction is needed #3

Closed aik closed 7 years ago

aik commented 7 years ago

This is trying to compile kernel and fails, how is it supposed to work? Thanks.

Starting build with ninja ninja: Entering directory `.' ninja: error: 'vendor/asus/Z017/proprietary/bin/SpeakerCalibrationTest', needed by '/home/androidbuild/android/system/out/target/product/Z017/system/bin/SpeakerCalibrationTest', missing and no known rule to make it build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

shakalaca commented 7 years ago

You have to pull the proprietary files from ROM first by using extract-files.sh

aik commented 7 years ago

I did, without doing so, it failed long before. I tried pulling from stock firmware phone and from your rom phone - still do not get all the files.

shakalaca commented 7 years ago

got it, I'll upload the repo later .. :)

aik commented 7 years ago

Thanks. Also, could you please describe somewhere what kernel is compiled and how? Normally all howtos say that kernel+config is needed and I do not see your config anywhere. Do I need to "git clone" your kernel into /home/androidbuild/android/system/kernel/asus/Z017 ? Thanks

So far I've only cloned this tree to /home/androidbuild/android/system/device/asus/Z017

shakalaca commented 7 years ago
  1. I've upload vendor/asus/Z017 here https://github.com/shakalaca/android_vendor_asus_Z017
  2. The kernel configuration file is ze520kl-userdebug_defconfig which defined in BoardConfig.mk, you may find it here https://github.com/shakalaca/android_kernel_asus_ze520kl/tree/master/arch/arm64/configs
aswindivakar commented 7 years ago

Starting build with ninja ninja: Entering directory `.' ninja: error: 'vendor/asus/Z017/rootdir/etc/fstab.qcom', needed by '/home/aswin/android/system/out/target/product/Z017/ramdisk-recovery.cpio', missing and no known rule to make it build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed make: *** [ninja_wrapper] Error 1 make: Leaving directory '/home/aswin/android/system'

make failed to build some targets (45 seconds)

I am Getting this Error.How can I fix this?

shakalaca commented 7 years ago

$VENDOR_PATH in BoardConfig.mk should be "device/asus/Z017" , did you set this variable to "vendor/asus/Z017" ?

aswindivakar commented 7 years ago

Yes...

aswindivakar commented 7 years ago

How can I fix this?

64 warnings generated.
[  2% 419/17625] target R.java/Manifes...bj/APPS/FM2_intermediates/src/R.stamp)
FAILED: /bin/bash -c "(rm -rf /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src/R.stamp && mkdir -p /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src/ ) && (mkdir -p /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src ) && (mkdir -p /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/ ) && (/home/aswin/android/system/out/host/linux-x86/bin/aapt package -z  --pseudo-localize -m  -J /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src -M hardware/qcom/fm/fmapp2/AndroidManifest.xml -P /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/public_resources.xml -S hardware/qcom/fm/fmapp2/res  -I /home/aswin/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk -I /home/aswin/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/package-export.apk -G /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/proguard_options --min-sdk-version 25 --target-sdk-version 25 --version-code 25 --version-name 7.1.2   --skip-symbols-without-default-localization ) && (for GENERATED_MANIFEST_FILE in \`find /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src -name Manifest.java 2> /dev/null\`; do dir=\`awk '/package/{gsub(/\\./,\"/\",\$2);gsub(/;/,\"\",\$2);print \$2;exit}' \$GENERATED_MANIFEST_FILE\`; mkdir -p /home/aswin/android/system/out/target/common/R/\$dir; /home/aswin/android/system/out/host/linux-x86/bin/acp -fp \$GENERATED_MANIFEST_FILE /home/aswin/android/system/out/target/common/R/\$dir; done ) && (for GENERATED_R_FILE in \`find /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src -name R.java 2> /dev/null\`; do dir=\`awk '/package/{gsub(/\\./,\"/\",\$2);gsub(/;/,\"\",\$2);print \$2;exit}' \$GENERATED_R_FILE\`; mkdir -p /home/aswin/android/system/out/target/common/R/\$dir; /home/aswin/android/system/out/host/linux-x86/bin/acp -fp \$GENERATED_R_FILE /home/aswin/android/system/out/target/common/R/\$dir || exit 31; /home/aswin/android/system/out/host/linux-x86/bin/acp -fp \$GENERATED_R_FILE /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src/R.stamp || exit 32; done ) && (touch /home/aswin/android/system/out/target/common/obj/APPS/FM2_intermediates/src/R.stamp )"
res/drawable/btn_arrow_left_default.xml:0: error: Resource entry btn_arrow_left_default is already defined.
res/drawable/btn_arrow_left_default.png:0: Originally defined here.

res/drawable/btn_arrow_left_press.xml:0: error: Resource entry btn_arrow_left_press is already defined.
res/drawable/btn_arrow_left_press.png:0: Originally defined here.

res/drawable/btn_arrow_right_default.xml:0: error: Resource entry btn_arrow_right_default is already defined.
res/drawable/btn_arrow_right_default.png:0: Originally defined here.

res/drawable/btn_arrow_right_press.xml:0: error: Resource entry btn_arrow_right_press is already defined.
res/drawable/btn_arrow_right_press.png:0: Originally defined here.

res/drawable/ic_btn_earphone_default.xml:0: error: Resource entry ic_btn_earphone_default is already defined.
res/drawable/ic_btn_earphone_default.png:0: Originally defined here.

res/drawable/ic_btn_earphone_diable.xml:0: error: Resource entry ic_btn_earphone_diable is already defined.
res/drawable/ic_btn_earphone_diable.png:0: Originally defined here.

res/drawable/ic_btn_earphone_select.xml:0: error: Resource entry ic_btn_earphone_select is already defined.
res/drawable/ic_btn_earphone_select.png:0: Originally defined here.

res/drawable/ic_btn_onoff_default.xml:0: error: Resource entry ic_btn_onoff_default is already defined.
res/drawable/ic_btn_onoff_default.png:0: Originally defined here.

res/drawable/ic_btn_onoff_disable.xml:0: error: Resource entry ic_btn_onoff_disable is already defined.
res/drawable/ic_btn_onoff_disable.png:0: Originally defined here.

res/drawable/ic_btn_onoff_press.xml:0: error: Resource entry ic_btn_onoff_press is already defined.
res/drawable/ic_btn_onoff_press.png:0: Originally defined here.

res/drawable/ic_btn_search.xml:0: error: Resource entry ic_btn_search is already defined.
res/drawable/ic_btn_search.png:0: Originally defined here.

res/drawable/ic_btn_search_stop.xml:0: error: Resource entry ic_btn_search_stop is already defined.
res/drawable/ic_btn_search_stop.png:0: Originally defined here.

res/drawable/ic_btn_spaker_select.xml:0: error: Resource entry ic_btn_spaker_select is already defined.
res/drawable/ic_btn_spaker_select.png:0: Originally defined here.

res/drawable/ic_silent_mode.xml:0: error: Resource entry ic_silent_mode is already defined.
res/drawable/ic_silent_mode.png:0: Originally defined here.

res/drawable/ic_silent_mode_off.xml:0: error: Resource entry ic_silent_mode_off is already defined.
res/drawable/ic_silent_mode_off.png:0: Originally defined here.

[  2% 419/17625] Compiling SDK Stubs w...ubs_current_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/aswin/android/system'

#### make failed to build some targets (44:19 (mm:ss)) ####
shakalaca commented 7 years ago

Change FM_HCI_DIR in hardware/qcom/fm/helium/Android.mk to hardware/qcom/fm

aswindivakar commented 7 years ago

HOW TO DEAL WITH THIS?

[ 38% 10492/26926] target thumb C++: l...sm8937/sdm/libs/core/fb/hw_virtual.cpp FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/asus/Z017/include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqdutils -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqservice -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libcopybit -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../sdm/include -I /home/aswin/android/system/out/target/product/Z017/obj/KERNEL_OBJ/usr/include -I qcom/display -I hardware/qcom/display-caf/msm8937/sdm/libs/core -I /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates -I /home/aswin/android/system/out/target/product/Z017/gen/SHARED_LIBRARIES/libsdmcore_intermediates -I libnativehelper/include/nativehelper \$(cat /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/aswin/android/system/out/target/product/Z017/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -DARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-unused-parameter -DLOG_TAG=\\"SDM\\" -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.d -o /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.o hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp ) && (cp /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.d /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.P; sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ \\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.d >> /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.P; rm -f /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_virtual.d )" In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp:31: In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.h:28: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp:31: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.h:32:7: error: 'sdm::HWVirtual' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWVirtual : public HWDevice { ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp:45:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWVirtual' return HWDevice::Init(); ^~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp:49:13: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWVirtual' HWDevice::ResetDisplayParams(); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.cpp:50:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWVirtual' return HWDevice::Validate(hw_layers); ^~~~ 5 errors generated. [ 38% 10492/26926] target thumb C++: l...sm8937/sdm/libs/core/fb/hw_primary.cpp FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/asus/Z017/include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqdutils -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqservice -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libcopybit -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../sdm/include -I /home/aswin/android/system/out/target/product/Z017/obj/KERNEL_OBJ/usr/include -I qcom/display -I hardware/qcom/display-caf/msm8937/sdm/libs/core -I /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates -I /home/aswin/android/system/out/target/product/Z017/gen/SHARED_LIBRARIES/libsdmcore_intermediates -I libnativehelper/include/nativehelper \$(cat /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/aswin/android/system/out/target/product/Z017/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -Dcompiler_offsetof=builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-unused-parameter -DLOG_TAG=\\"SDM\\" -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.d -o /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.o hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp ) && (cp /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.d /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.P; sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ \\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.d >> /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.P; rm -f /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_primary.d )" In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:47: In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.h:32: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:47: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.h:36:7: error: 'sdm::HWPrimary' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWPrimary : public HWDevice { ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:84:21: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' error = HWDevice::Init(); ^~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:100:3: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' EnableHotPlugDetection(0); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:101:3: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' EnableHotPlugDetection(1); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:276:5: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' PopulateHWPanelInfo(); ^~~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:325:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' return HWDevice::GetConfigIndex(mode, index); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:361:13: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' HWDevice::ResetDisplayParams(); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:393:5: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' SetFormat(output_buffer->format, &mdp_outlayer.buffer.format); ^~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:408:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' return HWDevice::Validate(hw_layers); ^~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:418:7: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' SetStride(devicetype, output_buffer->format, output_buffer->planes[0].stride, ^~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:434:32: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' DisplayError ret = HWDevice::Commit(hw_layers); ^~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:471:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' return HWDevice::SetVSyncState(enable); ^~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:564:17: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' if (HWDevice::SysFsWrite(kAutoRefreshNode, buffer, bytes) <= 0) { // Returns bytes written ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.cpp:634:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWPrimary' return HWDevice::SetMixerAttributes(mixer_attributes); ^~~~~~ 15 errors generated. [ 38% 10492/26926] target thumb C++: l...msm8937/sdm/libs/core/fb/hw_device.cpp FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/asus/Z017/include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqdutils -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqservice -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libcopybit -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../sdm/include -I /home/aswin/android/system/out/target/product/Z017/obj/KERNEL_OBJ/usr/include -I qcom/display -I hardware/qcom/display-caf/msm8937/sdm/libs/core -I /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates -I /home/aswin/android/system/out/target/product/Z017/gen/SHARED_LIBRARIES/libsdmcore_intermediates -I libnativehelper/include/nativehelper \$(cat /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/aswin/android/system/out/target/product/Z017/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -DARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -Dcompiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-unused-parameter -DLOG_TAG=\\"SDM\\" -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.d -o /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.o hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp ) && (cp /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.d /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.P; sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ \\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.d >> /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.P; rm -f /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_device.d )" In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:50: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:51: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_primary.h:36:7: error: 'sdm::HWPrimary' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWPrimary : public HWDevice { ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:52: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.h:38:7: error: 'sdm::HWHDMI' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWHDMI : public HWDevice { ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:53: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_virtual.h:32:7: error: 'sdm::HWVirtual' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWVirtual : public HWDevice { ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:72:10: error: assigning to 'sdm::HWDevice ' from incompatible type 'sdm::HWPrimary ' hw = new HWPrimary(buffer_sync_handler, hw_info_intf); ^ ~~~~~~~~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:75:10: error: assigning to 'sdm::HWDevice ' from incompatible type 'sdm::HWHDMI ' hw = new HWHDMI(buffer_sync_handler, hw_info_intf); ^ ~~~~~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:78:10: error: assigning to 'sdm::HWDevice ' from incompatible type 'sdm::HWVirtual ' hw = new HWVirtual(buffer_sync_handler, hw_info_intf); ^ ~~~~~~~~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:91:9: error: assigning to 'sdm::HWInterface ' from incompatible type 'sdm::HWDevice ' intf = hw; ^ ~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:345:5: error: use of undeclared identifier 'mdp_destination_scaler_data'; did you mean 'mdp_dest_scalardata'? mdp_destination_scaler_data dest_scalar_data = &mdp_dest_scalardata[index]; ^~~~~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:345:34: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'dest_scale_info'? mdp_destination_scaler_data dest_scalar_data = &mdp_dest_scalardata[index]; ^~~~ dest_scale_info hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:343:22: note: 'dest_scale_info' declared here HWDestScaleInfo dest_scale_info = it->second; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:350:7: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'mdp_dest_scalardata'? dest_scalar_data->flags |= MDP_DESTSCALER_SCALE_UPDATE; ^~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:350:34: error: use of undeclared identifier 'MDP_DESTSCALER_SCALE_UPDATE' dest_scalar_data->flags |= MDP_DESTSCALER_SCALE_UPDATE; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:353:5: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'mdp_dest_scalardata'? dest_scalar_data->dest_scaler_ndx = i; ^~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:354:5: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'mdp_dest_scalardata'? dest_scalar_data->lm_width = dest_scale_info->mixer_width; ^~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:355:5: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'mdp_dest_scalardata'? dest_scalar_data->lm_height = dest_scale_info->mixer_height; ^~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:356:5: error: use of undeclared identifier 'dest_scalar_data'; did you mean 'mdp_dest_scalardata'? dest_scalar_data->scale = reinterpret_cast ^~~~ mdp_dest_scalardata hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:44: note: 'mdp_dest_scalardata' declared here std::vector mdp_dest_scalardata; ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:362:14: error: use of undeclared identifier 'dest_scalar_data' dest_scalar_data->dest_scaler_ndx); ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:363:51: error: use of undeclared identifier 'dest_scalar_data' DLOGV_IF(kTagDriverConfig, "Mixer WxH %dx%d", dest_scalar_data->lm_width, ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:364:14: error: use of undeclared identifier 'dest_scalar_data' dest_scalar_data->lm_height); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [ 38% 10492/26926] target thumb C++: l...f/msm8937/sdm/libs/core/fb/hw_hdmi.cpp FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/asus/Z017/include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqdutils -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libqservice -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libcopybit -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../include -I hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../sdm/include -I /home/aswin/android/system/out/target/product/Z017/obj/KERNEL_OBJ/usr/include -I qcom/display -I hardware/qcom/display-caf/msm8937/sdm/libs/core -I /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates -I /home/aswin/android/system/out/target/product/Z017/gen/SHARED_LIBRARIES/libsdmcore_intermediates -I libnativehelper/include/nativehelper \$(cat /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/aswin/android/system/out/target/product/Z017/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -DARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-unused-parameter -DLOG_TAG=\\"SDM\\" -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -DARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Wconversion -Wall -Werror -std=c++11 -isystem hardware/qcom/display-caf/msm8937/sdm/libs/core/../../../libgralloc -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMASTER_SIDE_CP -DQTI_BSP -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.d -o /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.o hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp ) && (cp /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.d /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.P; sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ \\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.d >> /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.P; rm -f /home/aswin/android/system/out/target/product/Z017/obj_arm/SHARED_LIBRARIES/libsdmcore_intermediates/fb/hw_hdmi.d )" In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:43: In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.h:32: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^ In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:43: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.h:38:7: error: 'sdm::HWHDMI' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor] class HWHDMI : public HWDevice { ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:95:21: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' error = HWDevice::Init(); ^~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:104:5: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' Deinit(); ^~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:109:5: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' Deinit(); ^~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:115:5: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' Deinit(); ^~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:180:5: error: no matching member function for call to 'ParseLine' ParseLine(ptr, tokens, edid_count_max, &hdmi_mode_count); ^~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:121:7: note: candidate function not viable: no known conversion from 'sdm::HWHDMI' to 'sdm::HWDevice' for object argument int ParseLine(const char input, char tokens[], const uint32_t max_token, uint32_t count); ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:122:7: note: candidate function not viable: requires 5 arguments, but 4 were provided int ParseLine(const char input, const char delim, char tokens[], ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:323:13: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' HWDevice::ResetDisplayParams(); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:324:20: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' return HWDevice::Validate(hw_layers); ^~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:419:3: error: no matching member function for call to 'ParseLine' ParseLine(data, tokens, scan_info_max_count, &scan_info_count); ^~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:121:7: note: candidate function not viable: no known conversion from 'sdm::HWHDMI' to 'sdm::HWDevice' for object argument int ParseLine(const char input, char tokens[], const uint32_t max_token, uint32_t count); ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:122:7: note: candidate function not viable: requires 5 arguments, but 4 were provided int ParseLine(const char input, const char delim, char tokens[], ^ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:540:25: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' int hdmi_node_index = GetFBNodeIndex(kDeviceHDMI); ^~~~~~ hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_hdmi.cpp:552:22: error: cannot initialize object parameter of type 'sdm::HWDevice' with an expression of type 'sdm::HWHDMI' length = HWDevice::SysFsWrite(sys_fs_path, property_value, ^~~~~~ 12 errors generated. [ 38% 10492/26926] target Package: fra...amework-res_intermediates/package.apk) warning: string 'candidates_style' has no default translation. warning: string 'candidates_style' is missing 44 required localizations: ast_ES az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ku_IQ ky_KG lb_LU lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW warning: string 'gsm_alphabet_default_charset' has no default translation. warning: string 'gsm_alphabet_default_charset' is missing 93 required localizations: af_ZA am_ET ar_EG ast_ES az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_AT de_CH de_DE de_LI el_GR en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU es_ES es_US et_EE eu_ES fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_CH it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ku_IQ ky_KG lb_LU lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb_NO ne_NP nl_BE nl_NL pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA warning: string 'wfcSpnFormat' has no default translation. warning: string 'wfcSpnFormat' is missing 44 required localizations: ast_ES az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ku_IQ ky_KG lb_LU lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW warning: no entries written for dimen/password_keyboard_height (0x010500c9) nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4 ninja: build stopped: subcommand failed. build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed make: *** [ninja_wrapper] Error 1 make: Leaving directory '/home/aswin/android/system'

make failed to build some targets (54:47 (mm:ss))

aik commented 7 years ago

I did checkout https://github.com/shakalaca/android_vendor_asus_Z017 and kernel config, run ./extract-files.sh and then "brunch Z017" and got: build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets find: ‘/home/androidbuild/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets ./hardware/qcom/audio-caf/msm8937/Android.mk:8: hardware/qcom/audio-caf/msm8937/legacy/Android.mk: No such file or directory build/core/ninja.mk:166: recipe for target '/home/androidbuild/android/system/out/build-lineage_Z017.ninja' failed make: *** [/home/androidbuild/android/system/out/build-lineage_Z017.ninja] Error 1 make: Leaving directory '/home/androidbuild/android/system'

make failed to build some targets (11 seconds)

Where does this android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates come from?

aik commented 7 years ago

Ah, never mind, needed to disable legacy alsa to proceed.

aik commented 7 years ago

What is still unclear is whether https://github.com/shakalaca/android_vendor_asus_Z017 is enough or I need to run extract-files.sh after checking that out?

aik commented 7 years ago

The current build failure is http://ozlabs.ru/f/androidbuild.log Any hints would be appreciated. Thanks.

aik commented 7 years ago

Now I am also hitting this one:

In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:50: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^

How to fix that? Thanks

shakalaca commented 7 years ago

@aik This is what happened to me before replacing DRAM, jack always failed without reason and cannot be turned off completely :(

aik commented 7 years ago

Now I am also hitting this one:

In file included from hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.cpp:50: hardware/qcom/display-caf/msm8937/sdm/libs/core/fb/hw_device.h:149:15: error: use of undeclared identifier 'mdp_destination_scaler_data' std::vector mdp_dest_scalardata; ^

How to fix that? Thanks