account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

SOLVED
Adept
Message 1 of 8
5,490 Views
Message 1 of 8

7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I tried to build a 7.1 ROM with 3.18 kernel for Xperia XZ. I followed the guide. The build process failed.

 

I copy the commands for patching in a file and run the script from the android directory.

This is what i did/get after repo sync finished and starting the patch.sh script:

 

remote: Counting objects: 417, done
remote: Finding sources: 100% (3/3)
remote: Total 3 (delta 0), reused 2 (delta 0)
Unpacking objects: 100% (3/3), done.
From https://android.googlesource.com/platform/external/toybox
 * branch              refs/changes/74/265074/1 -> FETCH_HEAD
[detached HEAD e636234b] Add optional toybox_static build target
 Author: Adam Farden <adam@farden.cz>
 Date: Wed Jul 27 16:46:05 2016 +0200
 1 file changed, 53 insertions(+), 17 deletions(-)
[detached HEAD 26f7eede] Fix static linkage of toybox binary.
 Author: Alistair Strachan <alistair.strachan@imgtec.com>
 Date: Thu May 5 16:11:35 2016 -0700
 1 file changed, 3 insertions(+), 2 deletions(-)
[detached HEAD 5bea3fc8] Redefining basename_r to mean something random seems popular (bionic and freebsd both did it) so use getbasename instead.
 Author: Rob Landley <rob@landley.net>
 Date: Fri Apr 8 18:25:59 2016 -0500
 5 files changed, 8 insertions(+), 13 deletions(-)
[detached HEAD 19615096] Didn't check in all my local basename_r->getbasename changes. (Oops.)
 Author: Rob Landley <rob@landley.net>
 Date: Sun Apr 10 14:35:51 2016 -0500
 2 files changed, 2 insertions(+), 2 deletions(-)
remote: Counting objects: 288, done
remote: Finding sources: 100% (13/13)
remote: Total 13 (delta 1), reused 12 (delta 1)
Unpacking objects: 100% (13/13), done.
From https://android.googlesource.com/platform/external/libnfc-nci
 * branch            refs/changes/52/371052/1 -> FETCH_HEAD
[detached HEAD 255bc1d] Added support for PN553
 Author: Love Khanna <love.khanna@nxp.com>
 Date: Wed Mar 8 19:27:51 2017 +0530
 7 files changed, 965 insertions(+), 1 deletion(-)
 create mode 100644 halimpl/pn54x/libnfc-nxp-PN553_example.conf
 create mode 100644 halimpl/pn54x/libnfc-nxp-PN80T_example.conf
remote: Counting objects: 94, done
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 4 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://android.googlesource.com/platform/hardware/qcom/audio
 * branch            refs/changes/91/294291/1 -> FETCH_HEAD
[detached HEAD 50e55d8] Add msm8976 tasha sound card detection to msm8916 HAL
 Author: Adam Farden <adam@farden.cz>
 Date: Tue Oct 25 21:43:48 2016 +0200
 1 file changed, 3 insertions(+), 1 deletion(-)
remote: Counting objects: 95, done
remote: Finding sources: 100% (11/11)
remote: Total 11 (delta 0), reused 9 (delta 0)
Unpacking objects: 100% (11/11), done.
From https://android.googlesource.com/platform/hardware/qcom/audio
 * branch            refs/changes/35/274235/9 -> FETCH_HEAD
[detached HEAD b8589b2] Add capture-fm support
 Author: Nickolay Semendyaev <agent00791@gmail.com>
 Date: Wed Sep 14 16:46:30 2016 +0600
 6 files changed, 69 insertions(+), 5 deletions(-)
remote: Counting objects: 95, done
remote: Finding sources: 100% (4/4)
remote: Total 4 (delta 0), reused 2 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://android.googlesource.com/platform/hardware/qcom/audio
 * branch            refs/changes/86/333386/1 -> FETCH_HEAD
[detached HEAD 9add733] post_proc: Enable post processing for msm8952
 Author: David <Davidteri91@gmail.com>
 Date: Wed Feb 1 13:24:23 2017 +0100
 1 file changed, 2 insertions(+), 2 deletions(-)
remote: Counting objects: 1308, done
remote: Finding sources: 100% (4/4)
remote: Total 4 (delta 0), reused 2 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://android.googlesource.com/platform/system/core
 * branch                refs/changes/52/269652/1 -> FETCH_HEAD
[detached HEAD bfa26cf55] healthd: Reinitialize mChargerNames for every battery update
 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
 Date: Tue May 24 15:12:11 2016 -0700
 1 file changed, 78 insertions(+), 47 deletions(-)
remote: Counting objects: 1323, done
remote: Finding sources: 100% (9/9)
remote: Total 9 (delta 0), reused 8 (delta 0)
Unpacking objects: 100% (9/9), done.
From https://android.googlesource.com/platform/system/core
 * branch                refs/changes/12/373812/1 -> FETCH_HEAD
[detached HEAD d05bf889c] healthd: charger: Add board overrides in mode_charger
 Author: Chunmei Cai <ccai@codeaurora.org>
 Date: Sun Sep 6 15:43:32 2015 +0800
 4 files changed, 68 insertions(+), 10 deletions(-)
[detached HEAD 6228981] music: Remove deprecated MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE
 Author: Dmitry Shmidt <dimitrysh@google.com>
 Date: Mon Jun 6 15:44:11 2016 -0700
 2 files changed, 2 insertions(+), 2 deletions(-)
remote: Counting objects: 3045, done
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://android.googlesource.com/platform/frameworks/av
 * branch                refs/changes/92/384692/2 -> FETCH_HEAD
[detached HEAD 8b17b8f9e] stagefright: Fix buffer handle retrieval in signalBufferReturned
 Author: Angelo G. Del Regno <kholk11@gmail.com>
 Date: Sun Apr 30 20:19:08 2017 +0200
 1 file changed, 8 insertions(+), 2 deletions(-)
[root@ROG ~/android]# source build/envsetup.sh && lunch
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/sony/dora/vendorsetup.sh
including device/sony/kagura/vendorsetup.sh
including device/sony/keyaki/vendorsetup.sh
including device/sony/tulip/vendorsetup.sh
including sdk/bash_completion/adb.bash

You're building on Linux

Lunch menu... pick a combo:
     1. aosp_arm-eng
     2. aosp_arm64-eng
     3. aosp_mips-eng
     4. aosp_mips64-eng
     5. aosp_x86-eng
     6. aosp_x86_64-eng
     7. mini_emulator_arm64-userdebug
     8. m_e_arm-userdebug
     9. m_e_mips-userdebug
     10. m_e_mips64-eng
     11. mini_emulator_x86-userdebug
     12. mini_emulator_x86_64-userdebug
     13. aosp_f8131-userdebug
     14. aosp_f8132-userdebug
     15. aosp_f8331-userdebug
     16. aosp_f8332-userdebug
     17. aosp_g8231-userdebug
     18. aosp_g8232-userdebug
     19. aosp_e2303-userdebug
     20. aosp_e2333-userdebug

Which would you like? [aosp_arm-eng] 15

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_f8331
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.12.4-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=out
============================================
[root@ROG ~/android]# make -j 6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_f8331
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.12.4-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=out
============================================

 

It ends with this error:

 

hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:1060:33: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
        drv_ctx.output_format = VDEC_YUV_FORMAT_NV12_TP10_UBWC;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:2063:38: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
            drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                     VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:4158:84: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
                                               } else if (drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:9017:65: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
                       } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:12200:47: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
     } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:12525:50: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
        } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC){
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13021:10: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
    case VDEC_YUV_FORMAT_NV12_TP10_UBWC:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13021:10: error: duplicate case value 'VDEC_YUV_FORMAT_NV12_UBWC'
    case VDEC_YUV_FORMAT_NV12_TP10_UBWC:
         ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13018:10: note: previous case defined here
    case VDEC_YUV_FORMAT_NV12_UBWC:
         ^
8 errors generated.
[ 66% 34445/51476] target Package: fra...amework-res_intermediates/package.apk)
warning: string 'candidates_style' has no default translation.
warning: string 'candidates_style' is missing 41 required localizations: 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 ky_KG 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 90 required localizations: af_ZA am_ET ar_EG 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 ky_KG 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 41 required localizations: 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 ky_KG 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 (0x010500c8)
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (01:03:37 (hh:mm:ss)) ####

[root@ROG ~/android]#

--------------------------------------------------------------------------------------------

 

I had exactly the same error when i tried to build a 7.1 ROM with 3.18 kernel for the Xperia X/f5121/suzu/msm8956.

 

Im building on an actual bbqlinux system.

Any idea how to fix that?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Developer World
Message 5 of 8
8,123 Views
Message 5 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

Hi,

please revert the commitfollowing commit and you can use the old 3.18 kernel but please note that this kernel will not be supported anymore. All new updates will be for 4.4 kernel

https://github.com/sonyxperiadev/device-sony-tone/commit/5eb4bef745802de4581ec82ecc15bd1060057ba1

 

Regards

Alin

 

 

 

View solution in original post

7 REPLIES 7
Highlighted
Adept
Message 2 of 8
5,479 Views
Message 2 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I edit the file hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp.

i deleted "TP10" from all lines related to the error:

 

hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13021:10: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
    case VDEC_YUV_FORMAT_NV12_TP10_UBWC:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

After that build process stops with the error:

ardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/inc/video_encoder_device_v4l2.h:39:10: fatal error: 'VQZip.h' file not found
#include "VQZip.h"
         ^
1 error generated.

 

I dont have this file on my system. How can i fix this?

Highlighted
Adept
Message 3 of 8
5,461 Views
Message 3 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I found out that the build guide its a bit out of date. On https://android.googlesource.com/platform/manifest/+/android-7.1.2_r33 there is a newer release version than providet in the build guide (r29). I gave it a try, but still errors in build process:

 

hardware/qcom/audio/hal/audio_hw.c:1258:1: error: version control conflict marker in file
<<<<<<< HEAD
^
1 error generated.
[ 65% 33830/51476] target Package: fram...ramework-res_intermediates/package.apk)
warning: string 'candidates_style' has no default translation.
warning: string 'candidates_style' is missing 41 required localizations: 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 ky_KG 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 90 required localizations: af_ZA am_ET ar_EG 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 ky_KG 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 41 required localizations: 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 ky_KG 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 (0x010500c8)
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (01:03:28 (hh:mm:ss)) ####


Highlighted
Adept
Message 4 of 8
5,457 Views
Message 4 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I removed linues

 

1258:

<<<<<<< HEAD

1262:

=======

and 1263:

>>>>>>> 08a554e... Add capture-fm support

from the file hardware/qcom/audio/hal/audio_hw.c

and run make again.

 

Now im getting this error:

headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:2063:38: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
            drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                     VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:4158:84: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
                                               } else if (drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                   VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:9017:65: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
                       } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:12200:47: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
     } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC) {
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:12525:50: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
        } else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12_TP10_UBWC){
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13021:10: error: use of undeclared identifier 'VDEC_YUV_FORMAT_NV12_TP10_UBWC'; did you mean 'VDEC_YUV_FORMAT_NV12_UBWC'?
    case VDEC_YUV_FORMAT_NV12_TP10_UBWC:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         VDEC_YUV_FORMAT_NV12_UBWC
device/sony/common-headers/kernel-headers/linux/msm_vidc_dec.h:452:3: note: 'VDEC_YUV_FORMAT_NV12_UBWC' declared here
  VDEC_YUV_FORMAT_NV12_UBWC = 0x3
  ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13021:10: error: duplicate case value 'VDEC_YUV_FORMAT_NV12_UBWC'
    case VDEC_YUV_FORMAT_NV12_TP10_UBWC:
         ^
hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp:13018:10: note: previous case defined here
    case VDEC_YUV_FORMAT_NV12_UBWC:
         ^
8 errors generated.
[  3% 631/17653] Dexpreopt Jar: service...s_intermediates/oat/arm64/javalib.odex)
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (01:02 (mm:ss)) ####

 Is there something wrong with kernel headers? How can i fix this?

Highlighted
Developer World
Message 5 of 8
8,124 Views
Message 5 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

Hi,

please revert the commitfollowing commit and you can use the old 3.18 kernel but please note that this kernel will not be supported anymore. All new updates will be for 4.4 kernel

https://github.com/sonyxperiadev/device-sony-tone/commit/5eb4bef745802de4581ec82ecc15bd1060057ba1

 

Regards

Alin

 

 

 

View solution in original post

Highlighted
Adept
Message 6 of 8
5,402 Views
Message 6 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I changed 4.4 to 3.18 in PlatformConfig.mk file, did a repo sync, patched the files and did again make -j 8,

 

Here is the error

---------------------------------------------------------------------

including ./device/sony/common/Android.mk ...
device-sony-common-init: init_sony for "kagura", platform "tone", with ' -DDEV_BLOCK_FOTA_NUM="48" -DDEV_BLOCK_FOTA_MAJOR="259" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
./device/sony/common/Android.mk:103: /Android.mk: No such file or directory
make: *** [build/core/ninja.mk:164: out/build-aosp_f8331.ninja] Error 1

#### make failed to build some targets (6 seconds) ####

----------------------------------------------------------------------------------

This is from ./device/sony/common/Android.mk, starting from line 92 up to  106:

----------------------------------------------------------------------------------

ifeq ($(TARGET_KERNEL_VERSION),3.18)
display-hal := hardware/qcom/display/msm8996
media-hal := hardware/qcom/media/msm8996
endif

ifeq ($(TARGET_KERNEL_VERSION),4.4)
QCOM_MEDIA_ROOT := hardware/qcom/media/msm8998
display-hal := hardware/qcom/display/msm8998
media-hal := hardware/qcom/media/msm8998
endif

include $(display-hal)/Android.mk
include $(call all-makefiles-under,$(audio-hal))
include $(call all-makefiles-under,$(gps-hal))
include $(call all-makefiles-under,$(media-hal))

----------------------------------------------------------------------------------

 

And this is the whole code from the file ./hardware/qcom/display/msm8996/Android.mk

---------------------------------------------------------------------------------

display-hals := libcopybit liblight libmemtrack libqservice libqdutils
ifneq ($(TARGET_USES_GRALLOC1), true)
    display-hals += libgralloc
else
    display-hals += libgralloc1
endif

display-hals += hdmi_cec
sdm-libs := sdm/libs
display-hals += $(sdm-libs)/utils $(sdm-libs)/core $(sdm-libs)/hwc $(sdm-libs)/hwc2

ifeq ($(call is-vendor-board-platform,QCOM),true)
    include $(call all-named-subdir-makefiles,$(display-hals))
else
ifneq ($(filter msm% apq%,$(TARGET_BOARD_PLATFORM)),)
    include $(call all-named-subdir-makefiles,$(display-hals))
endif
endif

-------------------------------------------------------------------------------------

Because the missing file hardware/qcom/media/msm8998/Android.mk from line 103 of the file

/device/sony/common/Android.mk is presend i changed line 103 from

 

include $(display-hal)/Android.mk

to

include $(display-hal)hardware/qcom/media/msm8998/Android.mk

 

Now i get this error:

------------------------------------------------------------------------------------

including ./vendor/sony/tone-common/proprietary/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE kagura
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/kagura/obj_arm/SHARED_LIBRARIES/libqdMetaData_intermediates/export_includes', needed by 'out/target/product/kagura/obj_arm/SHARED_LIBRARIES/camera.msm8996_intermediates/import_includes', missing and no known rule to make it
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (22 seconds) ####

----------------------------------------------------------------------

 

Whats wrong?

Highlighted
Adept
Message 7 of 8
5,390 Views
Message 7 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I successfully finished make process.

 

I changed file device/sony/common/Android.mk line 103

from

include $(display-hal)/Android.mk

to

include $(display-hal)hardware/qcom/media/msm8996/Android.mk

And i had to copy

hardware/qcom/media/msm8998/Android.mk

to

hardware/qcom/media/msm8998/Android.mk

 

After that make process works. All works well, only camera won't start.

App closes immediately.

And currently i cannot use adb. Device could not be recognized.

Highlighted
Adept
Message 8 of 8
5,389 Views
Message 8 of 8

Re: 7.1 ROM with 3.18 kernel for Xperia XZ/F8331/msm8996, build failed

I mean i had to copy

hardware/qcom/media/msm8998/Android.mk

to

hardware/qcom/media/msm8996/Android.mk